Posted on

Hiding Subassembly Target Parameters in the Corridor Properties

Hiding Subassembly Target Parameters in the Corridor Properties

sample subassembly created in Subassembly Studio

Not too long ago, a community member on the Autodesk AutoCAD Civil 3D Wishlist forum posted a request to be able to ‘hide’ target parameters for subassemblies in the corridor properties when no targets were needed. For example, let’s say you have a lane subassembly that supports a width and an elevation target. If the lane will always use a constant width and the cross slope is to be determined solely by default and/or superelevation slopes, then support for the targets (and therefore the target parameters) are superfluous, yet the parameters are still shown in the Target Mapping dialog, accessed via the Corridor Properties:

corridor target mapping dialog in AutoCAD Civil 3D

Wouldn’t it be nice if these unused target parameters could just be hidden?

If a subassembly was created using Subassembly Studio, a new feature allows you to do precisely this with only a minor modification to your existing design. In Subassembly Studio V8.0.16, we introduced a new component called Hide Target Parameters. This component accepts a boolean parameter reference that allows the end user to choose (through the subassembly properties) whether the targets should be hidden. Depending on the value of this parameter, the logic can suppress or hide the target parameters defined for that subassembly from the Corridor Properties dialog in AutoCAD Civil 3D.

To demonstrate how this new feature works, we can create a new subassembly, add some geometry, and then add the new Hide Target Parameters component. The subassembly will just be a single pavement layer in this example, but there is no limitation to the types of subassemblies this applies to – it will work with ANY Subassembly Studio generated subassembly of any complexity, provided there are target parameters to be hidden.

Subassembly Studio - subassembly geometric component list

In this example, we will set up two parameters: one to control target parameter visibility, and the other is of course a target parameter:

Subassembly Studio - subassembly parameters (input and target)

In the Hide Target Parameters component properties, we need to reference our Boolean parameter that we intend to have control target parameter visibility:

Subassembly Studio - add/edit geometry

From here we can tweak any of the geometry, etc. as desired. Once the subassembly is ready to export, we do so and then import the resulting PKT file into AutoCAD Civil 3D. The sample subassembly looks like this in Subassembly Studio:

Sample subassembly in Subassembly Studio

Once the subassembly is imported to AutoCAD Civil 3D, we create an assembly and insert our new subassembly (in this case twice: once on the right, and once on the left), and then create a sample corridor to use this assembly:

assembly in AutoCAD Civil 3D showing one left and one right instance of our custom subassembly

If we initially set both subassembly instances to show the target parameters (set the value of the HideTargetParams parameter to No) as shown below, the target parameters will show up normally in the Corridor Properties:

Assembly Properties in AutoCAD Civil 3D

Corridor target mapping in AutoCAD Civil 3D - all targets shown

If we then modify the value of this parameter on the ‘left’ side only, and then revisit the corridor properties, we can very clearly see the result:

Assembly Properties in AutoCAD Civil 3D

Corridor target mapping in AutoCAD Civil 3D - filtered targets (left side is hidden)

…the left side target parameter has been omitted from the Target Mapping dialog!

If we now repeat this setting for the ‘right’ side as well, we see the following when we try to access the Target Mapping dialog:

no targets found dialog (both subassembly instances have targets hidden)

Changing the settings back will of course result in the target parameters once again being available.

 

The web store has been temporarily placed in demo/test mode while we update and test some new features. If you see this message and wish to make a purchase please contact sales@civilplus.net. Thank you.