Infrastructure Map Server Developer

Infrastructure Map Server Developer

El Haj
Posts: 11
Registered: ‎04-25-2008
Message 1 of 1 (39 Views)

user object data

39 Views, 0 Replies
04-27-2008 11:37 PM
Hi everyone

Many people asked about how to access to user data objects. I think the best way is this:

Dim cls_manager As Autodesk.Gis.Map.Classification.ClassificationManager = Nothing
cls_manager = Autodesk.Gis.Map.HostMapApplicationServices.Application.ActiveProject.Classific ationManager

Dim objClass_Property As FeatureClassPropertyCollection = New FeatureClassPropertyCollection()
Dim list_values As System.Collections.ArrayList = Nothing

cls_manager.GetProperties(objClass_Property, list_values, objId)
Dim Class_Property As FeatureClassProperty = Nothing

For Each Class_Property In objClass_Property
Dim propName As System.String = Class_Property.Name
Dim propValue As String = Class_Property.DefaultValue.ToString
Utility.ShowMsg(vbNewLine & propName)
Utility.ShowMsg(vbNewLine & propValue)

I hope it will be useful for someone. . .
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.