Getting the properties of AutoCAD objects

Hi all,
I need to extract the properties (x, y, and z positions) of some blocks from a dwg file.
How can I do this from Dynamo for Revit or Dynamo for Civil 3D?

Is dataextraction command in AutoCAD not applicable to your process?

1 Like

@theshysnail Civil 3D Toolkit


Don’t know why “Position X” as a parameter name is not working. Where could I find some related resources/documentation?

Because it is not a parameter on the object, use the GetParameters node to know what you can use

Hi @Paolo_Emilio_Serra1, could you attach that script? Or am I allowed to write it myself? :slight_smile:

@Stoniukas I made it look more complicated than it is…

import clr
from Autodesk.DesignScript.Geometry import Point
OUT = [Point.ByCoordinates(p.X, p.Y, p.Z) for p in IN[0]]

Thanks @Paolo_Emilio_Serra1 !! :slight_smile:

Hi Paolo, is it possible to access extrusion data of the objects? i was able to extract some parameters but not those ones, i got a feeling it has to do somethign with the Geometry extents

@sweapon that would be another topic of the day. This thread has a solution already.

Hi, I usually use this from C3D to Revit you can extract the rotation as well.