<?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: Block Attribute value list in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/block-attribute-value-list/m-p/7650659#M110614</link>
    <description>&lt;P&gt;The last time I worked with P&amp;amp;ID diagrams, I was using Microstation. So I&amp;nbsp;have never come across that screenshot you posted.&amp;nbsp;I don't think AutoCAD has a built-in command for&amp;nbsp;that. But you could combine tags with some customization. See below for example. One could&amp;nbsp;use the combined string and add it&amp;nbsp;to some other element of the drawing (block, mtext, table, etc.)&lt;/P&gt;
&lt;PRE&gt;(defun c:somefunc  (/ ent etdata lst)
 (if (setq ent (car (entsel "\nSelect block: ")))
  (while (/= "SEQEND" (cdr (assoc 0 (setq etdata (entget (setq ent (entnext ent)))))))
   (setq lst (cons (cdr (assoc 1 etdata)) lst))))
 (vl-string-right-trim " " (apply 'strcat (mapcar '(lambda (x) (strcat x " ")) lst))))&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="comb_tags.gif" style="width: 625px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/443460i858CC3E442D27A3F/image-size/large?v=v2&amp;amp;px=999" role="button" title="comb_tags.gif" alt="comb_tags.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Dec 2017 16:28:03 GMT</pubDate>
    <dc:creator>Ranjit_Singh</dc:creator>
    <dc:date>2017-12-27T16:28:03Z</dc:date>
    <item>
      <title>Block Attribute value list</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/block-attribute-value-list/m-p/7650612#M110613</link>
      <description>&lt;P&gt;I've been researching this, and so far all I can find is that, in order to have a list of values for an attribute you need to use the visibility states of a dynamic block.&amp;nbsp; Is this still truly the only way to have a value list for an attribute or part of an attribute?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am toying with a tag that has multiple sections, each one pulled from a very large table of possible values.&amp;nbsp; From what I am seeing, this cannot be done?&amp;nbsp; Reference this example from AutoCAD P&amp;amp;ID (which we will not use much longer).&amp;nbsp; These tag sections each pull from a predefined table of values.&amp;nbsp; When Assign is clicked, it concatenates these into an attribute and places it into the drawing.&amp;nbsp; Do I have any options of doing something like this in AutoCAD?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for any advice.&amp;nbsp; Please be gentle, my programming "skills" are practically nil.&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-left" image-alt="tag.PNG" style="width: 582px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/443457i7DB534CECC045C45/image-size/large?v=v2&amp;amp;px=999" role="button" title="tag.PNG" alt="tag.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 16:03:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/block-attribute-value-list/m-p/7650612#M110613</guid>
      <dc:creator>cbenner</dc:creator>
      <dc:date>2017-12-27T16:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Block Attribute value list</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/block-attribute-value-list/m-p/7650659#M110614</link>
      <description>&lt;P&gt;The last time I worked with P&amp;amp;ID diagrams, I was using Microstation. So I&amp;nbsp;have never come across that screenshot you posted.&amp;nbsp;I don't think AutoCAD has a built-in command for&amp;nbsp;that. But you could combine tags with some customization. See below for example. One could&amp;nbsp;use the combined string and add it&amp;nbsp;to some other element of the drawing (block, mtext, table, etc.)&lt;/P&gt;
&lt;PRE&gt;(defun c:somefunc  (/ ent etdata lst)
 (if (setq ent (car (entsel "\nSelect block: ")))
  (while (/= "SEQEND" (cdr (assoc 0 (setq etdata (entget (setq ent (entnext ent)))))))
   (setq lst (cons (cdr (assoc 1 etdata)) lst))))
 (vl-string-right-trim " " (apply 'strcat (mapcar '(lambda (x) (strcat x " ")) lst))))&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="comb_tags.gif" style="width: 625px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/443460i858CC3E442D27A3F/image-size/large?v=v2&amp;amp;px=999" role="button" title="comb_tags.gif" alt="comb_tags.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 16:28:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/block-attribute-value-list/m-p/7650659#M110614</guid>
      <dc:creator>Ranjit_Singh</dc:creator>
      <dc:date>2017-12-27T16:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Block Attribute value list</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/block-attribute-value-list/m-p/7650669#M110615</link>
      <description>&lt;P&gt;Speaking from a purely AutoLisp perspective, I would say the answer is yes.&amp;nbsp; I would recommend using a dialog box (DCL) where you can incorporate edit boxes, list boxes and pop-up lists for data entry or selection, and the accompanying lisp routine could concatenate whatever values you have entered or selected and put the results most any place you wish, e.g. text, mtext, or block attribute, and many other nongraphic places.&amp;nbsp; But it would not be a 5 minute task that many gurus here would knock off for you while they took a sip of coffee.&amp;nbsp; I expect you would have to pay for such services and spend some time of your own coordinating input lists, appearance, and output to the drawing.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 16:35:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/block-attribute-value-list/m-p/7650669#M110615</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2017-12-27T16:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Block Attribute value list</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/block-attribute-value-list/m-p/7650677#M110616</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3930636"&gt;@john.uhden&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the frank and honest reply.&amp;nbsp; I would never expect anyone to simply do this for me, though I wouldn't turn such kindness down!&amp;nbsp;&amp;nbsp;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&amp;nbsp; I expected that, if possible, this would be a fairly large job.&amp;nbsp; I just wanted to really know if I should even pursue it or not.&amp;nbsp; Based on what you say, this is something&amp;nbsp;I should look at more closely.&amp;nbsp; I was actually picturing exactly what you suggest, I just didn't know if it were possible.&amp;nbsp; I played with .dcl files many (MANY) years ago and some simple lisp code.&amp;nbsp; Maybe I need to dust off my books and take another look.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 16:40:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/block-attribute-value-list/m-p/7650677#M110616</guid>
      <dc:creator>cbenner</dc:creator>
      <dc:date>2017-12-27T16:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Block Attribute value list</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/block-attribute-value-list/m-p/7650716#M110617</link>
      <description>&lt;P&gt;Oh, c'mon.&amp;nbsp; You've got kudos and solutions galore.&amp;nbsp; It'll probably be just like riding a bike... you'll get to skin your knees all over again.&amp;nbsp;&amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://forums.autodesk.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;
