Hi all,
Working on a little app that will insert Surface Elevation Labels. I'm working on getting a combo box to fill with all of the surface elevation label styles and have the whole app working other than child styles. We have some standard styles that are children of other styles and the following code will get the parent style, but will not get the children.
For Each Style As ObjectId In CivilDoc.Styles.LabelStyles.SurfaceLabelStyles.SpotElevationLabelStyles
Dim oStyle As Styles.LabelStyle = TryCast(Style.GetObject(OpenMode.ForRead), Styles.LabelStyle)
mycombo.items.add = oStyle.Name
Next
I've looked at the oStyle thinking that the children would belong to that to see if there was a way to get the children but only a few items list for children... they are:
Dim oStyle As Styles.LabelStyle = TryCast(Style.GetObject(OpenMode.ForRead), Styles.LabelStyle)
oStyle.AddChild("Test")
oStyle.ChildrenCount
oStyle.RemoveChild(1)
So it appears to me that you can Add a child style, remove a child style and get the number of children, but I don't see a GetChildStyles or something to that effect. Anyone have any ideas?
Thanks.