<?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: *Lisp to auto increment 1 attribute value in 2 places* in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-auto-increment-1-attribute-value-in-2-places/m-p/7877702#M107000</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-family: 'FrutigerNextW04-Regular',serif; font-size: 10.5pt;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-family: 'FrutigerNextW04-Regular',serif; font-size: 10.5pt;"&gt;&lt;SPAN style="color: black; font-family: 'FrutigerNextW04-Regular',serif; font-size: 10.5pt;"&gt;In the example below, I want to increment the value &lt;FONT color="#000000"&gt;&lt;SPAN style="color: red; font-family: 'FrutigerNextW04-Regular',serif; font-size: 10.5pt;"&gt;inside the brackets by some number (1 character), &lt;/SPAN&gt;and increment the value &lt;SPAN style="color: blue; font-family: 'FrutigerNextW04-Regular',serif; font-size: 10.5pt;"&gt;&lt;FONT color="#ff0000"&gt;outside the bracket &lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#ff0000"&gt;by....&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-family: 'FrutigerNextW04-Regular',serif; font-size: 10.5pt;"&gt;.... I know it's a lot to ask, but if you feel you can help, I think something like this would benefit others as well.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The source block "A" and ref block "A1" and "A2" are the same block definition? or a different named block? or you meant block object "A" "A1" and"A2"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The integer value character for increment is the first character after the bracket of the string ? or after every hyphen? That part you need to explain more, i just don't see it right away from the examples string value you posted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Its not a lot to do, you need to be clear about what you're asking.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Mar 2018 07:51:52 GMT</pubDate>
    <dc:creator>pbejse</dc:creator>
    <dc:date>2018-03-23T07:51:52Z</dc:date>
    <item>
      <title>*Lisp to auto increment 1 attribute value in 2 places*</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-auto-increment-1-attribute-value-in-2-places/m-p/7873585#M106999</link>
      <description>&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;I work with&amp;nbsp;AutoCAD Electrical (2018).&amp;nbsp; I've looked around the forums for a lisp that will allow me to increment a &lt;U&gt;single&lt;/U&gt; attribute value in 2 different places,&amp;nbsp;either automatically after being copied, or with a command.&amp;nbsp; I have found some that are almost there, but nothing that really fits right.&amp;nbsp; I'm hoping that I can get help here.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;In the example below, I want to increment the value &lt;FONT color="#000000"&gt;&lt;SPAN style="color: red; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;inside the brackets by some number (1 character), &lt;/SPAN&gt;and increment the value &lt;SPAN style="color: blue; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;&lt;FONT color="#ff0000"&gt;outside the bracket &lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#ff0000"&gt;by some number (1 character), &lt;FONT color="#000000"&gt;using one command, making only one selection&lt;/FONT&gt;&lt;/FONT&gt;.&amp;nbsp;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;The character string format of the attribute value is crucial and should remain {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}&lt;STRONG&gt;M_&lt;/STRONG&gt;XXXXX. The "M_" should never change.&amp;nbsp; My thinking is that the characters in the string increment&amp;nbsp;up by 1 (in the case of a "9" it would role over&amp;nbsp;and&amp;nbsp;start at&amp;nbsp;"1" again) so that the auto-incrementing will always cause previously like values to remain like values after the incrementing.&amp;nbsp; In this example, the Source block gets its own unique handle, located&amp;nbsp;outside the bracket, so AcadE knows which&amp;nbsp;block is the primary.&amp;nbsp;The "Ref Blocks" are linked to&amp;nbsp;the "Source Block"&amp;nbsp;because they&amp;nbsp;share the same unique text string located &lt;SPAN style="color: red; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;inside the brackets.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;Source&amp;nbsp;Block&amp;nbsp;&lt;STRONG&gt;&lt;SPAN style="font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif;"&gt;"A"&lt;/SPAN&gt;&lt;/STRONG&gt; REFONLYLINKGUID value - {&lt;FONT color="#ff0000"&gt;4DFDE12A&lt;/FONT&gt;-&lt;FONT color="#ff0000"&gt;48E6&lt;/FONT&gt;-&lt;FONT color="#ff0000"&gt;48F2&lt;/FONT&gt;-&lt;FONT color="#ff0000"&gt;A7A7&lt;/FONT&gt;-&lt;FONT color="#ff0000"&gt;A914EF917F37&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;}M_&lt;FONT color="#ff0000"&gt;41975&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;Ref Block&amp;nbsp;&lt;STRONG&gt;&lt;SPAN style="font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif;"&gt;"A1"&lt;/SPAN&gt;&lt;/STRONG&gt; REFONLYLINKGUID value - {&lt;FONT color="#ff0000"&gt;4DFDE12A&lt;/FONT&gt;-&lt;FONT color="#ff0000"&gt;48E6&lt;/FONT&gt;-&lt;FONT color="#ff0000"&gt;48F2&lt;/FONT&gt;-&lt;FONT color="#ff0000"&gt;A7A7&lt;/FONT&gt;-&lt;FONT color="#ff0000"&gt;A914EF917F37&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;Ref Block&amp;nbsp;&lt;STRONG&gt;&lt;SPAN style="font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif;"&gt;"A2"&lt;/SPAN&gt;&lt;/STRONG&gt; REFONLYLINKGUID value - {&lt;FONT color="#ff0000"&gt;4DFDE12A&lt;/FONT&gt;-&lt;FONT color="#ff0000"&gt;48E6&lt;/FONT&gt;-&lt;FONT color="#ff0000"&gt;48F2&lt;/FONT&gt;-&lt;FONT color="#ff0000"&gt;A7A7&lt;/FONT&gt;-&lt;FONT color="#ff0000"&gt;A914EF917F37&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;The reason I want a lisp is, we use&amp;nbsp;design templates (AcadE .wdp files) and frequently&amp;nbsp;duplicate&amp;nbsp;these templates multiple times within a main project (.wdp) file.&amp;nbsp; Changing some equipment data prior to adding the new drawings to the main project&amp;nbsp;file ensures all common designs have unique equipment IDs (i.e. no duplication).&amp;nbsp; The problem is that these "Source" and "Reference" relationships within the REFONLYLINKGUID attribute are preset inside of&amp;nbsp;the design templates, so they are already related when we go into design.&amp;nbsp; &lt;FONT color="#000000"&gt;In any given drawing there could be scores of these unique REFONLYLINKGUID relationships set-up between various blocks; in an entire project file, there could be hundreds.&lt;/FONT&gt;&amp;nbsp; The only way we can make them unique values, at this point, is to manually change every REFONLYLINKGUID attribute value in the new design so that it matches and links together, but doesn't match and link back to the&amp;nbsp;previous design it was copied from.&amp;nbsp; If it works the way I envision it, the result of running this "REFONLY_CHG" command will produce the following result, based on what you saw in the previous example:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;Source&amp;nbsp;Block&amp;nbsp;&lt;STRONG&gt;"B"&lt;/STRONG&gt; REFONLYLINKGUID value - {&lt;FONT color="#0000ff"&gt;5EGEF21B&lt;/FONT&gt;-&lt;FONT color="#0000ff"&gt;59F7&lt;/FONT&gt;-&lt;FONT color="#0000ff"&gt;59F3&lt;/FONT&gt;-&lt;FONT color="#0000ff"&gt;B8B8&lt;/FONT&gt;-&lt;FONT color="#0000ff"&gt;B125FG12&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;8G48&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;}&lt;FONT color="#0000ff"&gt;&lt;FONT color="#000000"&gt;M_&lt;/FONT&gt;52186&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;Ref Block&amp;nbsp;&lt;STRONG&gt;"B1"&lt;/STRONG&gt; REFONLYLINKGUID value - {&lt;FONT color="#0000ff"&gt;5EGEF21B&lt;/FONT&gt;-&lt;FONT color="#0000ff"&gt;59F7&lt;/FONT&gt;-&lt;FONT color="#0000ff"&gt;59F3&lt;/FONT&gt;-&lt;FONT color="#0000ff"&gt;B8B8&lt;/FONT&gt;-&lt;FONT color="#0000ff"&gt;B125FG12&lt;/FONT&gt;&lt;SPAN style="color: blue; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;8G48&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;Ref Block&amp;nbsp;&lt;STRONG&gt;"B2"&lt;/STRONG&gt; REFONLYLINKGUID value - {&lt;FONT color="#0000ff"&gt;5EGEF21B&lt;/FONT&gt;-&lt;FONT color="#0000ff"&gt;59F7&lt;/FONT&gt;-&lt;FONT color="#0000ff"&gt;59F3&lt;/FONT&gt;-&lt;FONT color="#0000ff"&gt;B8B8&lt;/FONT&gt;-&lt;FONT color="#0000ff"&gt;B125FG12&lt;/FONT&gt;&lt;SPAN style="color: blue; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;8G48&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: &amp;quot;FrutigerNextW04-Regular&amp;quot;,serif; font-size: 10.5pt;"&gt;I know it's a lot to ask, but if you feel you can help, I think something like this would benefit others as well.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 23:37:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-auto-increment-1-attribute-value-in-2-places/m-p/7873585#M106999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-21T23:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: *Lisp to auto increment 1 attribute value in 2 places*</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-auto-increment-1-attribute-value-in-2-places/m-p/7877702#M107000</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-family: 'FrutigerNextW04-Regular',serif; font-size: 10.5pt;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-family: 'FrutigerNextW04-Regular',serif; font-size: 10.5pt;"&gt;&lt;SPAN style="color: black; font-family: 'FrutigerNextW04-Regular',serif; font-size: 10.5pt;"&gt;In the example below, I want to increment the value &lt;FONT color="#000000"&gt;&lt;SPAN style="color: red; font-family: 'FrutigerNextW04-Regular',serif; font-size: 10.5pt;"&gt;inside the brackets by some number (1 character), &lt;/SPAN&gt;and increment the value &lt;SPAN style="color: blue; font-family: 'FrutigerNextW04-Regular',serif; font-size: 10.5pt;"&gt;&lt;FONT color="#ff0000"&gt;outside the bracket &lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#ff0000"&gt;by....&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: black; font-family: 'FrutigerNextW04-Regular',serif; font-size: 10.5pt;"&gt;.... I know it's a lot to ask, but if you feel you can help, I think something like this would benefit others as well.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The source block "A" and ref block "A1" and "A2" are the same block definition? or a different named block? or you meant block object "A" "A1" and"A2"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The integer value character for increment is the first character after the bracket of the string ? or after every hyphen? That part you need to explain more, i just don't see it right away from the examples string value you posted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Its not a lot to do, you need to be clear about what you're asking.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 07:51:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-auto-increment-1-attribute-value-in-2-places/m-p/7877702#M107000</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2018-03-23T07:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: *Lisp to auto increment 1 attribute value in 2 places*</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-auto-increment-1-attribute-value-in-2-places/m-p/7880243#M107001</link>
      <description>&lt;P&gt;Thank you for showing interest in this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;The source block "A" and ref block "A1" and "A2" are the same block definition? or a different named block? or you meant block object "A" "A1" and"A2"?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I mean that "A", "A1" and "A2" are separate block objects shown on separate drawings.&amp;nbsp; Block "A" has a different block name than "A1" and A2".&amp;nbsp; "A1" and "A2" are typically the same block name and definition because they are representing the same object, shown&amp;nbsp;in two different locations within the drawing set.&amp;nbsp; However,&amp;nbsp;block "A1" and "A2" maybe have a different block name, like in the example below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;"A" Block&amp;nbsp;Name = HPR2_TBL_OUT.dwg&amp;nbsp;&lt;/P&gt;&lt;P&gt;"A1" Block Name = VPR21_OUT_4DO.dwg&lt;/P&gt;&lt;P&gt;"A2" Block Name = VPR21_OUT_4DO_compact.dwg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;The integer value character for increment is the first character after the bracket of the string ? or after every hyphen? That part you need to explain more, i just don't see it right away from the examples string value you posted.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;I think that incrementing the first character after every hyphen of the string in&amp;nbsp;the bracket would suffice.&amp;nbsp; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;In a nutshell, I'd like to be able to type "REFONLY_CHG" into the command line, have a dialog box pop-up that allows me to select a&amp;nbsp;given number of DWG files in&amp;nbsp;a folder, after the selection is confirmed, the&amp;nbsp;routine searches all selected DWGs for this REFONLYLINKGUID attribute, and increments the 1st integer&amp;nbsp;after every hyphen in the value up by 1 character (whether it's a number or a letter).&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 21:25:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-auto-increment-1-attribute-value-in-2-places/m-p/7880243#M107001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-23T21:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: *Lisp to auto increment 1 attribute value in 2 places*</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-auto-increment-1-attribute-value-in-2-places/m-p/7881075#M107002</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for showing interest in this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;....I &lt;STRONG&gt;think&lt;/STRONG&gt; that incrementing the first character after every hyphen of the string in&amp;nbsp;the bracket would suffice.&amp;nbsp; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;"Are you telling us, up to this point you're not sure what the conditions are?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:
