AutoCAD Civil 3D General Discussion

Reply
Distinguished Contributor
kevinjackman
Posts: 142
Registered: ‎01-26-2010
Message 1 of 4 (400 Views)

SAC Switch for Insertion Point

400 Views, 3 Replies
10-25-2011 11:20 AM

In the subassebly composer, how would I go about creating a switch to change the insertion point of my subassembly?

 

I have a lane with curb and gutter.  I want to allow a switch to insert at either ETW or Crown.

 

I think I have to create two enumerations and then switch the enumerations but I'm unsure.

 

Thanks!

 

C3D 2012.

Employee
peterfunkautodesk
Posts: 707
Registered: ‎08-25-2009
Message 2 of 4 (399 Views)

Re: SAC Switch for Insertion Point

10-25-2011 11:29 AM in reply to: kevinjackman

You can't really change the insertion point for the SA it is always at 0,0, but what you can do is to move the starting point for your SA. You might also need a variable that is appled to the X dims so they flip their direction.

 

So you need to set P0 (assume you start at back of ETW). In case 1 you start at 0,0. in the other case, you start offset from 0,0 so that the Crown ends up at 0,0. In the second case, rename the point P0.

 

After you set the two P0 points, bring the branches back together and draw the rest of the points.

 

Regards,

 

Peter Funk

Autodesk, Inc.



Peter Funk
Autodesk, Inc.

Distinguished Contributor
kevinjackman
Posts: 142
Registered: ‎01-26-2010
Message 3 of 4 (395 Views)

Re: SAC Switch for Insertion Point

10-25-2011 11:57 AM in reply to: peterfunkautodesk

So what would be the expression for the switch then?

*Expert Elite*
KMercier_C3D
Posts: 240
Registered: ‎12-14-2010
Message 4 of 4 (389 Views)

Re: SAC Switch for Insertion Point

10-25-2011 12:50 PM in reply to: kevinjackman

Make an enumeration group with the items: ETW, Crown.

Add an Input Parameter that uses the enumeration type you defined (name: InsertionLocation)

Add a Decision with VB Expression: InsertionLocation.value="ETW" (since you only have two choices a decision is a better choice than a switch)

On the True Side do your ETW logic and on the False Side do your Crown Logic

As Peter said, you can always join the trees back together once they are the same logic again.

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®

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