<?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: Send Wipeout to Back in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13284990#M3881</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1137264"&gt;@paullimapa&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;In this master dwg file wipeout is back but when the same blocks are retrieved into another drawing wipeout comes to the front of nowhere and I don't know why. Along with the solution please help me understand the problem.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chaitanya H&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2025 02:38:53 GMT</pubDate>
    <dc:creator>ChaitanyaHeb</dc:creator>
    <dc:date>2025-01-28T02:38:53Z</dc:date>
    <item>
      <title>Send Wipeout to Back</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13282958#M3874</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have code that retrieves blocks from the master drawing. I added wipeout to all my blocks in the master file and sent it back using draworder command. Now in the current drawing when I call any block wipeout is at the top and hiding all the entities behind it.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I have been trying to figure this out with several approaches and need some help.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would like to send all Wipeouts back when the block is getting retrieved from the master file.&lt;BR /&gt;&lt;BR /&gt;Can anyone look into the code and guide what lines need to be added so that every time I place the block in the current drawing wipeout is back.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;=========================Get Device.lsp=========================&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(defun c:GetBlock (/ *error* dbx doc dwg userpath)&lt;BR /&gt;(vl-load-com)&lt;/P&gt;&lt;P&gt;;; Error handling function&lt;BR /&gt;(defun *error* (msg)&lt;BR /&gt;(if (and (= 'vla-object (type dbx)) (not (vlax-object-released-p dbx)))&lt;BR /&gt;(vlax-release-object dbx)&lt;BR /&gt;)&lt;BR /&gt;(if (and msg (not (wcmatch (strcase msg t) "*break,*cancel*,*exit*")))&lt;BR /&gt;(princ (strcat "\nError: " msg))&lt;BR /&gt;)&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;;; Get the current user's profile path&lt;BR /&gt;(setq userpath (getenv "USERPROFILE"))&lt;/P&gt;&lt;P&gt;;; Construct the dynamic path to the source file&lt;BR /&gt;(setq dwg (strcat userpath "\\AppData\\Roaming\\Autodesk\\ApplicationPlugins\\Master.dwg"))&lt;/P&gt;&lt;P&gt;;; Debugging: Print constructed path&lt;BR /&gt;(princ (strcat "\nConstructed Path: " dwg))&lt;/P&gt;&lt;P&gt;;; Check if the file exists&lt;BR /&gt;(if (not (findfile dwg))&lt;BR /&gt;(progn&lt;BR /&gt;(princ (strcat "\nFile not found: " dwg))&lt;BR /&gt;(exit) ; Exit the function if file not found&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;;; Proceed if file exists&lt;BR /&gt;(cond&lt;BR /&gt;((not (setq dbx (LM:GetDocumentObject dwg)))&lt;BR /&gt;(princ "\nUnable to interface with the selected drawing.")&lt;BR /&gt;)&lt;BR /&gt;(t&lt;BR /&gt;(prompt "\nEnter block name to insert from source drawing: ")&lt;BR /&gt;(setq blockName (getstring "\nBlock Name: "))&lt;/P&gt;&lt;P&gt;(if (not (LM:InsertBlockFromSource dbx blockName))&lt;BR /&gt;(princ (strcat "\nBlock \"" blockName "\" not found in the source drawing."))&lt;BR /&gt;(princ (strcat "\nBlock \"" blockName "\" inserted successfully."))&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;;; Get Document Object - Lee Mac&lt;BR /&gt;(defun LM:GetDocumentObject (dwg / app dbx dwl vrs)&lt;BR /&gt;(cond&lt;BR /&gt;((not (setq dwg (findfile dwg)))&lt;BR /&gt;(princ (strcat "\nFile not found in LM:GetDocumentObject: " dwg))&lt;BR /&gt;nil&lt;BR /&gt;)&lt;BR /&gt;((cdr&lt;BR /&gt;(assoc (strcase dwg)&lt;BR /&gt;(vlax-for doc (vla-get-documents (setq app (vlax-get-acad-object)))&lt;BR /&gt;(setq dwl (cons (cons (strcase (vla-get-fullname doc)) doc) dwl))&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;((progn&lt;BR /&gt;(setq dbx&lt;BR /&gt;(vl-catch-all-apply 'vla-getinterfaceobject&lt;BR /&gt;(list app&lt;BR /&gt;(if (&amp;lt; (setq vrs (atoi (getvar 'acadver))) 16)&lt;BR /&gt;"objectdbx.axdbdocument" (strcat "objectdbx.axdbdocument." (itoa vrs))&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(or (null dbx) (vl-catch-all-error-p dbx))&lt;BR /&gt;)&lt;BR /&gt;(prompt "\nUnable to interface with ObjectDBX.")&lt;BR /&gt;)&lt;BR /&gt;((not (vl-catch-all-error-p (vl-catch-all-apply 'vla-open (list dbx dwg))))&lt;BR /&gt;dbx&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;;; Function to insert block from source drawing&lt;BR /&gt;(defun LM:InsertBlockFromSource (dbx blockName)&lt;BR /&gt;(if (not (LM:getitem (vla-get-blocks dbx) blockName))&lt;BR /&gt;nil&lt;BR /&gt;(progn&lt;BR /&gt;(setq doc (vla-get-activedocument (vlax-get-acad-object)))&lt;BR /&gt;(if (not (vl-catch-all-error-p&lt;BR /&gt;(vl-catch-all-apply 'vlax-invoke&lt;BR /&gt;(list dbx 'copyobjects&lt;BR /&gt;(list (LM:getitem (vla-get-blocks dbx) blockName))&lt;BR /&gt;(vla-get-blocks doc)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(progn&lt;BR /&gt;(if (LM:getitem (vla-get-blocks doc) blockName)&lt;BR /&gt;(LM:InsertBlockAtPoint doc blockName)&lt;BR /&gt;nil&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;nil&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;;; Function to insert block at a user-specified insertion point&lt;BR /&gt;(defun LM:InsertBlockAtPoint (doc blockName)&lt;BR /&gt;(while (setq insPt (getpoint "\nSpecify insertion point: "))&lt;BR /&gt;(vla-insertblock&lt;BR /&gt;(vlax-get-property doc (if (= 1 (getvar 'cvport)) 'paperspace 'modelspace))&lt;BR /&gt;(vlax-3D-point insPt)&lt;BR /&gt;blockName&lt;BR /&gt;1.0 1.0 1.0&lt;BR /&gt;0&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;;; VLA-Collection: Get Item - Lee Mac&lt;BR /&gt;(defun LM:getitem (col idx / obj)&lt;BR /&gt;(if (not (vl-catch-all-error-p (setq obj (vl-catch-all-apply 'vla-item (list col idx)))))&lt;BR /&gt;obj&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;(princ)&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 01:25:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13282958#M3874</guid>
      <dc:creator>ChaitanyaHeb</dc:creator>
      <dc:date>2025-01-27T01:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Send Wipeout to Back</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13283095#M3875</link>
      <description>&lt;P&gt;This sends ALL wipeouts to back.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(sssetfirst nil (ssget "_X" '((0 . "WIPEOUT"))))(command "_.draworder" "_b")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 05:10:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13283095#M3875</guid>
      <dc:creator>stev98312</dc:creator>
      <dc:date>2025-01-27T05:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Send Wipeout to Back</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13283150#M3876</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you suggest where this line should be placed so that it will be more efficient?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 06:15:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13283150#M3876</guid>
      <dc:creator>ChaitanyaHeb</dc:creator>
      <dc:date>2025-01-27T06:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Send Wipeout to Back</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13283634#M3877</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1137264"&gt;@paullimapa&lt;/a&gt;,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt;&lt;BR /&gt;Can you please take a look at this and help in finding the solution?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 12:11:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13283634#M3877</guid>
      <dc:creator>ChaitanyaHeb</dc:creator>
      <dc:date>2025-01-27T12:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Send Wipeout to Back</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13283725#M3878</link>
      <description>&lt;P&gt;Read up on possible solutions on this thread&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back-of-draworder-within-block-definition/td-p/9740947" target="_blank"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back-of-draworder-within-block-definition/td-p/9740947&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 13:08:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13283725#M3878</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2025-01-27T13:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Send Wipeout to Back</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13284933#M3879</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1137264"&gt;@paullimapa&lt;/a&gt;&amp;nbsp;Sorry for the late reply.&amp;nbsp;&lt;BR /&gt;As you mentioned I went through the thread and extracted the lines. I tested those lines which are working fine. However, integrating or merging it with the upper code does not work as expected. I have attached both codes (Code lines extracted from thread and Code lines merged with original code). Please take a look and let me know what exactly I am missing.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 01:37:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13284933#M3879</guid>
      <dc:creator>ChaitanyaHeb</dc:creator>
      <dc:date>2025-01-28T01:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Send Wipeout to Back</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13284977#M3880</link>
      <description>&lt;P&gt;could you also share a sample dwg that contains a couple of blocks that have wipeouts that you want to send to back&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 02:26:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13284977#M3880</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2025-01-28T02:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Send Wipeout to Back</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13284990#M3881</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1137264"&gt;@paullimapa&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;In this master dwg file wipeout is back but when the same blocks are retrieved into another drawing wipeout comes to the front of nowhere and I don't know why. Along with the solution please help me understand the problem.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chaitanya H&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 02:38:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13284990#M3881</guid>
      <dc:creator>ChaitanyaHeb</dc:creator>
      <dc:date>2025-01-28T02:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Send Wipeout to Back</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13285043#M3882</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6431248"&gt;@ChaitanyaHeb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6431248"&gt;@ChaitanyaHeb&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I have code that retrieves blocks from the master drawing. I added wipeout to all my blocks in the master file and sent it back using draworder command. Now in the current drawing when I call any block wipeout is at the top and hiding all the entities behind it.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have had this issue before. For me, I found that the display of the Wipeout will appear based on the ENTITY CREATION ORDER when you make the block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if you create a block in this order:&lt;/P&gt;&lt;P&gt;1) Create Rectangle&lt;/P&gt;&lt;P&gt;2) Add text over rectangle&lt;/P&gt;&lt;P&gt;3) Add wipeout to rectangle (then send to back)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...then you will see the issue you describe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To fix it...&lt;/P&gt;&lt;P&gt;1) Edit your block in block editor.&lt;/P&gt;&lt;P&gt;2) copy all of the entities EXCEPT for the Wipeout(s) from a basepoint (0,0,0) (make sure you're using COPYBASE command, or Ctrl+Shift+C, do NOT use COPY command)&lt;/P&gt;&lt;P&gt;3) after copying, delete all of the entities EXCEPT the Wipeout(s)&lt;/P&gt;&lt;P&gt;4) Paste the copied entities back at their base point (0,0,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...OR, create your block in this order:&lt;/P&gt;&lt;P&gt;1) Add wipeout&lt;/P&gt;&lt;P&gt;2) Create Rectangle&lt;/P&gt;&lt;P&gt;3) Add text over rectangle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 03:44:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13285043#M3882</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2025-01-28T03:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Send Wipeout to Back</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13285052#M3883</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5680873"&gt;@CodeDing&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Exactly like you described I added the wipeout after attributes and actions were added to the block. But the steps you mentioned to follow is going to eat big chunk of my time as I have to repeat this for at least 100+ blocks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Chaitanya H&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 04:00:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13285052#M3883</guid>
      <dc:creator>ChaitanyaHeb</dc:creator>
      <dc:date>2025-01-28T04:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Send Wipeout to Back</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13285118#M3884</link>
      <description>&lt;P&gt;I found where your code failed.&lt;/P&gt;&lt;P&gt;Basically since the function&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;LM:SendWipeoutBack&lt;/STRONG&gt;&amp;nbsp;inside your&amp;nbsp;&lt;STRONG&gt;GetBlock1903.lsp&amp;nbsp;&lt;/STRONG&gt;does NOT successfully send the Wipeout inside the Block to the back, don't use that.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Instead I&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;took&amp;nbsp;&lt;STRONG&gt;WTB.lsp&lt;/STRONG&gt; from the thread I gave you which does work, modified it and then included that as part of your code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back-of-draworder-within-block-definition/m-p/9802680/highlight/true#M406015" target="_blank" rel="noopener"&gt;Re: Send Wipeout to Back of Draworder within Block Definition - Autodesk Community&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;These are the problem areas I found in your original&amp;nbsp;&lt;STRONG&gt;GetBlock1903.lsp &lt;/STRONG&gt;code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Does this&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;ADTFireAlarmMaster.dwg&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;drawing exist since you provided for me&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;Master.dwg&lt;/STRONG&gt; instead&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;  ;; Construct the dynamic path to the source file
  (setq dwg (strcat userpath "\\AppData\\Roaming\\Autodesk\\ApplicationPlugins\\UKDesignCUI\\ConfigDwg\\ADTFireAlarmMaster.dwg"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Inside the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;LM:InsertBlockAtPoint&lt;/STRONG&gt; function you wanted to call this &lt;STRONG&gt;LM:SendWipeoutBack&lt;/STRONG&gt;&amp;nbsp;subfunction passing it the &lt;STRONG&gt;blk&lt;/STRONG&gt; argument:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;; Function to insert block at a user-specified insertion point
(defun LM:InsertBlockAtPoint (doc blockName)
  (while (setq insPt (getpoint "\nSpecify insertion point: "))
    (vla-insertblock
      (vlax-get-property doc (if (= 1 (getvar 'cvport)) 'paperspace 'modelspace))
      (vlax-3D-point insPt)
      blockName
      1.0 1.0 1.0
      0
    )
    (LM:SendWipeoutBack blk) 
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;First problem here is what is &lt;STRONG&gt;blk&lt;/STRONG&gt; variable set equal to?&lt;/P&gt;&lt;P&gt;Second of all the&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;LM:SendWipeoutBack&lt;/STRONG&gt; function has no arguments but only declaration of local variables with one of them that happens to be &lt;STRONG&gt;blk&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;; Function to move wipeouts to the back after insertion
(defun LM:SendWipeoutBack (/ blk wipeouts)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. As I stated at the beginning since&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;LM:SendWipeoutBack&lt;/STRONG&gt;&lt;/SPAN&gt; doesn't work I changed it to call the &lt;STRONG&gt;c:wtb&lt;/STRONG&gt; function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;; Function to insert block at a user-specified insertion point
(defun LM:InsertBlockAtPoint (doc blockName)
  (while (setq insPt (getpoint "\nSpecify insertion point: "))
    (vla-insertblock
      (vlax-get-property doc (if (= 1 (getvar 'cvport)) 'paperspace 'modelspace))
      (vlax-3D-point insPt)
      blockName
      1.0 1.0 1.0
      0
    )
;    (LM:SendWipeoutBack blk) ; this function has no arguments &amp;amp; currently does not work
    (c:wtb) ; this function modified from C:WTB works
  )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the changes I made to the &lt;STRONG&gt;WTB.lsp&lt;/STRONG&gt; function so instead of requesting for a &lt;STRONG&gt;Block&lt;/STRONG&gt; selection it'll automatically select the last &lt;STRONG&gt;Block&lt;/STRONG&gt; inserted:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:WTB ( / s )
;    (princ "\nSelect Block: ")
    (if ; (setq s (ssget "_+.:E:S" '((0 . "INSERT"))))
     (not(vl-catch-all-error-p (vl-catch-all-apply 'vla-get-effectivename (list (vlax-ename-&amp;gt;vla-object (entlast))))))   
     (progn
			(LM:ApplytoBlockObjects ;this one targets the parent block
				(vla-get-blocks (vla-get-activedocument (vlax-get-acad-object)))
;				(vla-get-effectivename (vlax-ename-&amp;gt;vla-object (ssname s 0)))
				(vla-get-effectivename (vlax-ename-&amp;gt;vla-object (entlast)))
			   '(lambda ( obj ) (if (= "AcDbWipeout" (vlax-get obj 'objectname)) (LM:movetobottom (list obj))))
			);end of 1st LM:Apply
			(LM:ApplytoBlockObjects ;this one targets the annoyonmous block
				(vla-get-blocks (vla-get-activedocument (vlax-get-acad-object)))
;				(vla-get-name (vlax-ename-&amp;gt;vla-object (ssname s 0)))
				(vla-get-effectivename (vlax-ename-&amp;gt;vla-object (entlast)))
			   '(lambda ( obj ) (if (= "AcDbWipeout" (vlax-get obj 'objectname)) (LM:movetobottom (list obj))))
			);end of 2nd LM:Apply
		);end of progn
    (princ"\nLast Object is NOT a Block")  
	);end of if
    (command "regenall")
    (princ)
);end of defun&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also commented out the following &lt;STRONG&gt;princ&lt;/STRONG&gt; statements:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;(princ (strcat "\n:: WipeoutBlockToBack.lsp | Version 1 | Brandon Gum "
;"\n:: Available Command:"
;"\n::    \"WTB\" - Send block's wipeout to back"
;);end of strcat
;);end of princ
;(princ);surpress additional output&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lastly, after combining the code I found a total of 3&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;LM:safearrayvariant&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;functions that are exactly the same:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun LM:safearrayvariant ( typ lst )
    (vlax-make-variant
        (vlax-safearray-fill
            (vlax-make-safearray typ (cons 0 (1- (length lst))))
            lst
        )
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After commenting out two of them, now&amp;nbsp;your modified&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;GetBlock1903.lsp&lt;/STRONG&gt;&lt;/SPAN&gt;(attached) works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 05:15:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13285118#M3884</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2025-01-28T05:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Send Wipeout to Back</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13285168#M3885</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1137264"&gt;@paullimapa&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please see the reply as well as I have a small doubt listed&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Does this&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;ADTFireAlarmMaster.dwg&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;drawing exist since you provided for me&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;Master.dwg&lt;/STRONG&gt;&amp;nbsp;instead&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT face="comic sans ms,sans-serif" size="4"&gt;CH---&amp;gt; Yes the file exists in the path provided. Further, the shared .dwg here was the test.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Inside the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;LM:InsertBlockAtPoint&lt;/STRONG&gt;&amp;nbsp;function you wanted to call this&amp;nbsp;&lt;STRONG&gt;LM:SendWipeoutBack&lt;/STRONG&gt;&amp;nbsp;subfunction passing it the&amp;nbsp;&lt;STRONG&gt;blk&lt;/STRONG&gt;&amp;nbsp;argument:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;First problem here is what is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;blk&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;variable set equal to?&lt;/P&gt;&lt;P&gt;Second of all the&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;LM:SendWipeoutBack&lt;/STRONG&gt;&amp;nbsp;function has no arguments but only declaration of local variables with one of them that happens to be&amp;nbsp;&lt;STRONG&gt;blk&lt;/STRONG&gt;:&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT face="comic sans ms,sans-serif" size="4"&gt;CH---&amp;gt; I am not a complete developer. I have just started to learn lisp. This code I developed with the help of AI and also by taking Lee-Mac website help.&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Doubt:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;As you have commented out “(LM:SendWipeoutBack blk)” under the section “LM:InsertBlockAtPoint” part shall I delete the lines related to “LM:SendWipeoutBack” which is appearing twice.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT face="comic sans ms,sans-serif" size="4"&gt;The reason is I want to keep the code structure clean and remove the code parts that are not required. For reference, I have attached snips.&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChaitanyaHeb_0-1738045274594.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1459688i58EF87F1908EC0ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChaitanyaHeb_0-1738045274594.png" alt="ChaitanyaHeb_0-1738045274594.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChaitanyaHeb_1-1738045365177.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1459689i0DE731844A8C8BDA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChaitanyaHeb_1-1738045365177.png" alt="ChaitanyaHeb_1-1738045365177.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT face="comic sans ms,sans-serif" size="4"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 06:30:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13285168#M3885</guid>
      <dc:creator>ChaitanyaHeb</dc:creator>
      <dc:date>2025-01-28T06:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Send Wipeout to Back</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13285177#M3886</link>
      <description>&lt;P&gt;AI is not there yet to provide proper LISP code so I would avoid the use of AI.&lt;/P&gt;&lt;P&gt;Yes, any function you're not using in the code can be removed.&lt;/P&gt;&lt;P&gt;I've attached a cleaner version.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 06:56:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13285177#M3886</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2025-01-28T06:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Send Wipeout to Back</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13285190#M3887</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1137264"&gt;@paullimapa&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you. You helped me a lot in debugging this code.&amp;nbsp;&lt;BR /&gt;I agree relying on AI completely is not a good practice for a beginner like me and Yes AI is not there yet to think completely like a human.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Chaitanya Hebliakr&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 06:47:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13285190#M3887</guid>
      <dc:creator>ChaitanyaHeb</dc:creator>
      <dc:date>2025-01-28T06:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Send Wipeout to Back</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13285194#M3888</link>
      <description>&lt;P&gt;you are welcome...cheers!!!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 06:48:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13285194#M3888</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2025-01-28T06:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Send Wipeout to Back</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13285197#M3889</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1137264"&gt;@paullimapa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You.&lt;BR /&gt;&lt;BR /&gt;You helped me a lot in debugging this code.&lt;BR /&gt;Yes, I agree relying completely on AI is not good practice for a beginner like me and also like you said AI is not there yet to think like humans and provide solutions.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Chaitanya Heblikar&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 06:49:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13285197#M3889</guid>
      <dc:creator>ChaitanyaHeb</dc:creator>
      <dc:date>2025-01-28T06:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Send Wipeout to Back</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13419442#M3890</link>
      <description>&lt;P&gt;it seems to me that this effort to put wipout's on the back, is the wrong way to turn them of ??&lt;/P&gt;&lt;P&gt;they are meant to be on top to simplify a block, correct?&lt;/P&gt;&lt;P&gt;so i put them all on a layer wipeout and turn that layer on or of depending if i want to see details or not.&lt;/P&gt;&lt;P&gt;any better ideas ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i would like to switch that lsp to move wipeout to front ! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 16:05:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13419442#M3890</guid>
      <dc:creator>Ate1964</dc:creator>
      <dc:date>2025-04-10T16:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Send Wipeout to Back</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13419460#M3891</link>
      <description>&lt;P&gt;i would like to switch that lsp to move wipeout to front !&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 16:06:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/send-wipeout-to-back/m-p/13419460#M3891</guid>
      <dc:creator>Ate1964</dc:creator>
      <dc:date>2025-04-10T16:06:41Z</dc:date>
    </item>
  </channel>
</rss>

