How Can i find blockrefrence Center point

How Can i find blockrefrence Center point

hojjatnikan
Observer Observer
705 Views
3 Replies
Message 1 of 4

How Can i find blockrefrence Center point

hojjatnikan
Observer
Observer

Hello
As you can see in the image, the coordinates I get from the position property represent the point I marked, but I need to find the coordinates of the center as I specified in the image.
please guide me
Thanks

hojjatnikan_0-1713966426746.png

 

0 Likes
706 Views
3 Replies
Replies (3)
Message 2 of 4

_gile
Consultant
Consultant

Hi,

You can use the "Center point" of the block definition (BlockTableRecord) and transform it with the block reference BlockTransform matrix.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 3 of 4

hojjatnikan
Observer
Observer

Thanks for your reply, if possible please give a C# example

Thanks

0 Likes
Message 4 of 4

_gile
Consultant
Consultant

It should be possible if you provided a block example.

Please attach some DWG file only containing the block (or the block drawing as got with WBLOCK command).



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes