Thursday, September 27, 2018

Property Boundary and Coordinate Data - Dynamo

Alternate title: Mr. Revit OpEd finally does something (tho basic) with Dynamo!

I used this problem as an excuse to dig into Dynamo a bit. I created the attached graph to read a text file with coordinate values, one line per X,Y,Z values.


The text file format is very basic, it looks like this:


I created a 3D cylinder and model lines to form a target symbol family, 3D and fairly large so I could see it anywhere in the model. The graph places a target family at each coordinate location. Before running the graph, I assigned the Project Units for Length to Meter. Then I ran (manual) the Dynamo graph to place the target families. The last step was to start the Property Line tool and sketch the property boundary segments from target to target, which looks like this.


It was necessary to move the points closer to Revit's origin so they were not so far away, since Revit hates that. After doing that, I moved the Survey Point (not clipped) to one corner of the property (target family location) and then used Specify Coordinates at Point at that location using the coordinate values for that corner. This will allow me to export the result to DWG, if necessary. I also created a specific Spot Coordinate family type so I could identify some or every target location and make sure each reports the correct coordinates, double checking my work so to speak.

I probably spent a couple hours on this, mostly trying to get my head wrapped around which nodes in Dynamo to use. The next time I'll be twice as fast!

3 comments:

Anonymous said...

Nice job Steve!

Дмитрий Дмитриев said...

Tell me please.
If I use the TXT type view - 5000.6000.0 - Everything works
If I use the type of numbers TXT - 5000.50,6000.60.0.0 - There is an error in the node - ImportFromCSV
Screen link https://yadi.sk/i/2RX5-s1K3y2G7Q

Steve said...

It might be the project units and the setting for Digit Grouping. I think it was necessary for me to use 0.0 for the z value to work when the file was read by Dynamo. I'm a beginner with Dynamo, so I'm not sure.