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

    AutoCAD Civil 3D

    Reply
    *Expert Elite*
    Posts: 1,766
    Registered: ‎12-18-2002
    Accepted Solution

    Looking for a way to capture the drag distance of a label...

    84 Views, 5 Replies
    12-13-2012 08:46 AM

    Hello all,

     

    Does anyone know a way to capture the drag distance of a Civil 3D label object?

     

    If that was a property, then we would be able to make our Leaders display or not display based on the distance from the object. If I only drag a label a half-inch I might not want a leader, but if I go further I would like the leader to appear.

     

    It would be easy enough to do this with expressions if you could make that property available in the expressions dialog.

     

    Thanks in advance for any ideas,

     

    Tim

    Tim Corey, Owner
    Delta Engineering Systems
    Redding, CA
    Autodesk Authorized Value-Added Reseller
    Please use plain text.
    *Expert Elite*
    Posts: 3,052
    Registered: ‎07-22-2003

    Re: Looking for a way to capture the drag distance of a label...

    12-13-2012 11:19 AM in reply to: tcorey

    Tim, C3D2013's .NET API provides the necessary Label object properties to do this programmatically. Can't think of any other way, other than manual visaul inspection, right now.

    Jeff_M, also a frequent Swamper
    Please use plain text.
    *Expert Elite*
    Posts: 1,766
    Registered: ‎12-18-2002

    Re: Looking for a way to capture the drag distance of a label...

    12-13-2012 01:13 PM in reply to: Jeff_M

    That's what I figured. Thanks, Jeff.

     

    Tim

    Tim Corey, Owner
    Delta Engineering Systems
    Redding, CA
    Autodesk Authorized Value-Added Reseller
    Please use plain text.
    *Expert Elite*
    Posts: 3,052
    Registered: ‎07-22-2003

    Re: Looking for a way to capture the drag distance of a label...

    12-13-2012 02:19 PM in reply to: tcorey

    Actually, I found that working with cogopoints is a bit different than most labels. Here's a quick video of the what can be done though:

    http://screencast.com/t/iPz6sngUA

     

    For this I used the Point.Location and Point.LabelLocation properties to determine whether to use the leader or omit it.

    Jeff_M, also a frequent Swamper
    Please use plain text.
    *Expert Elite*
    Posts: 1,766
    Registered: ‎12-18-2002

    Re: Looking for a way to capture the drag distance of a label...

    12-13-2012 02:26 PM in reply to: Jeff_M

    That's a custom routine, right? You're not accessing Point Labellocation other than through .Net?

    Tim Corey, Owner
    Delta Engineering Systems
    Redding, CA
    Autodesk Authorized Value-Added Reseller
    Please use plain text.
    *Expert Elite*
    Posts: 3,052
    Registered: ‎07-22-2003

    Re: Looking for a way to capture the drag distance of a label...

    12-13-2012 02:48 PM in reply to: tcorey

    Correct, Tim. Programming only.

    Jeff_M, also a frequent Swamper
    Please use plain text.