AutoCAD Civil 3D
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
SAC- Absolute Value
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
167 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 2013 Certified Professional
C3D 2013 (SP1)
C3D 2014 (Testing)
Win 7 Pro, 64-bit
AutoCAD Expert Elite
AutoCAD Civil 3D 2013 Certified Professional
C3D 2013 (SP1)
C3D 2014 (Testing)
Win 7 Pro, 64-bit
Solved! Go to Solution.
Re: SAC- Absolute Value
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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®
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®
Re: SAC- Absolute Value
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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 2013 Certified Professional
C3D 2013 (SP1)
C3D 2014 (Testing)
Win 7 Pro, 64-bit
AutoCAD Expert Elite
AutoCAD Civil 3D 2013 Certified Professional
C3D 2013 (SP1)
C3D 2014 (Testing)
Win 7 Pro, 64-bit
Re: SAC- Absolute Value
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.

