Hello All, With help with expert here, I can access pipeline/area in OPM by MVBA now. Set MyEnum = ActiveModelReference.ControlElementCache.Scan While MyEnum.MoveNext If MyEnum.Current.Type = msdElementTypeMicroStation Then 'do something end if wend After testing, I found the type of pipeline/area/unit is msdElementTypeMicroStation, and then use PropertyHandler to get property of them. But there is a problem, there is no way to identify what it is. Right now I have to judge by some properties. For example, if the property number is 24, it is unit or area; if the property number is 31, it is service; if the property number is 78, it is pipeline. If the project is customized, and the number of property is changed, this way cannot work. So I'd like to know if anyother way to know what it is, assuming the property name and property number are changed. Thanks a lot!
↧