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: 

SAC- Absolute Value

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
klugb
1751 Views, 3 Replies

SAC- Absolute Value

Is there a way to get the absolute value using the subassembly composer? I was checking the elevation difference between two points and just want the delta regardless if it's positive or negative.

 

Thanks

 

 

Bruce Klug, P.E.
AutoCAD Expert Elite Alumni
AutoCAD Civil 3D Certified Professional
Civil 3D 2023.2.1

Win 10 Enterprise, 64-bit
3 REPLIES 3
Message 2 of 4
KMercier_C3D
in reply to: klugb

Try: math.abs(p2.elevation-p1.elevation)



Kati Mercier, P.E. | LinkedIn | AutoCAD Civil 3D Certified Professional
Pronouns: She/Her
Co-author of "Mastering AutoCAD Civil 3D 2013"
AU2019 Speaker::: CES321590: Analyze and Revise Existing Subassembly Composer PKT Files for AutoCAD Civil 3D
AU2017 Speaker::: CI125544: Analyze and Devise in Subassembly Composer
AU2012 Speaker::: CI3001: Reverse Engineering with Subassembly Composer for AutoCAD Civil 3D
AU2011 Speaker::: CI4252: Create Subassemblies That Think Outside the Box With Subassembly Composer for AutoCAD® Civil 3D®

Message 3 of 4
klugb
in reply to: KMercier_C3D

Thanks!

 

Tried the "abs" but forgot the "math."

 

Bruce Klug, P.E.
AutoCAD Expert Elite Alumni
AutoCAD Civil 3D Certified Professional
Civil 3D 2023.2.1

Win 10 Enterprise, 64-bit
Message 4 of 4
peterfunkautodesk
in reply to: klugb

There is a link in the help file to the Microsoft site that lists all the functions in the .NET Math library. You can use all of these inside of SAC. However, if you think you need trig functions you might want to revisit the point options and intersection options. I don't think I've needed to use trig yet.

 

Cheers,

 

Peter Funk

Autodesk, Inc.



Peter Funk
Autodesk, Inc.

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report