<?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 Re: Read Property Data from an entity in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/7833737#M13883</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Damir Vidakovic,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What Application this plug-in run inside? Civil 3D or&amp;nbsp;Architecture?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Mar 2018 09:07:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-07T09:07:50Z</dc:date>
    <item>
      <title>Read Property Data from an entity</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/6393069#M13877</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm trying to make a code that uses property set data written in the drawing objects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have a dwg with one property set definition, and I defined it like this:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/249070i66E643BCCAB0D027/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="2016-06-20.png" title="2016-06-20.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I made it so it applies to pipes. Then I attached it to a pipe in the drawing, and in the properties panel, I can see and edit these values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/249040i917FBBBF5C302F77/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="2016-06-20 (4).png" title="2016-06-20 (4).png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I have a code that finds all property set definitions in the dwg:&lt;/P&gt;&lt;PRE&gt;Document acDoc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
Database acCurDb = acDoc.Database;&lt;BR /&gt;&lt;BR /&gt;
DictionaryPropertySetDefinitions dpsd = new DictionaryPropertySetDefinitions(acCurDb);

foreach (ObjectId id in dpsd.Records)
{
   try
   {
      PropertySetDefinition pds = transaction.GetObject(id, OpenMode.ForRead) as PropertySetDefinition;

      if (pds != null)
      {
          foreach (PropertyDefinition pdd in pds.Definitions)
          {
              //this is property definition that can be used
          }
       }
   }
   catch (Exception ex)
   {                           &lt;BR /&gt;   }&lt;BR /&gt; }
                    &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, how can I read values from specific entity, if I have Pipe object for instance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use using&amp;nbsp;PropertyDataServices.GetPropertyValueExt, but I always get exception, but&amp;nbsp;I did not find any documentation&amp;nbsp;about parameters that go in, so it was shot in the dark.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 10:17:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/6393069#M13877</guid>
      <dc:creator>damir_vidakovic</dc:creator>
      <dc:date>2016-06-20T10:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Read Property Data from an entity</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/6398817#M13878</link>
      <description>Have you tried the PropertySetDefinition.GetValue() method?</description>
      <pubDate>Wed, 22 Jun 2016 19:23:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/6398817#M13878</guid>
      <dc:creator>augusto.goncalves</dc:creator>
      <dc:date>2016-06-22T19:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Read Property Data from an entity</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/6399658#M13879</link>
      <description>&lt;P&gt;Hi Augusto&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use it like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;//oPipe is already opened for read (Pipe object)

Document acDoc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
Database acCurDb = acDoc.Database;

ObjectIdCollection allPSSets = PropertyDataServices.GetPropertySets(oPipe);

DictionaryPropertySetDefinitions dpsd = new DictionaryPropertySetDefinitions(acCurDb);

int propertyId=0;
ObjectIdCollection brp = new ObjectIdCollection();

