<?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: How to &amp;quot;label&amp;quot; my source file by xrecord and find the xrecord in t in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-quot-label-quot-my-source-file-by-xrecord-and-find-the/m-p/7043048#M31788</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for that option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have &amp;gt; 50.000 files which can be totaly different (different entities/objects)&lt;/P&gt;&lt;P&gt;This files are used as blocks inside other (Autocad dwg) documents.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want/have to "label" that files to check version and some other custom properites&lt;/P&gt;&lt;P&gt;after that files are inserted as block to a target document/database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) A additional entitiy including the xrecord is possible, but not secure - user can remove/modify that entity.&lt;/P&gt;&lt;P&gt;2) I also thought about a custom object - but I don't want to use object enablers, etc. (replacement for xrecord)&lt;/P&gt;&lt;P&gt;3) Override the insert command is also a non wanted solution&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AllInOne:&lt;/P&gt;&lt;P&gt;If there is another option to identify a block (inserted from a file) I would be happy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tank you very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;nil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2017 09:29:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-26T09:29:20Z</dc:date>
    <item>
      <title>How to "label" my source file by xrecord and find the xrecord in the new file</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-quot-label-quot-my-source-file-by-xrecord-and-find-the/m-p/7042739#M31786</link>
      <description>&lt;P&gt;.NET C# AC2017&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) I attached a xrecord to NamedObjectsDictionary of file a.dwg. Works fine&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;DBDictionary nod = (DBDictionary)trans.GetObject(database.NamedObjectsDictionaryId, OpenMode.ForWrite);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Xrecord myXrecord = new Xrecord();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;....&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;nod.SetAt("MyData", myXrecord);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;trans.AddNewlyCreatedDBObject(myXrecord, true);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;trans.commit();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Insert file a.dwg to other file b.dwg and want to use my xrecord data. Using insert command, drag and drop, etc. produce the same result.&lt;/P&gt;&lt;P&gt;I use mgdDbg but cant find the Xrecord.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think xrecord of NamedObjectsDictionary should become xrecord of inserted block - but that seems to be wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I "label" my source file by xrecord and find the xrecord in the new file after I inserted the source file without using a block at the source file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 07:23:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-quot-label-quot-my-source-file-by-xrecord-and-find-the/m-p/7042739#M31786</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-26T07:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to "label" my source file by xrecord and find the xrecord in t</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-quot-label-quot-my-source-file-by-xrecord-and-find-the/m-p/7042951#M31787</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically, when you insert a dwg file in another one, AutoCAD creates a new block definition (BlockTableRecord) and deep clone the entities contained in the source file model space into the newly created block definition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One way should be attaching the xrecord to the extension dictionary of an entity contained in the source file model space, so that you can get it in the cloned entity of the block definition.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 08:54:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-quot-label-quot-my-source-file-by-xrecord-and-find-the/m-p/7042951#M31787</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2017-04-26T08:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to "label" my source file by xrecord and find the xrecord in t</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-quot-label-quot-my-source-file-by-xrecord-and-find-the/m-p/7043048#M31788</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for that option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have &amp;gt; 50.000 files which can be totaly different (different entities/objects)&lt;/P&gt;&lt;P&gt;This files are used as blocks inside other (Autocad dwg) documents.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want/have to "label" that files to check version and some other custom properites&lt;/P&gt;&lt;P&gt;after that files are inserted as block to a target document/database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) A additional entitiy including the xrecord is possible, but not secure - user can remove/modify that entity.&lt;/P&gt;&lt;P&gt;2) I also thought about a custom object - but I don't want to use object enablers, etc. (replacement for xrecord)&lt;/P&gt;&lt;P&gt;3) Override the insert command is also a non wanted solution&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AllInOne:&lt;/P&gt;&lt;P&gt;If there is another option to identify a block (inserted from a file) I would be happy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tank you very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;nil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 09:29:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-quot-label-quot-my-source-file-by-xrecord-and-find-the/m-p/7043048#M31788</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-26T09:29:20Z</dc:date>
    </item>
  </channel>
</rss>

