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

Field formula add or subtract from current sheet number

2 REPLIES 2
Reply
Message 1 of 3
1wildwes
224 Views, 2 Replies

Field formula add or subtract from current sheet number

1wildwes
Collaborator
Collaborator

Is it possible to create a field with a formula to add or subtract from the current sheet number? This field would be used in plan sheet matchline text. I know you can create a field to do this manually through the Sheet Set manager, but would like to be able to automate it.

0 Likes

Field formula add or subtract from current sheet number

Is it possible to create a field with a formula to add or subtract from the current sheet number? This field would be used in plan sheet matchline text. I know you can create a field to do this manually through the Sheet Set manager, but would like to be able to automate it.

Tags (2)
Labels (2)
2 REPLIES 2
Message 2 of 3
Marlene495Hadley
in reply to: 1wildwes

Marlene495Hadley
Community Visitor
Community Visitor

Hello!

Yes, you can automate adding or subtracting from the current sheet number in plan sheet matchline text. In AutoCAD's Sheet Set Manager, create a custom property for the current sheet number, then use a "Formula" field type to perform the arithmetic operation. For complex tasks, use Diesel expressions in the Field dialog. Ensure fields are set to update automatically to keep the values current.

 

 

Hope this helps!

UPS workers

Hello!

Yes, you can automate adding or subtracting from the current sheet number in plan sheet matchline text. In AutoCAD's Sheet Set Manager, create a custom property for the current sheet number, then use a "Formula" field type to perform the arithmetic operation. For complex tasks, use Diesel expressions in the Field dialog. Ensure fields are set to update automatically to keep the values current.

 

 

Hope this helps!

UPS workers

Message 3 of 3
brian.strandberg
in reply to: 1wildwes

brian.strandberg
Advisor
Advisor

This is going to take a couple of steps to explain, lets take a look:

 

1) First we are going to need to get the code for the Field expression, you can copy this code from the bottom.

brianstrandberg_0-1722021732142.png

2) Go into the Other Field Category and select Diesel Expression.  You want to insert this Diesel expression with the field code.   I wanted to show you where to get the field code in step 1 in case you later want to work with something else.

$(+,1,%<\AcSm Sheet.Number \f "%tc2">%)

In my case this returns 2.  You can see the field expression will return +,1,1 because in my case the sheet # is 1.  It evaluates it here.  Let me know if this works for you and if you have any questions.


brianstrandberg_1-1722021937009.png

 

Check out my Civil 3d blog at: http://c3dk.com/
Favorite Posts: Use Dynamo For Surface Analysis: https://youtu.be/eJNdX6guMP8
Fast Track your site grading with the new Corridor Workflow: https://youtu.be/Gg7u9-LgIL0

This is going to take a couple of steps to explain, lets take a look:

 

1) First we are going to need to get the code for the Field expression, you can copy this code from the bottom.

brianstrandberg_0-1722021732142.png

2) Go into the Other Field Category and select Diesel Expression.  You want to insert this Diesel expression with the field code.   I wanted to show you where to get the field code in step 1 in case you later want to work with something else.

$(+,1,%<\AcSm Sheet.Number \f "%tc2">%)

In my case this returns 2.  You can see the field expression will return +,1,1 because in my case the sheet # is 1.  It evaluates it here.  Let me know if this works for you and if you have any questions.


brianstrandberg_1-1722021937009.png

 

Check out my Civil 3d blog at: http://c3dk.com/
Favorite Posts: Use Dynamo For Surface Analysis: https://youtu.be/eJNdX6guMP8
Fast Track your site grading with the new Corridor Workflow: https://youtu.be/Gg7u9-LgIL0

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

Post to forums  

Rail Community


Autodesk Design & Make Report