<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Access to data objects in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/access-to-data-objects/m-p/2240944#M74801</link>
    <description>Hi everyone&lt;BR /&gt;
&lt;BR /&gt;
Many people asked about how to access to user data objects. I think the best way is this:&lt;BR /&gt;
&lt;BR /&gt;
Dim cls_manager As Autodesk.Gis.Map.Classification.ClassificationManager = Nothing&lt;BR /&gt;
                    cls_manager = Autodesk.Gis.Map.HostMapApplicationServices.Application.ActiveProject.ClassificationManager&lt;BR /&gt;
&lt;BR /&gt;
                    Dim objClass_Property As FeatureClassPropertyCollection = New FeatureClassPropertyCollection()&lt;BR /&gt;
                    Dim list_values As System.Collections.ArrayList = Nothing&lt;BR /&gt;
&lt;BR /&gt;
                    cls_manager.GetProperties(objClass_Property, list_values, objId)&lt;BR /&gt;
                    Dim Class_Property As FeatureClassProperty = Nothing&lt;BR /&gt;
                    &lt;BR /&gt;
For Each Class_Property In objClass_Property&lt;BR /&gt;
                        Dim propName As System.String = Class_Property.Name&lt;BR /&gt;
                        Dim propValue As String = Class_Property.DefaultValue.ToString&lt;BR /&gt;
                        Utility.ShowMsg(vbNewLine &amp;amp; propName)&lt;BR /&gt;
                        Utility.ShowMsg(vbNewLine &amp;amp; propValue)&lt;BR /&gt;
                    Next&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I hope it will be useful for someone. . . &lt;BR /&gt;
Suggestions?</description>
    <pubDate>Fri, 25 Apr 2008 11:43:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-04-25T11:43:08Z</dc:date>
    <item>
      <title>Access to data objects</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-to-data-objects/m-p/2240944#M74801</link>
      <description>Hi everyone&lt;BR /&gt;
&lt;BR /&gt;
Many people asked about how to access to user data objects. I think the best way is this:&lt;BR /&gt;
&lt;BR /&gt;
Dim cls_manager As Autodesk.Gis.Map.Classification.ClassificationManager = Nothing&lt;BR /&gt;
                    cls_manager = Autodesk.Gis.Map.HostMapApplicationServices.Application.ActiveProject.ClassificationManager&lt;BR /&gt;
&lt;BR /&gt;
                    Dim objClass_Property As FeatureClassPropertyCollection = New FeatureClassPropertyCollection()&lt;BR /&gt;
                    Dim list_values As System.Collections.ArrayList = Nothing&lt;BR /&gt;
&lt;BR /&gt;
                    cls_manager.GetProperties(objClass_Property, list_values, objId)&lt;BR /&gt;
                    Dim Class_Property As FeatureClassProperty = Nothing&lt;BR /&gt;
                    &lt;BR /&gt;
For Each Class_Property In objClass_Property&lt;BR /&gt;
                        Dim propName As System.String = Class_Property.Name&lt;BR /&gt;
                        Dim propValue As String = Class_Property.DefaultValue.ToString&lt;BR /&gt;
                        Utility.ShowMsg(vbNewLine &amp;amp; propName)&lt;BR /&gt;
                        Utility.ShowMsg(vbNewLine &amp;amp; propValue)&lt;BR /&gt;
                    Next&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I hope it will be useful for someone. . . &lt;BR /&gt;
Suggestions?</description>
      <pubDate>Fri, 25 Apr 2008 11:43:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-to-data-objects/m-p/2240944#M74801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-25T11:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Access to data objects</title>
      <link>https://forums.autodesk.com/t5/net-forum/access-to-data-objects/m-p/2240945#M74802</link>
      <description>The "user data" you referred here is "Classified Feature" data, which is &lt;BR /&gt;
only available to AutoCAD MAP (2006 or newer). This is generic AutoCAD NG, &lt;BR /&gt;
readers who do not use Acad MAP have no idea what you are talking and what &lt;BR /&gt;
this post is for. The better place for this post would be NG &lt;BR /&gt;
"autodesk.map.developer"&lt;BR /&gt;
&lt;BR /&gt;
In generic AutoCAD .NET API, there is actually something called UserData: &lt;BR /&gt;
Document.UserData, which is a Hashtable type object, used for store user &lt;BR /&gt;
data per document. Of course it is also avaiable in Acad MAP drawing.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"El Haj" wrote in message news:5914993@discussion.autodesk.com...&lt;BR /&gt;
Hi everyone&lt;BR /&gt;
&lt;BR /&gt;
Many people asked about how to access to user data objects. I think the best &lt;BR /&gt;
way is this:&lt;BR /&gt;
&lt;BR /&gt;
Dim cls_manager As Autodesk.Gis.Map.Classification.ClassificationManager = &lt;BR /&gt;
Nothing&lt;BR /&gt;
                    cls_manager = &lt;BR /&gt;
Autodesk.Gis.Map.HostMapApplicationServices.Application.ActiveProject.ClassificationManager&lt;BR /&gt;
&lt;BR /&gt;
                    Dim objClass_Property As FeatureClassPropertyCollection &lt;BR /&gt;
= New FeatureClassPropertyCollection()&lt;BR /&gt;
                    Dim list_values As System.Collections.ArrayList = &lt;BR /&gt;
Nothing&lt;BR /&gt;
&lt;BR /&gt;
                    cls_manager.GetProperties(objClass_Property, &lt;BR /&gt;
list_values, objId)&lt;BR /&gt;
                    Dim Class_Property As FeatureClassProperty = Nothing&lt;BR /&gt;
&lt;BR /&gt;
For Each Class_Property In objClass_Property&lt;BR /&gt;
                        Dim propName As System.String = Class_Property.Name&lt;BR /&gt;
                        Dim propValue As String = &lt;BR /&gt;
Class_Property.DefaultValue.ToString&lt;BR /&gt;
                        Utility.ShowMsg(vbNewLine &amp;amp; propName)&lt;BR /&gt;
                        Utility.ShowMsg(vbNewLine &amp;amp; propValue)&lt;BR /&gt;
                    Next&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I hope it will be useful for someone. . .&lt;BR /&gt;
Suggestions?</description>
      <pubDate>Fri, 25 Apr 2008 14:11:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/access-to-data-objects/m-p/2240945#M74802</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-25T14:11:07Z</dc:date>
    </item>
  </channel>
</rss>

