• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD Electrical

    Reply
    Active Contributor
    Posts: 43
    Registered: ‎02-07-2013
    Accepted Solution

    location of location box

    316 Views, 4 Replies
    02-15-2013 01:44 AM

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

    I want to get position X,Y,Z ?

    Please use plain text.
    Distinguished Mentor
    rhesusminus
    Posts: 569
    Registered: ‎09-21-2007

    Re: location of location box

    02-26-2013 11:03 PM in reply to: kani_mca

    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.

     


    THL
    Please select "Accept As Solution" if this post answers your question. Kudos don't hurt either. ;-)
    Please use plain text.
    Active Contributor
    Posts: 43
    Registered: ‎02-07-2013

    Re: location of location box

    02-26-2013 11:57 PM in reply to: rhesusminus

    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?

    Please use plain text.
    Distinguished Mentor
    rhesusminus
    Posts: 569
    Registered: ‎09-21-2007

    Re: location of location box

    02-27-2013 12:28 AM in reply to: kani_mca

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


    THL
    Please select "Accept As Solution" if this post answers your question. Kudos don't hurt either. ;-)
    Please use plain text.
    Active Contributor
    Posts: 43
    Registered: ‎02-07-2013

    Re: location of location box

    02-27-2013 12:51 AM in reply to: rhesusminus

    Thank You Sir,It works Correctly.

    Please use plain text.