<?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: AECOMPONENT via C# with no user input in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/aecomponent-via-c-with-no-user-input/m-p/10033215#M17528</link>
    <description>&lt;P&gt;I was able to do this by the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Create a UI or database with insertion points and desired attributes.&lt;/P&gt;&lt;P&gt;2. Open a transaction and use this command:&amp;nbsp;ReadDwgFile(FileName, FileOpenMode.OpenForReadAndAllShare, true, ""), and edit the values necessary for the block.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Find the wire it was inserted on (if any) and delete it.&lt;/P&gt;&lt;P&gt;4. Delete WDDOT on the start point of the wire if it was present.&lt;/P&gt;&lt;P&gt;5. Insert a new wire using&amp;nbsp;c:ace_insert_wire&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2021 20:34:44 GMT</pubDate>
    <dc:creator>mcoH3VZV</dc:creator>
    <dc:date>2021-01-26T20:34:44Z</dc:date>
    <item>
      <title>AECOMPONENT via C# with no user input</title>
      <link>https://forums.autodesk.com/t5/net-forum/aecomponent-via-c-with-no-user-input/m-p/10032328#M17527</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using AutoCAD Electrical 2018 and am trying to use the AECOMPONENT Command and insert a component without opening the Icon Menu dialog box using C#. I know of the sendstringtoexecute command, but it seems as though only the "-INSERT" command works with this. The problem with INSERT is that it does not break the wire upon insert.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to use AECOMPONENT without any user interaction and have it break the wire when the component is inserted? Or is there a way to use the INSERT command and immediately break the wire using another command afterwards?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 15:24:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/aecomponent-via-c-with-no-user-input/m-p/10032328#M17527</guid>
      <dc:creator>mcoH3VZV</dc:creator>
      <dc:date>2021-01-26T15:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: AECOMPONENT via C# with no user input</title>
      <link>https://forums.autodesk.com/t5/net-forum/aecomponent-via-c-with-no-user-input/m-p/10033215#M17528</link>
      <description>&lt;P&gt;I was able to do this by the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Create a UI or database with insertion points and desired attributes.&lt;/P&gt;&lt;P&gt;2. Open a transaction and use this command:&amp;nbsp;ReadDwgFile(FileName, FileOpenMode.OpenForReadAndAllShare, true, ""), and edit the values necessary for the block.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Find the wire it was inserted on (if any) and delete it.&lt;/P&gt;&lt;P&gt;4. Delete WDDOT on the start point of the wire if it was present.&lt;/P&gt;&lt;P&gt;5. Insert a new wire using&amp;nbsp;c:ace_insert_wire&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 20:34:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/aecomponent-via-c-with-no-user-input/m-p/10033215#M17528</guid>
      <dc:creator>mcoH3VZV</dc:creator>
      <dc:date>2021-01-26T20:34:44Z</dc:date>
    </item>
  </channel>
</rss>

