AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

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

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

100 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

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.

*Expert Elite*
Jeff_M
Posts: 4,478
Registered: ‎07-22-2003
Message 2 of 6 (81 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,714
Registered: ‎12-18-2002
Message 3 of 6 (69 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,478
Registered: ‎07-22-2003
Message 4 of 6 (61 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,714
Registered: ‎12-18-2002
Message 5 of 6 (58 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,478
Registered: ‎07-22-2003
Message 6 of 6 (55 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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!