&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;... the&amp;nbsp;routine searches all selected DWGs for this REFONLYLINKGUID attribute, and increments the 1st integer&amp;nbsp;after every hyphen in the value up by 1 character (whether it's a number or a letter).&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If possible post&amp;nbsp; samples of the selected dwgs?&amp;nbsp; Source and Reference.&amp;nbsp;Also, show what the final result will look after running "&lt;SPAN&gt;REFONLY_CHG"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Mar 2018 12:44:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-auto-increment-1-attribute-value-in-2-places/m-p/7881075#M107002</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2018-03-24T12:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: *Lisp to auto increment 1 attribute value in 2 places*</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-auto-increment-1-attribute-value-in-2-places/m-p/7885322#M107003</link>
      <description>&lt;P&gt;&lt;FONT color="#ff0000"&gt;"Are you telling us, up to this point you're not sure what the conditions are?"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not at all.&amp;nbsp; I'm saying that the condition is to increment the character string in such a way that it maintains its original format, becomes unique, and never increments to match an existing value.&amp;nbsp; The best solution is to increment all characters (letters and numbers only) inside the brackets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;"If possible post&amp;nbsp;samples of the selected dwgs?&amp;nbsp; Source and Reference.&amp;nbsp;Also, show what the final result will look after running "&lt;SPAN&gt;REFONLY_CHG"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Attached are the DWGs you requested.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 19:08:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-auto-increment-1-attribute-value-in-2-places/m-p/7885322#M107003</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-26T19:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: *Lisp to auto increment 1 attribute value in 2 places*</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-auto-increment-1-attribute-value-in-2-places/m-p/7885330#M107004</link>
      <description>&lt;P&gt;The attached Word doc contains screenshots of what I'd like to see&amp;nbsp;in the final result.&amp;nbsp; In each instance, the&amp;nbsp;value of the attribute tag "REFONLYLINKGUID"&amp;nbsp;is visible.&amp;nbsp; The "BEFORE" screenshots show the original REFONLYLINKGUID value, the "AFTER" shots show the REFONLYLINKGUID value after running "REFONLY_CHG" (each letter and number incremented up by 1 character).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps, and again, thank you for your time and attention to my problem.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 19:10:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-auto-increment-1-attribute-value-in-2-places/m-p/7885330#M107004</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-26T19:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: *Lisp to auto increment 1 attribute value in 2 places*</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-auto-increment-1-attribute-value-in-2-places/m-p/7888229#M107005</link>
      <description>OK then, I'll see what I can do..&lt;BR /&gt;&lt;BR /&gt;Stay tuned for the next episode....</description>
      <pubDate>Tue, 27 Mar 2018 16:20:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-auto-increment-1-attribute-value-in-2-places/m-p/7888229#M107005</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2018-03-27T16:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: *Lisp to auto increment 1 attribute value in 2 places*</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-auto-increment-1-attribute-value-in-2-places/m-p/7899629#M107006</link>
      <description>&lt;P&gt;After selection of files to be processed, Will the program change the&amp;nbsp;"REFONLYLINKGUID" tag value of REF drawings regardless of what the current value is? or it needs to match the current value of the SOURCE block?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there only 1 of these blocks in every selected drawing? and are they located in Model space?&lt;/P&gt;
&lt;P&gt;The source file block is always named&amp;nbsp;"HPR2_TBL_OUT_4DO(P)"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Watch this video&amp;nbsp;&lt;/P&gt;
&lt;P&gt;pending your reply.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="screencast_placeholder"&gt;Screencast will be displayed here after you click Post.
&lt;P class="screencast_id"&gt;4743194b-8681-4f7d-9923-f05ede329cbd&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Apr 2018 14:57:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-auto-increment-1-attribute-value-in-2-places/m-p/7899629#M107006</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2018-04-01T14:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: *Lisp to auto increment 1 attribute value in 2 places*</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-auto-increment-1-attribute-value-in-2-places/m-p/7899744#M107007</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/564264" target="_blank"&gt;@pbejse&lt;/A&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="iframe-container"&gt;&lt;IFRAME width="640" height="590" src="https://screencast.autodesk.com/Embed/Timeline/4743194b-8681-4f7d-9923-f05ede329cbd" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Odd, the screencast video did not come in on my previous post.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyhoo, refer to the attached file for the demo video.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Apr 2018 16:57:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-auto-increment-1-attribute-value-in-2-places/m-p/7899744#M107007</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2018-04-01T16:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: *Lisp to auto increment 1 attribute value in 2 places*</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-auto-increment-1-attribute-value-in-2-places/m-p/7900974#M107008</link>
      <description>&lt;P&gt;&lt;FONT color="#ff0000"&gt;"After selection of files to be processed, Will the program change the "REFONLYLINKGUID" tag value of REF drawings regardless of what the current value is? or it needs to match the current value of the SOURCE block?"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, the program will change the REFONLYLINKGUID value regardless of what the current value is, but the program must also change the corresponding Source block to match it. After the change, the REFs new REFONLYLINKGUID value (inside the brackets) must match the Source's value inside the brackets. If the REFs change independent of the Source, and the Source maintains its current value, they will lose their link to the Source.&amp;nbsp; The practical application of this comes when we copy these Source and REF blocks in a common design.&amp;nbsp; We want the “old” Source and REF blocks to maintain their link with the “old” REFONLYLINKGUID value, and the “new” Source and REF &amp;nbsp;blocks to remain linked like they were previously, but with a “new” REFONLYLINKGUID value. &amp;nbsp;This means that both sets, though copies of one another, are two separate sets of Source and REF blocks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;"Is there only 1 of these blocks in every selected drawing? and are they located in Model space?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No, there are many blocks in every selected drawing. What I sent you as an example represents a single row from a single Device Table (that has close to 40 rows), in a drawing that has many unique Device Tables with their own unique REFONLYLINKGUID attributes. Each row drives information to multiple unique&amp;nbsp; REF symbols throughout the drawings.&amp;nbsp; Yes, they are all located in Model Space.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;"The source file block is always named "HPR2_TBL_OUT_4DO(P)"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No. The Source blocks have many different block names. All Source block names contain "_TBL_".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I liked the interface that I saw in the screencast. One point of feedback I have is the single REFONLYLINKGUID generator. Given the volume of REFONLYLINKGUID attributes that have to be changed, generating a single random value for each would mean running this command over 100 times, possibly closer to 200, on an average project. This was the reason I initially wanted to automatically index the character strings in the beginning. If the character strings for the Source and REF symbols match to begin with, incrementing the REFONLYLINKGUID values by the same number means they will continue to match up after the command changes them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you need more examples.&amp;nbsp; If I can help by providing a screencast with a larger sample size to illustrate this.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 13:30:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-auto-increment-1-attribute-value-in-2-places/m-p/7900974#M107008</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-02T13:30:45Z</dc:date>
    </item>
  </channel>
</rss>

