Base Point Location of Block Reference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am having trouble getting the "Base Point" of a Block Reference in autocad. I am not sure if base point is the correct terminology or not.
If I perform a LIST command on a Block Reference in autocad the values for the location are the same as if I use the BlockReference.Position in .NET
i.e.
External reference
at point, X=128170.18580000 Y=44629.83387360 Z=26037.43318039
X scale factor: 1.00000000
Y scale factor: 1.00000000
Z scale factor: 1.00000000
Extrusion direction relative to UCS:
X=0.00000000 Y=-0.25881731 Z=0.96592629
However if i use a LISP command (entget (car (entsel))) I get different values in the dxf code 10 position. The values that I get here, are the ones that I want to get in .NET.
i.e.
Select object: ((-1 . <Entity name: -51963e98>) (0 . "INSERT") (5 . "29F5")
(102 . "{ACAD_XDICTIONARY") (360 . <Entity name: -51963e90>) (102 . "}") (330 .
<Entity name: -4011f2f8>) (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 .
"ADE_TEMP") (100 . "AcDbBlockReference") (2 . "T61-5-2-0103") (10 128170.0
49848.1 13599.3) (41 . 1.0) (42 . 1.0) (43 . 1.0) (50 . 1.5708) (70 . 0) (71 .
0) (44 . 0.0) (45 . 0.0) (210 0.0 -0.258817 0.965926))
Does anyone know the equivalent .NET command to get the Block References original insertion point (base point) which is the same as a the DXF 10 code?
In VBA I have noticed there is a object.BasePoint property however I do not know how to convert this to .NET.
Cheers,
Kate