<?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: Merging functions from 2 LISPs in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13017693#M9117</link>
    <description>&lt;P&gt;Yeah, I don't think removing it changes it. I get this error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;; error: bad argument type: listp 11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm assuming 11 has to do something with the 11 blocks selected. I don't know if I'd want to go from L to R. I like that it orders the sequence in the order that they were copied (but backwards, unfortunately). The thing is I have a weird floor plan in which I'm trying to tag about 250 trellises, so not all are from L to R, that's why I liked that it renamed the sequence in order of being copied.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2024 21:15:24 GMT</pubDate>
    <dc:creator>jr_olmos23</dc:creator>
    <dc:date>2024-09-12T21:15:24Z</dc:date>
    <item>
      <title>Merging functions from 2 LISPs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13015242#M9108</link>
      <description>&lt;P&gt;So, I found (&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/sequentially-number-attribute-blocks-with-prefix/td-p/5435303" target="_blank" rel="noopener"&gt;in this forum from 2015&lt;/A&gt;&amp;nbsp;) a nice working lisp that edits block attributes in sequence with prefix and suffix, etc. See attached "attribute_sequential_increment_NEW.lsp". However, the lisp updates the first attribute tag it finds, so is it possible to incorporate the "get attribute function.lsp" code into it to make it work on custom blocks. See attached "Get attribute list code".&amp;nbsp; I thought it would be as easy as copying the attribute code into the sequence lisp, but it did't do anything on my end. So I don't know if Im doing something wrong here or what needs to be updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 21:54:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13015242#M9108</guid>
      <dc:creator>jr_olmos23</dc:creator>
      <dc:date>2024-09-11T21:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Merging functions from 2 LISPs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13015634#M9109</link>
      <description>&lt;P&gt;Try this modified &lt;STRONG&gt;AttInc.lsp&lt;/STRONG&gt; that incorporates the &lt;STRONG&gt;GetTags&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;PickTag&lt;/STRONG&gt; functions.&lt;/P&gt;&lt;P&gt;Limitations/Requirements:&lt;/P&gt;&lt;P&gt;1. Currently code does not support dynamic &lt;STRONG&gt;Blocks&lt;/STRONG&gt; with &lt;STRONG&gt;Attributes&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2. Need to first select a &lt;STRONG&gt;Block&lt;/STRONG&gt; with &lt;STRONG&gt;Attributes&lt;/STRONG&gt; to retrieve &lt;STRONG&gt;Tag&lt;/STRONG&gt; &lt;STRONG&gt;name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3. Only &lt;STRONG&gt;Blocks&lt;/STRONG&gt; with matching names are supported in the subsequent selections&lt;/P&gt;&lt;P&gt;FYI: Missing from your original posted code is function:&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;INDEX_ADD&lt;/STRONG&gt; which may run under function:&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;SORT_FUN&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 03:16:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13015634#M9109</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-09-12T03:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Merging functions from 2 LISPs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13015635#M9110</link>
      <description>&lt;P&gt;If you use Nentsel rather than entsel, you can pick an attribute in a block it returns the properties of the attribute, so&amp;nbsp; Tagname is an obvious one. In a second pass you can get block name of actual block so you could then do an update of the blocks by name and Attribute tag name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you could post a dwg with before and after,&amp;nbsp; show before blocks copy them and edit for show after.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setq att (entget (car (nentsel "\nPick an attribute "))))

