change default label style to a child style .NET

change default label style to a child style .NET

Anonymous
Not applicable
692 Views
1 Reply
Message 1 of 2

change default label style to a child style .NET

Anonymous
Not applicable

I am trying to change the default label styles for AddSegmentLabel under general styles using .NET...

Dim X As Autodesk.Civil.Settings.SettingsCmdAddSegmentLabel = CD.Settings.GetSettings(Of Autodesk.Civil.Settings.SettingsCmdAddSegmentLabel)()

 

X.Styles.LineLabel.Value = strChildStyleName ... says name does not exist

 

or

 

X.Styles.LineLabelStyleId.Value = oidChildStyle ... "The type of objectId is wrong"

 

If I manually change it to a child style and then check the values, they are the same as what I'm trying to set them to. If you use a "parent" style then these both work. Am I doing something wrong or this another limitation?

 

 

 

 

0 Likes
693 Views
1 Reply
Reply (1)
Message 2 of 2

Jeff_M
Consultant
Consultant

It seems as though we aren't permitted to work with Children. I have seen other cases where Child styles throw exceptions and was told that the code was working 'as designed'...meaning it wasn't implemented for whatever reason.

Jeff_M, also a frequent Swamper
EESignature
0 Likes