What is strLayer and strBaseLayer in SuperelevationView.Create?

What is strLayer and strBaseLayer in SuperelevationView.Create?

soonhui
Advisor Advisor
444 Views
1 Reply
Message 1 of 2

What is strLayer and strBaseLayer in SuperelevationView.Create?

soonhui
Advisor
Advisor

Refer to here,

 

What is strLayer and strBaseLayer in SuperelevationView.Create? I can't find out exactly what are they, and what's their UI equivalent. 

##########

Ngu Soon Hui

##########

I'm the Benevolent Dictator for Life for MiTS Software. Read more here


I also setup Civil WHIZ in order to share what I learnt about Civil 3D
0 Likes
Accepted solutions (1)
445 Views
1 Reply
Reply (1)
Message 2 of 2

sreeparna_mandal
Autodesk
Autodesk
Accepted solution

https://help.autodesk.com/view/CIV3D/2023/ENU/?guid=GUID-C59C1331-D5C3-4449-9CF3-F4ED2083C68C
We can specify * in the layer name modifier. For example, when creating a new alignment, if in the Object Layer dialog, I specify a suffix of -ALIGNMENT-* , the created alignment will be put on the layer of C-ROAD-ALIGNMENT-Alignment - (1) where Alignment - (1) is the new alignment name.
Since this is a new layer, we need to copy the properties from the C-ROAD layer, which is usually specified in Drawing Settings > Object Layers dialog. So here for the API, pass C-ROAD-ALIGNMENT-* as strLayer, and C-ROAD as strBaseLayer , you should be able to get the same result as in the creation dialog.

(PFA screenshot)

 

sreeparna_mandal_1-1739176182590.png

 

If you don't want to create every object on a different layer, then you can pass C-ROAD as strLayer and an empty strBaseLayer.