AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Reply
*Expert Elite*
tcorey
Posts: 2,557
Registered: ‎12-18-2002
Message 1 of 6 (99 Views)
Accepted Solution

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

99 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
*Expert Elite*
Jeff_M
Posts: 4,315
Registered: ‎07-22-2003
Message 2 of 6 (80 Views)

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
*Expert Elite*
tcorey
Posts: 2,557
Registered: ‎12-18-2002
Message 3 of 6 (68 Views)

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
*Expert Elite*
Jeff_M
Posts: 4,315
Registered: ‎07-22-2003
Message 4 of 6 (60 Views)

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
*Expert Elite*
tcorey
Posts: 2,557
Registered: ‎12-18-2002
Message 5 of 6 (57 Views)

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
*Expert Elite*
Jeff_M
Posts: 4,315
Registered: ‎07-22-2003
Message 6 of 6 (54 Views)

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
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.