Extracting the XYZ coordinates of the elements from Revit through Dynamo

Extracting the XYZ coordinates of the elements from Revit through Dynamo

aagr657
Explorer Explorer
7,947 Views
5 Replies
Message 1 of 6

Extracting the XYZ coordinates of the elements from Revit through Dynamo

aagr657
Explorer
Explorer

Hii, 

 

I am trying to export the coordinates of piles from a Revit model using a Dynamo script. I am trying to use the family instance location. However, the warning I am getting over the FamilyInstance.Location node is 'Warning: FamilyInstance.Location expects argument type(s) (Revit.Elements.FamilyInstance), but was called with (Revit.Elements.DirectShape[]).'

 

Now, looking at the properties of the piles in Revit, I figured out that the family of the piles is 'Direct Shape', probably that's the reason Dynamo isn't working. 

 

Is there any way to extract the coordinates of such elements?

aagr657_0-1680408234912.png

aagr657_1-1680408459860.png

 

 

0 Likes
7,948 Views
5 Replies
Replies (5)
Message 2 of 6

sayu94
Enthusiast
Enthusiast
Hi. If you want to use this node in Dynamo - you must use simple Families, that you did manually by template family on level. After that - all will be work))
Message 3 of 6

aagr657
Explorer
Explorer

Hii,

Many thanks for your response.

The model actually is not prepared by me. I got it in .ifc format and when I imported it in Revit, the family type of the piles is direct shape. Is there any way I can change the family to something like a column?

 

Best Regards,

Ajay

0 Likes
Message 4 of 6

sayu94
Enthusiast
Enthusiast
if you want use actually this direct dhape families- you must analyze geometry. I think you can get center of solid element and get most top point. After that you can get x,y coordinate from center solid and z from top point
Message 5 of 6

SAINA02
Explorer
Explorer

Hi
You can use "Element.Location+" node form "Clockwork" package for this purpose.

 

You should also pay attention to points highlighted in link below about the coordinate system used for determining the element location:

https://www.linkedin.com/pulse/getting-coordinates-dynamo-jason-murray
Good Luck

0 Likes
Message 6 of 6

ederbel
Participant
Participant

extracting the X Y Z geographic coordinates of the elements in REVIT based on the base point and the topographic point (it's more exact)

0 Likes