<?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 Insert block in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/insert-block/m-p/11298595#M12360</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using this code to insert blocks; however, it does not work all the time. Sometimes it skip the next and the blocks are inserted on top of each others&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;string newFileName = "";&lt;BR /&gt;string destinationFile = $"{filePath}Temporal\\";&lt;BR /&gt;acadApp.Preferences.Files.SupportPath += $";{destinationFile}";&lt;BR /&gt;#region Crear Copias del IOTable&lt;BR /&gt;position = positionPoint.Value.Y;&lt;BR /&gt;foreach (var item in response.CubeFlexIntegration.DATA)&lt;BR /&gt;{&lt;BR /&gt;newFileName = $"IOTable{item.Detail_Id}.dwg";&lt;BR /&gt;position = position - 0.3;&lt;BR /&gt;CreateCopyFileIOTable(filePath, destinationFile, newFileName);&lt;/P&gt;&lt;P&gt;_editor.Command("_insert", $"{newFileName}", $"{positionPoint.Value.X},{position},{positionPoint.Value.Z}",&lt;BR /&gt;$"1", $"1", $"0");&lt;/P&gt;&lt;P&gt;EditBlockAtt($"IOTable{item.Detail_Id}", "IO", item.Oj);&lt;BR /&gt;EditBlockAtt($"IOTable{item.Detail_Id}", "BAC_ID", item.BAC_ID);&lt;BR /&gt;EditBlockAtt($"IOTable{item.Detail_Id}", "REF", item.Reff);&lt;BR /&gt;EditBlockAtt($"IOTable{item.Detail_Id}", "DEVICE", item.Device);&lt;BR /&gt;EditBlockAtt($"IOTable{item.Detail_Id}", "IN_USE_BY", item.In_Use_By);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jul 2022 00:24:50 GMT</pubDate>
    <dc:creator>HectorJZL6Z</dc:creator>
    <dc:date>2022-07-15T00:24:50Z</dc:date>
    <item>
      <title>Insert block</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-block/m-p/11298595#M12360</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using this code to insert blocks; however, it does not work all the time. Sometimes it skip the next and the blocks are inserted on top of each others&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;string newFileName = "";&lt;BR /&gt;string destinationFile = $"{filePath}Temporal\\";&lt;BR /&gt;acadApp.Preferences.Files.SupportPath += $";{destinationFile}";&lt;BR /&gt;#region Crear Copias del IOTable&lt;BR /&gt;position = positionPoint.Value.Y;&lt;BR /&gt;foreach (var item in response.CubeFlexIntegration.DATA)&lt;BR /&gt;{&lt;BR /&gt;newFileName = $"IOTable{item.Detail_Id}.dwg";&lt;BR /&gt;position = position - 0.3;&lt;BR /&gt;CreateCopyFileIOTable(filePath, destinationFile, newFileName);&lt;/P&gt;&lt;P&gt;_editor.Command("_insert", $"{newFileName}", $"{positionPoint.Value.X},{position},{positionPoint.Value.Z}",&lt;BR /&gt;$"1", $"1", $"0");&lt;/P&gt;&lt;P&gt;EditBlockAtt($"IOTable{item.Detail_Id}", "IO", item.Oj);&lt;BR /&gt;EditBlockAtt($"IOTable{item.Detail_Id}", "BAC_ID", item.BAC_ID);&lt;BR /&gt;EditBlockAtt($"IOTable{item.Detail_Id}", "REF", item.Reff);&lt;BR /&gt;EditBlockAtt($"IOTable{item.Detail_Id}", "DEVICE", item.Device);&lt;BR /&gt;EditBlockAtt($"IOTable{item.Detail_Id}", "IN_USE_BY", item.In_Use_By);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 00:24:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-block/m-p/11298595#M12360</guid>
      <dc:creator>HectorJZL6Z</dc:creator>
      <dc:date>2022-07-15T00:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Insert block</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-block/m-p/11298739#M12361</link>
      <description>&lt;P&gt;for AutoCAD customization post in:&lt;/P&gt;&lt;P&gt;LISP:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130" target="_blank"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130&lt;/A&gt;&lt;/P&gt;&lt;P&gt;VBA: &lt;A href="https://forums.autodesk.com/t5/vba/bd-p/33" target="_blank"&gt;https://forums.autodesk.com/t5/vba/bd-p/33&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.NET:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/net/bd-p/152" target="_blank"&gt;https://forums.autodesk.com/t5/net/bd-p/152&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 02:40:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-block/m-p/11298739#M12361</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2022-07-15T02:40:57Z</dc:date>
    </item>
  </channel>
</rss>

