AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Reply
Active Member
Jason__M
Posts: 10
Registered: ‎08-06-2012
Message 1 of 9 (233 Views)

VARIABLE FOR LABEL EXPRESSIONS

233 Views, 8 Replies
08-06-2012 01:10 PM

Often we need to collect our topographic/boundary data using a state plane grid, but we still need to label property lines using the recoded deed bearings.  We have a style with an expression set up to apply this rotation to lines and a similiar one set up for curves.  Is there a way to store this rotation and have both expressions look up the value from one place?  I am worried that I will type in the angle for the line labels and then forget to type it in for the curve labels, or maybe the angle is typed in correctly in one expression but incorrectly in the other.  If it was typed in once, then even if it was wrong, at least the labels would be consistent and correct relative to each other.

 

Thanks for any help or advice

*Expert Elite*
Joe-Bouza
Posts: 4,966
Registered: ‎12-15-2008
Message 2 of 9 (228 Views)

Re: VARIABLE FOR LABEL EXPRESSIONS

08-06-2012 01:32 PM in reply to: Jason__M

Make an expression call it say "RotationAngle" this is where you enter the rotation. Then reference "RotationAngle" in the line label style. I'm puzzled about the curve part of the question.

Thank you

Joseph D. Bouza, P.E. (one of 'THOSE' People) Civil 3D 2012 & 2013
HP Z210 Workstation
Intel Xeon CPU E31240 @ 3.30 Hz
12 GB Ram


Note: Its all Resistentialism, so keep calm and carry on

64 Bit Win7 OS
*Expert Elite*
sboon
Posts: 2,134
Registered: ‎11-08-2005
Message 3 of 9 (225 Views)

Re: VARIABLE FOR LABEL EXPRESSIONS

08-06-2012 01:59 PM in reply to: Joe-Bouza

Joe - they likely need to label curves with either radial or chord bearings.

*Expert Elite*
Joe-Bouza
Posts: 4,966
Registered: ‎12-15-2008
Message 4 of 9 (222 Views)

Re: VARIABLE FOR LABEL EXPRESSIONS

08-06-2012 02:09 PM in reply to: sboon

Thanks Steve.

 

So the op will need to do it twice.

 

 

 

Thank you

Joseph D. Bouza, P.E. (one of 'THOSE' People) Civil 3D 2012 & 2013
HP Z210 Workstation
Intel Xeon CPU E31240 @ 3.30 Hz
12 GB Ram


Note: Its all Resistentialism, so keep calm and carry on

64 Bit Win7 OS
*Expert Elite*
Joe-Bouza
Posts: 4,966
Registered: ‎12-15-2008
Message 5 of 9 (219 Views)

Re: VARIABLE FOR LABEL EXPRESSIONS

08-06-2012 02:18 PM in reply to: Joe-Bouza

I made an error. you need RotationAngle for line and curves. More importantly you will need two more expresions to do the math {GeneralSegmentDirection - RotationAngle} then ref those in the label style.

 

Thank you

Joseph D. Bouza, P.E. (one of 'THOSE' People) Civil 3D 2012 & 2013
HP Z210 Workstation
Intel Xeon CPU E31240 @ 3.30 Hz
12 GB Ram


Note: Its all Resistentialism, so keep calm and carry on

64 Bit Win7 OS
Active Member
Jason__M
Posts: 10
Registered: ‎08-06-2012
Message 6 of 9 (184 Views)

Re: VARIABLE FOR LABEL EXPRESSIONS

08-07-2012 05:22 AM in reply to: Joe-Bouza

Joe,

 

In your reply you type {GeneralSegmentDirection - RotationAngle}.  Is the "Rotation Angle" what you will see in the expression builder?  If that's the case, how do we set that?  Currently I am doing the math so my expression looks like {GeneralSegmentDirection} + DEG2RAD(xxx) (with the "xxx" being the measured rotation that I type in each expression).  That's the part I am trying to get away from.  Can I have that value either typed in and saved or calculated in an another expression, and have it called back up somehow in a generic expression that creates the label (one for lines and one for curves)?

 

Thanks for your interest,

*Expert Elite*
Joe-Bouza
Posts: 4,966
Registered: ‎12-15-2008
Message 7 of 9 (182 Views)

Re: VARIABLE FOR LABEL EXPRESSIONS

08-07-2012 05:29 AM in reply to: Jason__M

I was wondering how you had it set up.

 

Where you have the xxx, replace that with the expression that hold your roation angle:

 

{GeneralSegmentDirection} + DEG2RAD(RotaionAngle)

 

I was fumbling with the math and was not sure if I was adding or subtracting, and I had the angle format wrong. Do you keep the values as "double"?

Thank you

Joseph D. Bouza, P.E. (one of 'THOSE' People) Civil 3D 2012 & 2013
HP Z210 Workstation
Intel Xeon CPU E31240 @ 3.30 Hz
12 GB Ram


Note: Its all Resistentialism, so keep calm and carry on

64 Bit Win7 OS
Active Member
Jason__M
Posts: 10
Registered: ‎08-06-2012
Message 8 of 9 (178 Views)

Re: VARIABLE FOR LABEL EXPRESSIONS

08-07-2012 05:40 AM in reply to: Joe-Bouza

Joe,

 

In my expression, I was using the "direction" format. 

I didn't notice before that you could call up existing expressions.  That will be helpful. 

It looks like I am still stuck with having to type (or calculate) the rotation value in two seperate expressions though.  If I create a  line expression that calculates the rotation value, I can't call up that expession when building my curve expression, right?  Or is there a way to create a generic expression that could be called up in both the line and curve expression builder?  Typing it in twice definetly works, but I am afraid of forgetting or messing up one of the two.

 

Thanks again,

*Expert Elite*
Joe-Bouza
Posts: 4,966
Registered: ‎12-15-2008
Message 9 of 9 (175 Views)

Re: VARIABLE FOR LABEL EXPRESSIONS

08-07-2012 06:01 AM in reply to: Jason__M

Hi Jason

 

I don't see the expressions for "Lines" listed in curves. So, yes the expression would have to be filled in for both, but if you have a mess of label styles that rely on the angle it a home run

Thank you

Joseph D. Bouza, P.E. (one of 'THOSE' People) Civil 3D 2012 & 2013
HP Z210 Workstation
Intel Xeon CPU E31240 @ 3.30 Hz
12 GB Ram


Note: Its all Resistentialism, so keep calm and carry on

64 Bit Win7 OS
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.