<?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 Betreff: scr for copying a block to multiple points at once in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/scr-for-copying-a-block-to-multiple-points-at-once/m-p/11294855#M62492</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12242745"&gt;@kamalj&lt;/a&gt;&amp;nbsp; schrieb:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The Thread is about creating a *.SCR file for copying a block to multiple points at once..&lt;/P&gt;
&lt;P&gt;So Please: Start your own thread if it doesn't match 100% (and in this case, it matchs 0%)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But okay, Point-&amp;gt;Insert is given and I took a look&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The pt2block isn't perfect and one of the tiny mistakes is: It creates an insert without attributes (attributes are attached on inserts),&lt;/P&gt;
&lt;P&gt;even if the current block definition contains attributdefinitions(this is what you see in bedit or refedit).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Solution:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/ACD/2022/ENU/?query=Attsync" target="_blank" rel="noopener"&gt;Run a ATTSYNC&lt;STRONG&gt;[F1]&lt;/STRONG&gt; for this Block!&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And for the feature, edit your code from&lt;/P&gt;
&lt;P&gt;{look at the last lines of code in your .lsp}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;edited version:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;); end progn&lt;/P&gt;
&lt;P&gt;); end if valid input?&lt;/P&gt;
&lt;P&gt;(princ)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;(command "_.ATTSYNC" "_name" bname)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;); end progn&lt;/P&gt;
&lt;P&gt;); end if valid input?&lt;/P&gt;
&lt;P&gt;(princ)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jul 2022 14:57:23 GMT</pubDate>
    <dc:creator>cadffm</dc:creator>
    <dc:date>2022-07-13T14:57:23Z</dc:date>
    <item>
      <title>scr for copying a block to multiple points at once</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/scr-for-copying-a-block-to-multiple-points-at-once/m-p/10941161#M62487</link>
      <description>&lt;P&gt;scr for copying a block to multiple points at once&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 06:59:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/scr-for-copying-a-block-to-multiple-points-at-once/m-p/10941161#M62487</guid>
      <dc:creator>KOTARAMMOHANR</dc:creator>
      <dc:date>2022-02-10T06:59:39Z</dc:date>
    </item>
    <item>
      <title>Betreff: scr for copying a block to multiple points at once</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/scr-for-copying-a-block-to-multiple-points-at-once/m-p/10941240#M62488</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;you got so many help, stop asking for whole solution and start to understand &amp;amp;learning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/autocad-forum/a-scr-file-can-execute-a-list-of-same-commands-only-in-one-scr/m-p/10938213#M1072509" target="_blank"&gt;https://forums.autodesk.com/t5/autocad-forum/a-scr-file-can-execute-a-list-of-same-commands-only-in-one-scr/m-p/10938213#M1072509&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of circle or cecolor, start&lt;/P&gt;
&lt;P&gt;with a blank scr file with only&lt;/P&gt;
&lt;P&gt;-INSERT&amp;lt;enter&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run the script and look what autocad ask for&amp;nbsp; [F2!], it is the blockname,&lt;/P&gt;
&lt;P&gt;add your blockname to your scr&amp;nbsp;followed by enter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-INSERT&lt;/P&gt;
&lt;P&gt;MYBLOCK&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;followed by enter and test it again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 07:38:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/scr-for-copying-a-block-to-multiple-points-at-once/m-p/10941240#M62488</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2022-02-10T07:38:39Z</dc:date>
    </item>
    <item>
      <title>Betreff: scr for copying a block to multiple points at once</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/scr-for-copying-a-block-to-multiple-points-at-once/m-p/10941281#M62489</link>
      <description>&lt;P&gt;can we copy a block to multiple points at once using scr&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;without inserting .is it possible or not&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 08:02:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/scr-for-copying-a-block-to-multiple-points-at-once/m-p/10941281#M62489</guid>
      <dc:creator>KOTARAMMOHANR</dc:creator>
      <dc:date>2022-02-10T08:02:55Z</dc:date>
    </item>
    <item>
      <title>Betreff: scr for copying a block to multiple points at once</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/scr-for-copying-a-block-to-multiple-points-at-once/m-p/10941392#M62490</link>
      <description>&lt;P&gt;If you started making scripts, you would know!&lt;BR /&gt;Yes, you can do that. Why not&lt;/P&gt;
