<?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: Retrieve Custom data from DBDictionary in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/retrieve-custom-data-from-dbdictionary/m-p/10066120#M17509</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/55431"&gt;@dhaverstick&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks you for replay,&lt;BR /&gt;&lt;BR /&gt;i tried you code and got this error,&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-02-08 161803.png" style="width: 850px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/878303iADDF9770D18EE767/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-02-08 161803.png" alt="Screenshot 2021-02-08 161803.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Actually its a Proxy Object, which is stored in DBDictionary,&lt;BR /&gt;Can you please guide me on&amp;nbsp;ow to retrive data from Proxyobject?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Feb 2021 10:50:47 GMT</pubDate>
    <dc:creator>waseefur.rahman</dc:creator>
    <dc:date>2021-02-08T10:50:47Z</dc:date>
    <item>
      <title>Retrieve Custom data from DBDictionary</title>
      <link>https://forums.autodesk.com/t5/net-forum/retrieve-custom-data-from-dbdictionary/m-p/10039683#M17507</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I am trying to retrieve custom data which stored in&amp;nbsp;DBDictionary&lt;BR /&gt;&lt;BR /&gt;below method used in objectarx, it works fine&lt;/P&gt;&lt;LI-CODE lang="general"&gt;		AcDbObject::dwgInFields(pFilter);

		//read data from acad model
		Int32 size;
		pFilter-&amp;gt;readInt32(&amp;amp;size);
		TVector&amp;lt;char&amp;gt; mem(size);
		pFilter-&amp;gt;readBytes(mem.begin(), size);&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;but in .net i was not able to retrive the data,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;                    Dim pNamedobj As DBDictionary = tr.GetObject(db.NamedObjectsDictionaryId, OpenMode.ForRead, False)
                    'Dim DBDict As DBDictionary
                    Dim DBDict As DBObject
                    Try
                        DBDict = tr.GetObject(pNamedobj.GetAt(s_cLVScene), OpenMode.ForRead)
                    Catch ex As Autodesk.AutoCAD.Runtime.Exception
                        MsgBox(ex.Message)
                        Exit Sub
                    End Try

                    Dim pFilter As DwgFiler
                    DBDict.DwgIn(pFilter)

                    Dim XMLDATA = pFilter.ReadByte()&lt;/LI-CODE&gt;&lt;P&gt;could anyone please advice, what needs to be modified to achieve the output.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 19:35:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/retrieve-custom-data-from-dbdictionary/m-p/10039683#M17507</guid>
      <dc:creator>waseefur.rahman</dc:creator>
      <dc:date>2021-01-28T19:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Custom data from DBDictionary</title>
      <link>https://forums.autodesk.com/t5/net-forum/retrieve-custom-data-from-dbdictionary/m-p/10060664#M17508</link>
      <description>&lt;P&gt;What type of data was stored in the custom dictionary and how was it stored?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use DBDictionaries to store data in Xrecords. Here is some code that shows how I get that data in and out of a DBDictionary.&lt;/P&gt;&lt;P&gt;Writing data:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    Private Sub CreateDictionaryXRecord(ByRef TransactionObject As Transaction, ByRef DictionaryObject As DBDictionary, ByVal XRecordName As String, ByVal DxfCodeType As String, ByVal XRecordValue As Object)
        Dim BufferObject As New ResultBuffer
        Dim XRecordObject As New Xrecord

        If DxfCodeType.ToUpper = "INT16" Then
            BufferObject.Add(New TypedValue(DxfCode.Int16, CType(XRecordValue, Int16)))
        ElseIf DxfCodeType.ToUpper = "REAL" Then
            BufferObject.Add(New TypedValue(DxfCode.Real, CType(XRecordValue, Double)))
        ElseIf DxfCodeType.ToUpper = "TEXT" Then
            BufferObject.Add(New TypedValue(DxfCode.Text, CType(XRecordValue, String)))
        End If

        XRecordObject.Data = BufferObject
        DictionaryObject.SetAt(XRecordName, XRecordObject)
        TransactionObject.AddNewlyCreatedDBObject(XRecordObject, True)
    End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reading data:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;                DictionaryObject = TransactionObject.GetObject(DictionaryObjectID, OpenMode.ForRead)
                XRecordObject = TransactionObject.GetObject(DictionaryObject.GetAt(NameOfXRecord), OpenMode.ForRead)
                XDataValueOut = XRecordObject.Data.AsArray

                If TypeOf XDataValueOut(0).Value Is String Then
                    DataValue = XDataValueOut(0).Value.ToString
                ElseIf TypeOf XDataValueOut(0).Value Is Integer Then
                    DataValue = CInt(XDataValueOut(0).Value)
                Else
                    DataValue = CDbl(XDataValueOut(0).Value)
                End If&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 14:50:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/retrieve-custom-data-from-dbdictionary/m-p/10060664#M17508</guid>
      <dc:creator>dhaverstick</dc:creator>
      <dc:date>2021-02-05T14:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Custom data from DBDictionary</title>
      <link>https://forums.autodesk.com/t5/net-forum/retrieve-custom-data-from-dbdictionary/m-p/10066120#M17509</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/55431"&gt;@dhaverstick&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks you for replay,&lt;BR /&gt;&lt;BR /&gt;i tried you code and got this error,&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-02-08 161803.png" style="width: 850px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/878303iADDF9770D18EE767/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-02-08 161803.png" alt="Screenshot 2021-02-08 161803.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Actually its a Proxy Object, which is stored in DBDictionary,&lt;BR /&gt;Can you please guide me on&amp;nbsp;ow to retrive data from Proxyobject?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 10:50:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/retrieve-custom-data-from-dbdictionary/m-p/10066120#M17509</guid>
      <dc:creator>waseefur.rahman</dc:creator>
      <dc:date>2021-02-08T10:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Custom data from DBDictionary</title>
      <link>https://forums.autodesk.com/t5/net-forum/retrieve-custom-data-from-dbdictionary/m-p/10066349#M17510</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;you cannot get other data from a ProxyObject the the &lt;A href="https://help.autodesk.com/view/OARX/2019/ENU/?guid=OREFNET-__MEMBERTYPE_Properties_Autodesk_AutoCAD_DatabaseServices_ProxyObject" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;ProxyObject properties&lt;/STRONG&gt;&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;To get more, you must have the application wich creates the underlying custom object.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 12:49:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/retrieve-custom-data-from-dbdictionary/m-p/10066349#M17510</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2021-02-08T12:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Custom data from DBDictionary</title>
      <link>https://forums.autodesk.com/t5/net-forum/retrieve-custom-data-from-dbdictionary/m-p/10066375#M17511</link>
      <description>&lt;P&gt;The code I shared was not intended to be used verbatim. It was an example of how I get data in and out of a DBDictionary using Xrecords. I have no idea what data you are trying to store and retrieve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 13:03:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/retrieve-custom-data-from-dbdictionary/m-p/10066375#M17511</guid>
      <dc:creator>dhaverstick</dc:creator>
      <dc:date>2021-02-08T13:03:29Z</dc:date>
    </item>
  </channel>
</rss>

