& Construction

Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
& Manufacturing

Professional CAD/CAM tools built on Inventor and AutoCAD
Transcript
00:00
PRESENTER: In this session, we will
00:02
talk about organizing data in preparation
00:04
for exporting to an Excel spreadsheet.
00:07
To demonstrate the process for exporting data to Excel,
00:10
we have a semi complete graph already in Dynamo.
00:14
This graph represents alignment stations
00:16
at the geometry locations and their respective coordinate
00:19
values.
00:20
We will organize the data to prepare for an export
00:23
to an Excel spreadsheet.
00:25
Once we have the Excel document, we
00:26
can then imported back into Civil 3D
00:28
as a table or share with our project team.
00:32
We are now at step three in the workflow,
00:34
organizing data for export.
00:36
Let's get started by switching over to Civil 3D and Dynamo.
00:40
My drawing file is already open since the graph
00:43
I'm working with is connected to this particular drawing file.
00:46
In the Manage tab, under Visual Programming panel,
00:49
I'm going to click to open the Dynamo interface.
00:52
Once I'm in the Dynamo interface,
00:54
I'm going to open the alignment geometry table Begin.
00:58
I'm going to first run the graphs
00:59
so the data I need is populated with the current drawling
01:02
file I have open.
01:03
There are 14 alignments in this drawling,
01:06
but the one I'm most interested in is 6272.
01:10
I entered in the name of the alignment data I want.
01:12
This next group processes the entire alignment length
01:16
and only includes the geometry stations along the center line.
01:21
The final node here takes the station values and processes
01:25
a point.
01:26
I can certainly take this data and export right to Excel
01:29
but I want to format this list a bit better so it
01:32
parses information upon export.
01:35
Let's take a closer look.
01:38
We have the x values and y values as points.
01:42
The intent is for column A in Excel
01:45
to house all station values, column B the y values,
01:49
and column C x values.
01:51
So we need to get these values into their own letters.
01:55
Since these are points, I'm going
01:57
to search the library for point.
02:00
I'm going to bring in the x node as well as the y node.
02:08
We're then going to connect the output
02:10
port of the coordinate system to both x and y.
02:15
Run the graph to ensure data is flowing the way we intend.
02:19
The next step is to join our station x and y-coordinates.
02:22
So we'll create a list.
02:24
Under the List category, under Generate, List Create Node,
02:30
we'll click on the plus sign twice.
02:34
For item 0, I want those values to be the stations.
02:37
So we'll go back to our alignment stations node
02:41
and connect the double output to the item 0 input.
02:46
For item 1, we'll connect point y for our northern values
02:50
and for point x, we will connect to item 2.
02:53
Let's go ahead and run the graph and see
02:55
what the data looks like.
02:56
Dynamo gives us three separate lists.
02:59
The first list is all of our stations,
03:01
then are northings, then our eastings.
03:04
Dynamo writes data to an Excel document
03:06
by row with sublists written in successive rows.
03:10
We want to export to the columns in Excel, not the rows.
03:13
So we will need to transpose this list.
03:17
Under the List category, under Organize Subcategory
03:22
at the very bottom, we find Transpose.
03:26
Add that node to our graph and connect the output list
03:32
to the import list.
03:34
Transpose will swap rows and columns in a list of list.
03:38
By adding this to the end and running our graph,
03:41
we now have many lists each containing
03:44
a single station and its respective x and y-coordinates.
03:48
Our data is now ready to be exported to Excel.
00:00
PRESENTER: In this session, we will
00:02
talk about organizing data in preparation
00:04
for exporting to an Excel spreadsheet.
00:07
To demonstrate the process for exporting data to Excel,
00:10
we have a semi complete graph already in Dynamo.
00:14
This graph represents alignment stations
00:16
at the geometry locations and their respective coordinate
00:19
values.
00:20
We will organize the data to prepare for an export
00:23
to an Excel spreadsheet.
00:25
Once we have the Excel document, we
00:26
can then imported back into Civil 3D
00:28
as a table or share with our project team.
00:32
We are now at step three in the workflow,
00:34
organizing data for export.
00:36
Let's get started by switching over to Civil 3D and Dynamo.
00:40
My drawing file is already open since the graph
00:43
I'm working with is connected to this particular drawing file.
00:46
In the Manage tab, under Visual Programming panel,
00:49
I'm going to click to open the Dynamo interface.
00:52
Once I'm in the Dynamo interface,
00:54
I'm going to open the alignment geometry table Begin.
00:58
I'm going to first run the graphs
00:59
so the data I need is populated with the current drawling
01:02
file I have open.
01:03
There are 14 alignments in this drawling,
01:06
but the one I'm most interested in is 6272.
01:10
I entered in the name of the alignment data I want.
01:12
This next group processes the entire alignment length
01:16
and only includes the geometry stations along the center line.
01:21
The final node here takes the station values and processes
01:25
a point.
01:26
I can certainly take this data and export right to Excel
01:29
but I want to format this list a bit better so it
01:32
parses information upon export.
01:35
Let's take a closer look.
01:38
We have the x values and y values as points.
01:42
The intent is for column A in Excel
01:45
to house all station values, column B the y values,
01:49
and column C x values.
01:51
So we need to get these values into their own letters.
01:55
Since these are points, I'm going
01:57
to search the library for point.
02:00
I'm going to bring in the x node as well as the y node.
02:08
We're then going to connect the output
02:10
port of the coordinate system to both x and y.
02:15
Run the graph to ensure data is flowing the way we intend.
02:19
The next step is to join our station x and y-coordinates.
02:22
So we'll create a list.
02:24
Under the List category, under Generate, List Create Node,
02:30
we'll click on the plus sign twice.
02:34
For item 0, I want those values to be the stations.
02:37
So we'll go back to our alignment stations node
02:41
and connect the double output to the item 0 input.
02:46
For item 1, we'll connect point y for our northern values
02:50
and for point x, we will connect to item 2.
02:53
Let's go ahead and run the graph and see
02:55
what the data looks like.
02:56
Dynamo gives us three separate lists.
02:59
The first list is all of our stations,
03:01
then are northings, then our eastings.
03:04
Dynamo writes data to an Excel document
03:06
by row with sublists written in successive rows.
03:10
We want to export to the columns in Excel, not the rows.
03:13
So we will need to transpose this list.
03:17
Under the List category, under Organize Subcategory
03:22
at the very bottom, we find Transpose.
03:26
Add that node to our graph and connect the output list
03:32
to the import list.
03:34
Transpose will swap rows and columns in a list of list.
03:38
By adding this to the end and running our graph,
03:41
we now have many lists each containing
03:44
a single station and its respective x and y-coordinates.
03:48
Our data is now ready to be exported to Excel.
Try it: Organizing Data for Export