AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Distinguished Contributor
Posts: 144
Registered: ‎01-26-2010
Message 1 of 2 (222 Views)

SAC - Multiple Targets

222 Views, 1 Replies
10-27-2011 03:30 PM

I have built a curb return subassembly using the composer.


I have an intersection corridor.


The subassembly runs along the ETW Baseline (Curb Return).


When I build an intersection, I want the lane of this subassembly to target the center of both roads, finding the nearest target.


For some reason, when I add 2 Alignment targets, the subassembly will not recognize more than one lane width target.  It will target the first target selected, but that's it.


I have tried this with other subassemblies OOTB without issue, so I know it's something to do with the SAC subassembly.


Do I need to define something in SAC to allow multiple targets?  Or is this a limitation?


C3D 2012.

*Expert Elite*
Posts: 271
Registered: ‎12-14-2010
Message 2 of 2 (218 Views)

Re: SAC - Multiple Targets

10-27-2011 04:26 PM in reply to: kevinjackman

One method that should work:


Add the two target offset parameters (one for each center line)

Generate an auxiliary point at each target

Use a decision to find which target is closer (ap1.offset>ap2.offset)

On each side of the decision use the target that is closer (ap2 on true and ap1 on false)


Depending on how you set up the subassembly logic you may also need to check whether a target is valid (incase there is a scenerio where the user may only be selecting 1 alignment and not 2). 

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®
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.