How to customize text contents for a property : Text Component Editor - Contents

How to customize text contents for a property : Text Component Editor - Contents

nglatne
Contributor Contributor
4,153 Views
2 Replies
Message 1 of 3

How to customize text contents for a property : Text Component Editor - Contents

nglatne
Contributor
Contributor

Hi all,

Need ur help.

I have created a label for each PI by combining different properties under a component name "text for each Curve" (as shown in the attached image). The output, i am getting of that label, is as shown on the right side of the image. 

 

I want to add to the above output (Table), the Design speed, calculated from the equation "V= SQRT(R*127*(e+f))"; which is dynamic to the Radius of Curve (Existing road, Site constraints). So as at every PI, Design speed will change based on the radius of curve.

My query is how to add the above expression in the "Text component editor - content"?  to get the desired output as shown on the Right side (Yellow text). How to add mathematical expressions? How to write code to get the desired results?

0 Likes
4,154 Views
2 Replies
Replies (2)
Message 2 of 3

lu_an_jie
Advocate
Advocate

You need to split the alignment labels geometry point in to two, and separate points followed by a curve from the other points by selecting in the first set all points that are followed by a curve and the second set with all points not followed by a curve by checking/unchecking them in "Geometry points to label" tab: 

Capture-1.PNG

 

 

Than you copy and rename your current label and use it for the points followed by a curve. Now it's time to get this label with the radius info of the following curve:

add in the label layout a new text field with the properties "Geometry point entity after data"

 


Capture2.PNG

 

Most like you will see BC: Radius and Length.  So let's change this one.

  1. In Toolspace, on the Settings tab, right-click the drawing and click Edit Drawing Settings. Click the Abbreviations tab.
  2. In the Alignment Geometry Point Entity Data section, select the entity curve beginning type. Click    in the Value column to modify the label for that type using your formula
Regards

Andreas Luka (Lu An Jie)

http://www.luka-consult.de

Creator of the LX-Stair App for Civil 3D
0 Likes
Message 3 of 3

cwr-pae
Mentor
Mentor

Expressions will show up in the text component text contents after it is created.

Create expression (formula) here

Capture.JPGAdd to label component here

 

Capture1.JPG

note I used a dummy expression named speedformula for illustration