location of location box

location of location box

Anonymous
Not applicable
1,265 Views
4 Replies
Message 1 of 5

location of location box

Anonymous
Not applicable

How to find position of LOCATION BOX in Autocad Electrical Drawing using vb.net?

I want to get position X,Y,Z ?

0 Likes
Accepted solutions (1)
1,266 Views
4 Replies
Replies (4)
Message 2 of 5

rhesusminus
Mentor
Mentor

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.

 


Trond Hasse Lie
EPLAN Expert and ex-AutoCAD Electrical user.
Autodesk Expert Elite Alumni
Ctrl Alt El
Please select "Accept Solution" if this post answers your question. 'Likes' won't hurt either. 😉
0 Likes
Message 3 of 5

Anonymous
Not applicable

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?

0 Likes
Message 4 of 5

rhesusminus
Mentor
Mentor
Accepted solution

Get the GeometricExtents of the polyline. This returns an Extents3D object that contains the MinPoint.X, Y and Z.


Trond Hasse Lie
EPLAN Expert and ex-AutoCAD Electrical user.
Autodesk Expert Elite Alumni
Ctrl Alt El
Please select "Accept Solution" if this post answers your question. 'Likes' won't hurt either. 😉
0 Likes
Message 5 of 5

Anonymous
Not applicable

Thank You Sir,It works Correctly.

0 Likes