&lt;P&gt;And we can apply some bandages if you need them.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 17:00:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/block-attribute-value-list/m-p/7650716#M110617</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2017-12-27T17:00:02Z</dc:date>
    </item>
    <item>
      <title>Betreff: Block Attribute value list</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/block-attribute-value-list/m-p/7650748#M110618</link>
      <description>"you need to use the visibility states of a dynamic block"&lt;BR /&gt;&lt;BR /&gt;In some situation thats a possible way and blocks (attributes) has not the function you want.&lt;BR /&gt;&lt;BR /&gt;Without programming like the visiblestate way is, &lt;BR /&gt;there is another (non perfect but better) way with dynamic blocks:&lt;BR /&gt;Set the attributvalue with look up actions!&lt;BR /&gt;The non-perfect thing is: the Attribut fields in properties palette always displayd.</description>
      <pubDate>Wed, 27 Dec 2017 17:13:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/block-attribute-value-list/m-p/7650748#M110618</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2017-12-27T17:13:03Z</dc:date>
    </item>
    <item>
      <title>Betreff: Block Attribute value list</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/block-attribute-value-list/m-p/7650861#M110619</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/71745"&gt;@cadffm&lt;/a&gt; wrote:&lt;BR /&gt;"you need to use the visibility states of a dynamic block"&lt;BR /&gt;&lt;BR /&gt;In some situation thats a possible way and blocks (attributes) has not the function you want.&lt;BR /&gt;&lt;BR /&gt;Without programming like the visiblestate way is, &lt;BR /&gt;there is another (non perfect but better) way with dynamic blocks:&lt;BR /&gt;&lt;STRONG&gt;Set the attributvalue with look up actions!&lt;/STRONG&gt;&lt;BR /&gt;The non-perfect thing is: the Attribut fields in properties palette always displayd.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/71745"&gt;@cadffm&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you give a bit more information on how to do this?&amp;nbsp; I've been looking at this, and I don't see how to tie lookups to anything except a dimensional parameter.&amp;nbsp; I can tie an attribute to a Block Table, so I could create an invisible attribute for each of the portions of my tag number, and get the value for each from a block table.... but then I still need to concatenate them into a single string or attribute.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 18:17:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/block-attribute-value-list/m-p/7650861#M110619</guid>
      <dc:creator>cbenner</dc:creator>
      <dc:date>2017-12-27T18:17:05Z</dc:date>
    </item>
    <item>
      <title>Betreff: Block Attribute value list</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/block-attribute-value-list/m-p/7651226#M110620</link>
      <description>&lt;P&gt;See attachment.&lt;BR /&gt;&lt;BR /&gt;But really well is only a program-extension which popup if user want to edit the attributvalues and&lt;BR /&gt;the block is detected as "yourBlock" and the valid values are stored in an database (or xdatas).&lt;BR /&gt;&lt;BR /&gt;attedit/eattedit -&amp;gt; is Block listed in my database? (in this kind) -&amp;gt;&lt;BR /&gt;YES=&amp;gt; start my own dialog&lt;BR /&gt;NO=&amp;gt; start standard dialog&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 22:24:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/block-attribute-value-list/m-p/7651226#M110620</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2017-12-27T22:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Block Attribute value list</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/block-attribute-value-list/m-p/9390569#M110621</link>
      <description>&lt;P&gt;Sorry my bad English. but...&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;FONT&gt;I just figured it out. Now I know how it all works&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;All off it from&amp;nbsp; 010-&amp;gt;to 255.255.255. &lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;Jeesus Kristus...&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;Is it really that simple?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;...OMG, I'am almighty&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 20 Mar 2020 22:13:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/block-attribute-value-list/m-p/9390569#M110621</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-20T22:13:46Z</dc:date>
    </item>
  </channel>
</rss>