((-1 . &amp;lt;Entity name: 8c27e060&amp;gt;) (0 . "ATTRIB") (5 . "D999") (330 . &amp;lt;Entity name: 8c27d620&amp;gt;) (100 . "AcDbEntity") (67 . 1) (410 . "D01") (8 . "DRGTEXT") (62 . 5) (100 . "AcDbText") (10 693.8875 56.125 0.0) (40 . 7.0) (1 . "PRELIMINARY DRAWING") (50 . 0.0) (41 . 1.0) (51 . 0.0) (7 . "Standard") (71 . 0) (72 . 4) (11 742.1875 59.625 0.0) (210 0.0 0.0 1.0) (100 . "AcDbAttribute") (2 . "DRAWING_STATUS") (70 . 0) (73 . 0) (74 . 0) (280 . 0))&lt;/LI-CODE&gt;&lt;P&gt;"DRAWING_STATUS" is tag name.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 03:14:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13015635#M9110</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-09-12T03:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Merging functions from 2 LISPs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13017076#M9111</link>
      <description>&lt;P&gt;This works great, but apparently it gets the name of the blocks as in *U2 and so on, so when I then go on to select the rest of the block to apply the sequence to, it says it didn't find any blocks with the name *U2 I've attached the file in which I tried it. This is the sequence of commands:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command: ATTINCR&lt;/P&gt;&lt;P&gt;ENTER PREFIX (Ex: A...; if none, press Enter)&lt;/P&gt;&lt;P&gt;ENTER SUFFIX (Ex: ...Z; if none, press Enter)&lt;/P&gt;&lt;P&gt;ENTER STARTING NUMBER OF THE SEQUENCE (ANY INTEGER)1&lt;/P&gt;&lt;P&gt;Select Block Attribute Template to Retrieve Tag Name...&lt;BR /&gt;Select objects:&lt;/P&gt;&lt;P&gt;Select One [ITEM/SHEET/DWG.REF/ITEMNAME/*ITEMNAME/MAT'L/PART#/C/F/PR]: ITEM&lt;/P&gt;&lt;P&gt;Select Blocks Matching Name: *U2 To Change Tag: ITEM...&lt;BR /&gt;Select objects: Specify opposite corner: 0 found&lt;/P&gt;&lt;P&gt;Select objects:&lt;/P&gt;&lt;P&gt;No Blocks Selected Matching Name: *U2&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 16:12:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13017076#M9111</guid>
      <dc:creator>jr_olmos23</dc:creator>
      <dc:date>2024-09-12T16:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Merging functions from 2 LISPs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13017199#M9112</link>
      <description>&lt;P&gt;The &lt;STRONG&gt;*U&lt;/STRONG&gt;# in the Block name means it's a &lt;STRONG&gt;dynamic&lt;/STRONG&gt; block which my original revisions did not accommodate (one of the limitations I posted). Try this updated&amp;nbsp;&lt;STRONG&gt;AttInc.lsp &lt;/STRONG&gt;version.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 17:09:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13017199#M9112</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-09-12T17:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Merging functions from 2 LISPs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13017256#M9113</link>
      <description>Thanks, no it works as intended. Thanks man!</description>
      <pubDate>Thu, 12 Sep 2024 17:43:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13017256#M9113</guid>
      <dc:creator>jr_olmos23</dc:creator>
      <dc:date>2024-09-12T17:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Merging functions from 2 LISPs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13017261#M9114</link>
      <description>&lt;P&gt;glad to have helped...cheers!!!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 17:44:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13017261#M9114</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-09-12T17:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Merging functions from 2 LISPs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13017296#M9115</link>
      <description>Actually, would it be possible to make the LISP not start the sequence with the last block copied? I don't know if I can just remove the (REVERSE LIST 1) function and make the sequence follow the actual order in which the blocks were copied.</description>
      <pubDate>Thu, 12 Sep 2024 18:03:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13017296#M9115</guid>
      <dc:creator>jr_olmos23</dc:creator>
      <dc:date>2024-09-12T18:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Merging functions from 2 LISPs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13017321#M9116</link>
      <description>&lt;P&gt;Go ahead and see what happens when you remove that. If that still doesn’t work then we may have to include more code to sort by insertion from either left to right or right to left. You let me know&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 18:14:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13017321#M9116</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-09-12T18:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Merging functions from 2 LISPs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13017693#M9117</link>
      <description>&lt;P&gt;Yeah, I don't think removing it changes it. I get this error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;; error: bad argument type: listp 11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm assuming 11 has to do something with the 11 blocks selected. I don't know if I'd want to go from L to R. I like that it orders the sequence in the order that they were copied (but backwards, unfortunately). The thing is I have a weird floor plan in which I'm trying to tag about 250 trellises, so not all are from L to R, that's why I liked that it renamed the sequence in order of being copied.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 21:15:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13017693#M9117</guid>
      <dc:creator>jr_olmos23</dc:creator>
      <dc:date>2024-09-12T21:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Merging functions from 2 LISPs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13017721#M9118</link>
      <description>&lt;P&gt;I actually don't mean to remove the entire line but just the reverse part.&lt;/P&gt;&lt;P&gt;So the last line before the final parenthesis:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;; FORM_SSSET 
(DEFUN FORM_SSSET (SSSET BLOCKNAME / I TEMP_ELE LIST1)
  (SETQ I 0)
  (SETQ TEMP_ELE NIL)
  (SETQ LIST1 NIL_)
  (WHILE (&amp;lt; I (SSLENGTH SSSET))
    (SETQ TEMP_ELE (SSNAME SSSET I))
    (if (eq (strcase BLOCKNAME) (strcase (vla-get-effectivename (vlax-ename-&amp;gt;vla-object TEMP_ELE)))) ; chk if blockname matches
     (SETQ LIST1 (CONS TEMP_ELE LIST1))
    )
    (SETQ I (+ I 1))
  )
 (REVERSE LIST1) ; line of code in question
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should now look like this line:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;; FORM_SSSET 
(DEFUN FORM_SSSET (SSSET BLOCKNAME / I TEMP_ELE LIST1)
  (SETQ I 0)
  (SETQ TEMP_ELE NIL)
  (SETQ LIST1 NIL_)
  (WHILE (&amp;lt; I (SSLENGTH SSSET))
    (SETQ TEMP_ELE (SSNAME SSSET I))
    (if (eq (strcase BLOCKNAME) (strcase (vla-get-effectivename (vlax-ename-&amp;gt;vla-object TEMP_ELE)))) ; chk if blockname matches
     (SETQ LIST1 (CONS TEMP_ELE LIST1))
    )
    (SETQ I (+ I 1))
  )
  LIST1
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 21:25:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13017721#M9118</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-09-12T21:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Merging functions from 2 LISPs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13017727#M9119</link>
      <description>&lt;P&gt;Yup, that did it. Sorry I'm not very savvy with LISPs. Thanks again.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 21:31:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13017727#M9119</guid>
      <dc:creator>jr_olmos23</dc:creator>
      <dc:date>2024-09-12T21:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Merging functions from 2 LISPs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13017729#M9120</link>
      <description>&lt;P&gt;You are welcome… cheers!!!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 21:33:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/merging-functions-from-2-lisps/m-p/13017729#M9120</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-09-12T21:33:56Z</dc:date>
    </item>
  </channel>
</rss>

