How to find position of LOCATION BOX in Autocad Electrical Drawing using vb.net?
I want to get position X,Y,Z ?
Solved! Go to Solution.
Solved by rhesusminus. Go to Solution.
To locate and identify what AcadE sees as a Location Box, search for closed Polylines with XDATA named VIA_WD_LOCBOX* on them.
Then, use standard VB.NET functions to get the bounding box of the polyline.
I got the polylines Position..
I want to place one text in the lower left corner of the Location Box using vb.net code.
I have created Text using vb.net..
when i draw location box from bottom[StartPoint] to top[EndPoint], It will place my text correctly in the lower left corner of the Location Box.
If I draw location box from top[StartPoint] to bottom[EndPoint], It will place my text at top of the location box...I used position from Polylines.
if i draw location box from whatever position[from top to bottom or bottom to top],i want to place my text in the lower left corner of the Location Box.
Can we do that?how should i get lower position of location box?
Get the GeometricExtents of the polyline. This returns an Extents3D object that contains the MinPoint.X, Y and Z.