Infrastructure Map Server Developer

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

user object data

37 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)
Next



I hope it will be useful for someone. . .
Suggestions?

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
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 to get help installing your software.

Ask the Community