<?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 ObjectARX .net attrubutes copy in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/objectarx-net-attrubutes-copy/m-p/12300238#M7020</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I am working on generating drawing in Autocad electrical using&amp;nbsp; ObjectARX using C#.net . I am replicating symbols , Terminal and&amp;nbsp; wires. As per attached diagram I am replicating line number 3 to line number 7 , but facing issues setting up the attributes using attsync command from .net. Can some one please guide me auto generating Terminal Number , Device Number and Wire Numbers using C#.net and ObjectARX. Any guidance is appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Oct 2023 22:19:40 GMT</pubDate>
    <dc:creator>prachipatil1801</dc:creator>
    <dc:date>2023-10-11T22:19:40Z</dc:date>
    <item>
      <title>ObjectARX .net attrubutes copy</title>
      <link>https://forums.autodesk.com/t5/net-forum/objectarx-net-attrubutes-copy/m-p/12300238#M7020</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am working on generating drawing in Autocad electrical using&amp;nbsp; ObjectARX using C#.net . I am replicating symbols , Terminal and&amp;nbsp; wires. As per attached diagram I am replicating line number 3 to line number 7 , but facing issues setting up the attributes using attsync command from .net. Can some one please guide me auto generating Terminal Number , Device Number and Wire Numbers using C#.net and ObjectARX. Any guidance is appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 22:19:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/objectarx-net-attrubutes-copy/m-p/12300238#M7020</guid>
      <dc:creator>prachipatil1801</dc:creator>
      <dc:date>2023-10-11T22:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: ObjectARX .net attrubutes copy</title>
      <link>https://forums.autodesk.com/t5/net-forum/objectarx-net-attrubutes-copy/m-p/12300337#M7021</link>
      <description>&lt;P&gt;Firstly, posting the same question with different title as the attempt to get responses isn't a good approach. You should consider how to make your question make sense for other to respond, for example, showing your relevant code to demonstrate what "replicating" means.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the picture you attached and since you mention "attributes", it seems to me that you are to insert an array of block references, and then you want to set the values of the attributes of the block references. It also seems to me that you might not understand block definition/block reference and attribute definition/attribute references well, because you mention "attribute copy" and mention using "attsync" command (it is probably useless here).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code could be rather simple:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For each circuit, if it is a block,&lt;/P&gt;
&lt;P&gt;1. Create a BlockReference;&lt;/P&gt;
&lt;P&gt;2. Create AttributeRefences of the BlockReference, based on the block definition (BlockTableRecord), with desired values.&lt;/P&gt;
&lt;P&gt;The repeat it to create next circuit (above, or below) until it is done.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Creating/inserting block reference with attributes is one of the most common .NET API coding topics and you can find code samples here or online easily. If you do run into issues with actual block inserting code, showing it here would be much easier for others to read and comment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 23:41:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/objectarx-net-attrubutes-copy/m-p/12300337#M7021</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2023-10-11T23:41:17Z</dc:date>
    </item>
  </channel>
</rss>

