Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
tcorey
180 Views, 5 Replies

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

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
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
5 REPLIES 5
Message 2 of 6
Jeff_M
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
EESignature
Message 3 of 6
tcorey
in reply to: Jeff_M

That's what I figured. Thanks, Jeff.

 

Tim



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
Message 4 of 6
Jeff_M
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
EESignature
Message 5 of 6
tcorey
in reply to: Jeff_M

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



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
Message 6 of 6
Jeff_M
in reply to: tcorey

Correct, Tim. Programming only.

Jeff_M, also a frequent Swamper
EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report