AutoCAD Civil 3D General Discussion

Reply
*Expert Elite*
klugb
Posts: 690
Registered: ‎09-04-2008
Message 1 of 4 (250 Views)
Accepted Solution

SAC- Absolute Value

250 Views, 3 Replies
10-07-2011 07:54 AM

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
AutoCAD Expert Elite
AutoCAD Civil 3D 2014 Certified Professional
Infrastructure Design Suite 2014 (SP1)
Testing Civil 3D 2015
Win 7 Pro, 64-bit
*Expert Elite*
KMercier_C3D
Posts: 241
Registered: ‎12-14-2010
Message 2 of 4 (247 Views)

Re: SAC- Absolute Value

10-07-2011 07:56 AM in reply to: klugb

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

Kati Mercier, P.E.

Co-author of "Mastering AutoCAD Civil 3D 2013"
AutoCAD Civil 3D 2013 Certified Professional and AutoCAD 2013 Certified Professional
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®
*Expert Elite*
klugb
Posts: 690
Registered: ‎09-04-2008
Message 3 of 4 (243 Views)

Re: SAC- Absolute Value

10-07-2011 08:02 AM in reply to: KMercier_C3D

Thanks!

 

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

 

Bruce Klug
AutoCAD Expert Elite
AutoCAD Civil 3D 2014 Certified Professional
Infrastructure Design Suite 2014 (SP1)
Testing Civil 3D 2015
Win 7 Pro, 64-bit
Employee
peterfunkautodesk
Posts: 708
Registered: ‎08-25-2009
Message 4 of 4 (235 Views)

Re: SAC- Absolute Value

10-07-2011 08:35 AM 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.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

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 to get help installing your software.

Ask the Community


Civil 3D Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for AutoCAD Civil 3D helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Civil 3D

Twitter

Facebook

Blogs