try
{
	ObjectId idDef = dpsd.GetAt("TestPS");

	PropertySetDefinition psd = transaction.GetObject(idDef, OpenMode.ForRead) as PropertySetDefinition;

	foreach (PropertyDefinition pd in psd.Definitions)
	{
           res = pd.Value(oPipe, brp);//always null
	}
	
	res = psd.GetValue(propertyId, oPipe, brp);//always null

}
catch (Exception exx)
{
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried 2 things:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I tried to read with&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;res = pds.GetValue(propertyId, oPipe, brp);&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;I put 0 as property Id, I assumed it is index of the property in the definition, but I always get null as a result. The same with 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I tried to go over all PropertyDefintions in the PropertySetDefinition:&lt;/P&gt;&lt;PRE&gt;foreach (PropertyDefinition pd in psd.Definitions)
{
    res = pd.Value(oPipe, brp);//always null
}&lt;/PRE&gt;&lt;P&gt;There is BlockReferencePath argument that is required, and I'm passing in empty ObjectIdCollection in all cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the opened pipe should definitely have these properties set.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 06:47:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/6399658#M13879</guid>
      <dc:creator>damir_vidakovic</dc:creator>
      <dc:date>2016-06-23T06:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Read Property Data from an entity</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/6407503#M13880</link>
      <description>&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 06:01:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/6407503#M13880</guid>
      <dc:creator>damir_vidakovic</dc:creator>
      <dc:date>2016-06-28T06:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Read Property Data from an entity</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/6408639#M13881</link>
      <description>In my quick tests, I'm seeing the same null results. I'm also getting 0 for the number of propertysets here:&lt;BR /&gt;ObjectIdCollection allPSSets = PropertyDataServices.GetPropertySets(oPipe);&lt;BR /&gt;Which explains why the others are returning null. The Pipe object most definitely has a PropertySet and Definition attached/defined.</description>
      <pubDate>Tue, 28 Jun 2016 16:27:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/6408639#M13881</guid>
      <dc:creator>Jeff_M</dc:creator>
      <dc:date>2016-06-28T16:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Read Property Data from an entity</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/7833732#M13882</link>
      <description>&lt;P&gt;&amp;nbsp;Hello&amp;nbsp;&lt;SPAN&gt;Damir Vidakovic,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you paste a bit more source code for this subject?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for using "DictionaryPropertySetDefinitions" and "PropertySetDefinition" class ,what dll I shoud add to Visual studio?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;waiting for reply!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 09:05:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/7833732#M13882</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-07T09:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Read Property Data from an entity</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/7833737#M13883</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Damir Vidakovic,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What Application this plug-in run inside? Civil 3D or&amp;nbsp;Architecture?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 09:07:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/7833737#M13883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-07T09:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Read Property Data from an entity</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/7834510#M13884</link>
      <description>&lt;P&gt;This case was resolved by Autodesk technician through the different channel a long time ago, but I forgot to post the solution here also afterwards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution is this:&lt;/P&gt;&lt;PRE&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
using (Autodesk.AutoCAD.ApplicationServices.DocumentLock loc = acDoc.LockDocument())
            {
                using (Transaction acTrans = acCurDb.TransactionManager.StartTransaction())
                {
                    // Request for objects to be selected in the drawing area
 
                    PromptSelectionResult acSSPrompt = acDoc.Editor.GetSelection();
 
                    // If the prompt status is OK, objects were selected
                    if (acSSPrompt.Status == PromptStatus.OK)
                    {
                        SelectionSet acSSet = acSSPrompt.Value;
 
                        // Step through the objects in the selection set
                        foreach (SelectedObject acSSObj in acSSet)
                        {
                            Autodesk.AutoCAD.DatabaseServices.DBObject dbObj = acTrans.GetObject(acSSObj.ObjectId, OpenMode.ForRead);
                            ObjectIdCollection setIds = PropertyDataServices.GetPropertySets(dbObj);
 
                            foreach (ObjectId psId in setIds)
                            {
                                PropertySet pset = acTrans.GetObject(psId, OpenMode.ForRead, false, false) as PropertySet;
                                PropertySetDataCollection psetDataColl = pset.PropertySetData;
                                PropertySetData pTempData;
                                for (int c = 0; c &amp;lt; psetDataColl.Count; c++)
                                {
                                    pPropData = psetDataColl[c];
                                    object data = pPropData.GetData();
                                }
                            }
 
                            return;
                        }
                    }
                }
            }
&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 13:49:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/7834510#M13884</guid>
      <dc:creator>damir_vidakovic</dc:creator>
      <dc:date>2018-03-07T13:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Read Property Data from an entity</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/7834526#M13885</link>
      <description>&lt;P&gt;To use these classes you have to use&amp;nbsp;AecPropDataMgd.dll&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 13:52:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/7834526#M13885</guid>
      <dc:creator>damir_vidakovic</dc:creator>
      <dc:date>2018-03-07T13:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Read Property Data from an entity</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/7837102#M13886</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;Damir Vidakovic,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks you very much for sharing your solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have try another solution&amp;nbsp; which is a little different with yours follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CivilDocument doc = Autodesk.Civil.ApplicationServices.CivilApplication.ActiveDocument;&lt;BR /&gt;Document acDoc = acDocMgr.MdiActiveDocument;&lt;BR /&gt;Database acCurDb = acDoc.Database;&lt;BR /&gt;using (System.IO.StreamWriter sw = new StreamWriter(@"d:\output.txt", true))&lt;BR /&gt;using (Transaction ts = Application.DocumentManager.MdiActiveDocument.Database.TransactionManager.StartTransaction())&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ObjectIdCollection pipeNetworkIds = doc.GetPipeNetworkIds();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; foreach (ObjectId pipeNetworkId in pipeNetworkIds)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Network oNetwork = ts.GetObject(pipeNetworkId, OpenMode.ForWrite) as Network;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ObjectIdCollection pipeIds = oNetwork.GetPipeIds();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach (ObjectId pipeId in pipeIds)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Pipe oPipe = ts.GetObject(pipeId, OpenMode.ForWrite) as Pipe;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ObjectIdCollection setIds = PropertyDataServices.GetPropertySets(oPipe);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach (ObjectId psId in setIds)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PropertySet pset = ts.GetObject(psId, OpenMode.ForRead, false, false) as PropertySet;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PropertySetDefinition psd = ts.GetObject(pset.PropertySetDefinition, OpenMode.ForRead) as PropertySetDefinition;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach (PropertyDefinition pd in psd.Definitions)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int propertyId=pset.PropertyNameToId(pd.Name);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; object value = pset.GetAt(propertyId);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sw.WriteLine("Handler: " + oPipe.Handle.ToString() + "; " + pd.Name + ": " + value.ToString().Trim());&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//PropertySetDataCollection psetDataColl = pset.PropertySetData;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//PropertySetData pPropData;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //for (int c = 0; c &amp;lt; psetDataColl.Count; c++)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // pPropData = psetDataColl[c];&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // object data = pPropData.GetData();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //}&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sw.WriteLine(System.Environment.NewLine);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and it works well ,thank you again.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 07:02:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/7837102#M13886</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-08T07:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Read Property Data from an entity</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/9900627#M13887</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried all above code but not able to get PropertyDataSet from Pipe as image below:-&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rebeccas85JUR_0-1606548752558.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/849602i2846133FEE798F5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rebeccas85JUR_0-1606548752558.png" alt="rebeccas85JUR_0-1606548752558.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While i select in Civil 3D i can see property dataset in property design panel but with code it is always 0.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2020 07:37:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/9900627#M13887</guid>
      <dc:creator>rebeccas85JUR</dc:creator>
      <dc:date>2020-11-28T07:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Read Property Data from an entity</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/9912284#M13888</link>
      <description>&lt;P&gt;This works well for me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ObjectId objectPropSet = PropertyDataServices.GetPropertySet(entity, oidPropSetDef);
PropertySet ps = objectPropSet.GetObject(AcDb.OpenMode.ForWrite) as PropertySet;
PropertySetDefinition def = t.GetObject(ps.PropertySetDefinition, AcDb.OpenMode.ForRead) as PropertySetDefinition;
foreach (PropertyDefinition propDef in def.Definitions)
{
     string data = ps.GetAt(ps.PropertyNameToId(propDef.Name));
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 12:06:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/9912284#M13888</guid>
      <dc:creator>gleeuwdrent</dc:creator>
      <dc:date>2020-12-03T12:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Read Property Data from an entity</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/9913105#M13889</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3008387" target="_self"&gt;gleeuwdrent&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;How you are getting oidPropSetDef.&lt;BR /&gt;&lt;BR /&gt;while i am doing property set always zero.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Same question i posted with file &amp;amp; code please check once if you have time&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;A href="https://forums.autodesk.com/t5/civil-3d-forum/extracting-property-set-properties/m-p/9902649#M439262" target="_blank"&gt;https://forums.autodesk.com/t5/civil-3d-forum/extracting-property-set-properties/m-p/9902649#M439262&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Manish Singh&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 16:53:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/9913105#M13889</guid>
      <dc:creator>rebeccas85JUR</dc:creator>
      <dc:date>2020-12-03T16:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Read Property Data from an entity</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/9914555#M13890</link>
      <description>&lt;P&gt;I forgot two lines of code:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;DictionaryPropertySetDefinitions dictPropSetDefs = new DictionaryPropertySetDefinitions(db); // lists all property set definitions in drawing
ObjectId oidPropSetDef = dictPropSetDefs.GetAt("YourPropertySetName");&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 04 Dec 2020 06:44:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/9914555#M13890</guid>
      <dc:creator>gleeuwdrent</dc:creator>
      <dc:date>2020-12-04T06:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Read Property Data from an entity</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/9917739#M13891</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9932063"&gt;@rebeccas85JUR&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I read your post in the other forum and downloaded your drawing. A couple of things confuses me that need more explanation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. The picture you attached to this thread and attached to the post in other forum CLEARLY showed that you are using plain AutoCAD, or running C3D as AutoCAD (with C3D object enabler, I assume), not C3D. in the 2 pictures, the Properties window only has 3 tabs (Design, Display, Object Class), as AutoCAD; while with C3D, there is 4th tab Extended Data where the PropertySet Data shows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. The drawing I downloaded from your other post DOES NOT HAVE ANY propertyset defined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, after reading the other thread again and again, I think you may want to explain what you want to achieve more accurately. If you just want to extract PIPE's data, you do not need to deal with PropertyDataSet. PropertyData is meant to attach extra set of data to entities, which are usually custom data that are not from the entity itself. So, more clarification is needed.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 16:01:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/9917739#M13891</guid>
      <dc:creator>Norman_Yuan</dc:creator>
      <dc:date>2020-12-05T16:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Read Property Data from an entity</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/10271411#M13892</link>
      <description>&lt;P&gt;Can i get vlisp code for this also.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 10:08:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/10271411#M13892</guid>
      <dc:creator>mehsan</dc:creator>
      <dc:date>2021-04-27T10:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Read Property Data from an entity</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/13160758#M13893</link>
      <description>Hi, I have no clue how to use VB to get DLL. Can anyone help me?</description>
      <pubDate>Tue, 19 Nov 2024 17:21:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/read-property-data-from-an-entity/m-p/13160758#M13893</guid>
      <dc:creator>TourajM</dc:creator>
      <dc:date>2024-11-19T17:21:56Z</dc:date>
    </item>
  </channel>
</rss>