&lt;P&gt;But the problem is: You are very limited for object selection in script,&lt;/P&gt;
&lt;P&gt;except you using lisp, but then you can write all what you want in lisp and no need&lt;/P&gt;
&lt;P&gt;to use the limited script way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are posting in AutoCAD Forum, so if you have AutoCAD you can use Lispfunctions and Expresstools,&lt;/P&gt;
&lt;P&gt;in this case it shouldn't be a problem, but I wouldn't use a Script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;"without inserting .is it possible or not"&lt;/P&gt;
&lt;P&gt;Inserting or copy or any other AutoCAD command, the script-technic is the same.&lt;/P&gt;
&lt;P&gt;Stop asking, start doing &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are able to select your Blockreference, you can copy it.&lt;/P&gt;
&lt;P&gt;Start with script writing and if you have a problem, ask for it (by description of goal and your current *.scr file [as .txt file attachment] )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to: The same way I wrote before.&lt;/P&gt;
&lt;P&gt;Take a blank *.scr file and start with&lt;/P&gt;
&lt;P&gt;_copy&amp;lt;enter&amp;gt;&lt;/P&gt;
&lt;P&gt;load the script and read what AutoCAD ask for..&lt;/P&gt;
&lt;P&gt;follow the&lt;/P&gt;
&lt;P&gt;command syntax and expand your script step by step, until you defined the whole workflow .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;;;sample to copy THE LAST object&amp;nbsp; 3x to 20,0 -&amp;gt; 20,20 -&amp;gt; 0,20&lt;/P&gt;
&lt;P&gt;osnapcoord 1&lt;BR /&gt;_copy&lt;BR /&gt;_last&lt;/P&gt;
&lt;P&gt;_multiple&lt;BR /&gt;0,0&lt;BR /&gt;20,0&lt;BR /&gt;20,20&lt;BR /&gt;0,20&lt;BR /&gt;_exit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 08:53:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/scr-for-copying-a-block-to-multiple-points-at-once/m-p/10941392#M62490</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2022-02-10T08:53:01Z</dc:date>
    </item>
    <item>
      <title>Betreff: scr for copying a block to multiple points at once</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/scr-for-copying-a-block-to-multiple-points-at-once/m-p/11294805#M62491</link>
      <description>&lt;P&gt;I have a situation where I have multiple points that need to be replaced by a block with attributes. I have never done anything like this before. I was able to find a lisp text created by somoen online, from which I ceated my lisp file but it seems like the attributes from the block are not visible. Selecting the block to see its properties, the "Attributes" is not there, but if I try to edit block in place or Block editor, the "Attributes" default is displayed and visible to edit its properties. Attached is the lisp file. let me know what I am doing wrong.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 14:35:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/scr-for-copying-a-block-to-multiple-points-at-once/m-p/11294805#M62491</guid>
      <dc:creator>kamalj</dc:creator>
      <dc:date>2022-07-13T14:35:28Z</dc:date>
    </item>
    <item>
      <title>Betreff: scr for copying a block to multiple points at once</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/scr-for-copying-a-block-to-multiple-points-at-once/m-p/11294855#M62492</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12242745"&gt;@kamalj&lt;/a&gt;&amp;nbsp; schrieb:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The Thread is about creating a *.SCR file for copying a block to multiple points at once..&lt;/P&gt;
&lt;P&gt;So Please: Start your own thread if it doesn't match 100% (and in this case, it matchs 0%)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But okay, Point-&amp;gt;Insert is given and I took a look&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The pt2block isn't perfect and one of the tiny mistakes is: It creates an insert without attributes (attributes are attached on inserts),&lt;/P&gt;
&lt;P&gt;even if the current block definition contains attributdefinitions(this is what you see in bedit or refedit).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Solution:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/ACD/2022/ENU/?query=Attsync" target="_blank" rel="noopener"&gt;Run a ATTSYNC&lt;STRONG&gt;[F1]&lt;/STRONG&gt; for this Block!&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And for the feature, edit your code from&lt;/P&gt;
&lt;P&gt;{look at the last lines of code in your .lsp}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;edited version:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;); end progn&lt;/P&gt;
&lt;P&gt;); end if valid input?&lt;/P&gt;
&lt;P&gt;(princ)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;(command "_.ATTSYNC" "_name" bname)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;); end progn&lt;/P&gt;
&lt;P&gt;); end if valid input?&lt;/P&gt;
&lt;P&gt;(princ)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 14:57:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/scr-for-copying-a-block-to-multiple-points-at-once/m-p/11294855#M62492</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2022-07-13T14:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: scr for copying a block to multiple points at once</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/scr-for-copying-a-block-to-multiple-points-at-once/m-p/11295073#M62493</link>
      <description>&lt;P&gt;That worked out perfectly. Thank you for the that 1 line code that I added. It clearly will save me alot of hours for this floor level. I have another 6 floors with more than 1000 points.&amp;nbsp; Thank you once again.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 16:31:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/scr-for-copying-a-block-to-multiple-points-at-once/m-p/11295073#M62493</guid>
      <dc:creator>kamalj</dc:creator>
      <dc:date>2022-07-13T16:31:27Z</dc:date>
    </item>
  </channel>
</rss>

