Hiding Subassembly Target Parameters in the Corridor Properties
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:
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.
In this example, we will set up two parameters: one to control target parameter visibility, and the other is of course a target parameter:
In the Hide Target Parameters component properties, we need to reference our Boolean parameter that we intend to have control target parameter visibility:
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:
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:
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:
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:
…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:
Changing the settings back will of course result in the target parameters once again being available.