Subassembly Composer using expressions

Subassembly Composer using expressions

Anonymous
Not applicable
5,067 Views
3 Replies
Message 1 of 4

Subassembly Composer using expressions

Anonymous
Not applicable

Hi!

I am very new to this, so bear with me 🙂

I want to create a very simple subassembly with two lines. One horizontal line made of 3 points: P1, P2, P3. P2 is the center point and will follow an alignment. P1 and P3 are the start and end point and will target 2 not parallel polylines, i.e. the width of the corridor will vary.

I want then to create a second line, perpendicular to P2 and with a length proportional to the length of the first line (which is variable depending on the section). Is there a way to do this in the Subassembly Composer?

If not, what are my options?

 

Grateful for som help 🙂

 

Best regards,

Elisa

0 Likes
Accepted solutions (1)
5,068 Views
3 Replies
Replies (3)
Message 2 of 4

KMercier_C3D
Advisor
Advisor
Accepted solution

The point that follows the alignment is located at the "origin" in SAC. Typically this is the first point you define. For the purposes of being consistent with your terminology I renamed it P2. 

 

You will want to define two Target Parameters as Offsets in the lower right window. I named them LeftTarget and RightTarget but you can name them whatever meets your needs. 

 

Then P1 will be from P2 at a Slope and Delta X of 0% and -10 (or some default value for when there is no target defined) and then set the offset target to LeftTarget. (Add a link from point with the checkbox to make L1.)

 

Then P3 will be from P2 at a Slope and Delta X of 0% and 10 (or some default value for when there is no target defined) and then set the offset target to RightTarget. (Add a link from point with the checkbox to make L2.)

 

Then P4 will be from P2 at a Delta X and Delta Y and the Delta Y will be L1.length+L2.length.

 

Delete the .zip at the end of the attached file.



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

Anonymous
Not applicable

Thank you so much!

I thought i did try the .length command, but apparently not 🙂

0 Likes
Message 4 of 4

KMercier_C3D
Advisor
Advisor

The last 4 pages of my AU2017 "Analyze and Devise in Subassembly Composer" handout is a great 'cheat sheet' of SAC expressions. 

 

https://www.autodesk.com/autodesk-university/class/Analyze-and-Devise-Subassembly-Composer-2017#hand... 



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®