<?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: insert block script with layer in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/insert-block-script-with-layer/m-p/13114662#M8414</link>
    <description>&lt;P&gt;to make a script,&amp;nbsp;&lt;BR /&gt;make a notepad txt file and type the exact input that you are typing into the command bar including enters (not spaces)&lt;BR /&gt;Start by turning of the object snaps so that your insertion point for the block will be respected.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;OSMODE
0
-LAYER
S
YourLayerName

-INSERT
YourBlockName
YourXValue,YourYValue
1
1
YourRotationValue
OSMODE
143&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;then type what you want. The above is untested, you can modify as needed. Usually it's the amount of enters that is causing an issue. Save the notepad.txt with a .scr extension and you can drag it into your drawing.&lt;BR /&gt;&lt;BR /&gt;To make a macro replace the enters with a semicolon ;&lt;BR /&gt;&lt;BR /&gt;If you want a lisp version with more user control or a VBA or .NET version there is another forum full of people that can help you with that.&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/autocad-customization/ct-p/AutoCADTopic1" target="_blank"&gt;https://forums.autodesk.com/t5/autocad-customization/ct-p/AutoCADTopic1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2024 07:52:29 GMT</pubDate>
    <dc:creator>Michiel.Valcke</dc:creator>
    <dc:date>2024-10-29T07:52:29Z</dc:date>
    <item>
      <title>insert block script with layer</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/insert-block-script-with-layer/m-p/13114474#M8412</link>
      <description>&lt;P&gt;I want to insert block by script in different layer . I have x,y,rotation,block name &amp;amp; layer name, what will be script for insert block ?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 06:03:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/insert-block-script-with-layer/m-p/13114474#M8412</guid>
      <dc:creator>sdhara.hit</dc:creator>
      <dc:date>2024-10-29T06:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: insert block script with layer</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/insert-block-script-with-layer/m-p/13114559#M8413</link>
      <description>&lt;P&gt;You want a script, VBA or .Net?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 06:50:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/insert-block-script-with-layer/m-p/13114559#M8413</guid>
      <dc:creator>Tomislav.Golubovic</dc:creator>
      <dc:date>2024-10-29T06:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: insert block script with layer</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/insert-block-script-with-layer/m-p/13114662#M8414</link>
      <description>&lt;P&gt;to make a script,&amp;nbsp;&lt;BR /&gt;make a notepad txt file and type the exact input that you are typing into the command bar including enters (not spaces)&lt;BR /&gt;Start by turning of the object snaps so that your insertion point for the block will be respected.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;OSMODE
0
-LAYER
S
YourLayerName

-INSERT
YourBlockName
YourXValue,YourYValue
1
1
YourRotationValue
OSMODE
143&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;then type what you want. The above is untested, you can modify as needed. Usually it's the amount of enters that is causing an issue. Save the notepad.txt with a .scr extension and you can drag it into your drawing.&lt;BR /&gt;&lt;BR /&gt;To make a macro replace the enters with a semicolon ;&lt;BR /&gt;&lt;BR /&gt;If you want a lisp version with more user control or a VBA or .NET version there is another forum full of people that can help you with that.&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/autocad-customization/ct-p/AutoCADTopic1" target="_blank"&gt;https://forums.autodesk.com/t5/autocad-customization/ct-p/AutoCADTopic1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 07:52:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/insert-block-script-with-layer/m-p/13114662#M8414</guid>
      <dc:creator>Michiel.Valcke</dc:creator>
      <dc:date>2024-10-29T07:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: insert block script with layer</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/insert-block-script-with-layer/m-p/13114725#M8415</link>
      <description>&lt;P&gt;You can also use the CHPROP command with the L (standing for Last object as a selection) followed by a double Enter before choosing the Layer option.&lt;/P&gt;
&lt;P&gt;In a word you can also build a script with a different layer specification at every insertion instead of changing the currentlayer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CHPROP Last&amp;nbsp; Layer "my layer"&amp;nbsp; (double enter to get out the CHPROP command)&lt;/P&gt;
&lt;P&gt;something like that&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 08:23:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/insert-block-script-with-layer/m-p/13114725#M8415</guid>
      <dc:creator>tramber</dc:creator>
      <dc:date>2024-10-29T08:23:50Z</dc:date>
    </item>
  </channel>
</rss>

