<?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: Attributes Colours and Font Size in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/attributes-colours-and-font-size/m-p/9025027#M128105</link>
    <description>&lt;P&gt;@Anonymous&amp;nbsp; hi,&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any non coding way of doing it?&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;if there was other way to do this you think we wouldn't tell you?!&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Attached sclr.lsp (&lt;FONT color="#0000FF"&gt;S&lt;/FONT&gt;et &lt;FONT color="#0000FF"&gt;C&lt;/FONT&gt;olor), save it to your desktop, open AutoCAD and reduce it size to half screen and move it to the left side of your screen, now move sclr.lsp to the right side of your screen so now you see AutoCAD open and the lisp. now drag and drop the lisp into the drawing area, this will load the lisp (another way to load lisp is using APPLOAD command)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;command :&amp;nbsp; &lt;FONT color="#0000FF"&gt;SCLR&lt;/FONT&gt; &amp;lt;key-in the command&amp;gt;&lt;/P&gt;&lt;P&gt;Select objects: &amp;lt;select "stand size" blocks&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if the are some "stand size" blocks in your drawing that has attributes and if there is "availability" attribute and if it's value is "sold" it's color will turn &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;red&lt;/FONT&gt; &lt;/STRONG&gt;and if it's value is "pipeline" it's color will turn &lt;FONT color="#993366"&gt;&lt;STRONG&gt;yellow&lt;/STRONG&gt;&lt;/FONT&gt; and if it's value is "available" it's color will turn &lt;STRONG&gt;&lt;FONT color="#339966"&gt;green&lt;/FONT&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if it doesn't work then one or some of the terms you specified are not match. post the dwg so i can take a look.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;moshe&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>Sat, 14 Sep 2019 08:09:37 GMT</pubDate>
    <dc:creator>Moshe-A</dc:creator>
    <dc:date>2019-09-14T08:09:37Z</dc:date>
    <item>
      <title>Attributes Colours and Font Size</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/attributes-colours-and-font-size/m-p/9021719#M128100</link>
      <description>&lt;P&gt;Hi! Two questions on attributes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using attributes to export data from stands at a conference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attributes I am using are:&lt;/P&gt;&lt;P&gt;Block Name: Stand Size&lt;/P&gt;&lt;P&gt;Stand Ref Number&lt;/P&gt;&lt;P&gt;Stand Partner Name&lt;/P&gt;&lt;P&gt;Build Type&lt;/P&gt;&lt;P&gt;Availability&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For availability we have Sold, Pipeline and Available. Is it possible to change the colour of the block based on which definition is given to the attribute ie Sold = Red, or would I still have to rely on layers for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second Question&lt;/P&gt;&lt;P&gt;Some of the names I am putting in are quite long. When I was inputting them in manually I could split them over two or three lines if necessary so the font could remain large enough to read but still within the confines of the stand block. Is this still possible when its a visible attribute? Currently I have had to reduce the text size on the stands where there are long names and unfortunately acronyms aren't possible, I asked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for any help even if the answer isn't what I hoping for!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 14:59:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/attributes-colours-and-font-size/m-p/9021719#M128100</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-12T14:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Attributes Colours and Font Size</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/attributes-colours-and-font-size/m-p/9022074#M128101</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;check this lisp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;enjoy&lt;/P&gt;&lt;P&gt;moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun c:sclr (/ data^ color ss AcDbBlkRef attributes^ tag value item)
 (setq data^ '(("SOLD" . 1) ("PIPELINE" . 2) ("AVAILABLE" . 3))) 
 (setq color (vlax-create-object (strcat "AutoCAD.AcCmColor." (substr (getvar "ACADVER") 1 2))))
  
 (if (setq ss (ssget '((0 . "insert") (2 . "stand size") (66 . 1))))
  (foreach ename (vl-remove-if 'listp (mapcar 'cadr (ssnamex ss)))
   (setq AcDbBlkRef (vlax-ename-&amp;gt;vla-object ename))
   (setq attributes^ (vlax-invoke AcDbBlkRef 'GetAttributes))

   (foreach AcDbAttrib attributes^
    (setq tag (strcase (vla-get-tagString AcDbAttrib)))

    (if (eq tag "AVAILABILITY")
     (progn
      (setq value (strcase (vla-get-textString AcDbAttrib)))
      (if (setq item (assoc value data^))
       (progn	
	(vla-put-ColorIndex color (cdr item))
	(vla-put-TrueColor AcDbAttrib color) 
       ); progn
      ); if
     ); progn
    ); if

    (vlax-release-object AcDbAttrib) 
   ); foreach  

   (vlax-release-object AcDbBlkRef) 
  ); foreach
 ); if

 (vlax-release-object color) 
 (princ)
)&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Sep 2019 17:52:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/attributes-colours-and-font-size/m-p/9022074#M128101</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2019-09-12T17:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Attributes Colours and Font Size</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/attributes-colours-and-font-size/m-p/9023928#M128102</link>
      <description>&lt;P&gt;Hey! I'm actually not familiar with lisp and neither are any of the engineers in my office (for once I didn't look like a total muppet asking them a coding question). Is there a different way of doing this?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 14:33:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/attributes-colours-and-font-size/m-p/9023928#M128102</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-13T14:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Attributes Colours and Font Size</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/attributes-colours-and-font-size/m-p/9023935#M128103</link>
      <description>&lt;P&gt;Copy the text provided into NotePad.&lt;/P&gt;&lt;P&gt;Save As (name.lsp)&lt;/P&gt;&lt;P&gt;Drag and drop that file into your drawing field.&lt;/P&gt;&lt;P&gt;Type:&amp;nbsp;sclr&lt;/P&gt;&lt;P&gt;Do as it says.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 14:40:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/attributes-colours-and-font-size/m-p/9023935#M128103</guid>
      <dc:creator>qnologi</dc:creator>
      <dc:date>2019-09-13T14:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Attributes Colours and Font Size</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/attributes-colours-and-font-size/m-p/9023973#M128104</link>
      <description>&lt;P&gt;Slrc is just asking me to select objects but wont do so.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any non coding way of doing it? Or is there a beginners guide to lisp for autocad I can read to understand how to implement the code and then I'll come back with further questions that are less fundamental?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 14:58:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/attributes-colours-and-font-size/m-p/9023973#M128104</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-13T14:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Attributes Colours and Font Size</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/attributes-colours-and-font-size/m-p/9025027#M128105</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp; hi,&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any non coding way of doing it?&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;if there was other way to do this you think we wouldn't tell you?!&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Attached sclr.lsp (&lt;FONT color="#0000FF"&gt;S&lt;/FONT&gt;et &lt;FONT color="#0000FF"&gt;C&lt;/FONT&gt;olor), save it to your desktop, open AutoCAD and reduce it size to half screen and move it to the left side of your screen, now move sclr.lsp to the right side of your screen so now you see AutoCAD open and the lisp. now drag and drop the lisp into the drawing area, this will load the lisp (another way to load lisp is using APPLOAD command)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;command :&amp;nbsp; &lt;FONT color="#0000FF"&gt;SCLR&lt;/FONT&gt; &amp;lt;key-in the command&amp;gt;&lt;/P&gt;&lt;P&gt;Select objects: &amp;lt;select "stand size" blocks&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if the are some "stand size" blocks in your drawing that has attributes and if there is "availability" attribute and if it's value is "sold" it's color will turn &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;red&lt;/FONT&gt; &lt;/STRONG&gt;and if it's value is "pipeline" it's color will turn &lt;FONT color="#993366"&gt;&lt;STRONG&gt;yellow&lt;/STRONG&gt;&lt;/FONT&gt; and if it's value is "available" it's color will turn &lt;STRONG&gt;&lt;FONT color="#339966"&gt;green&lt;/FONT&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if it doesn't work then one or some of the terms you specified are not match. post the dwg so i can take a look.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;moshe&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>Sat, 14 Sep 2019 08:09:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/attributes-colours-and-font-size/m-p/9025027#M128105</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2019-09-14T08:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Attributes Colours and Font Size</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/attributes-colours-and-font-size/m-p/9026862#M128106</link>
      <description>&lt;P&gt;In my defense you are random people on the internet! When we inserted the code last time we were like "what if its a virus?" and then were like "this would be a really inefficient way of spreading a virus, hanging out in the autocad forum looking for idiots to upload code to their program"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK I think I see the issue. So there are no blocks named STANDSIZE, they are all named the various stand sizes of which there are 12 at the moment. So, my guess would be, that for this I would need to enter the code 12 times, each time with the different block name instead of the word STANDSIZE?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't upload the file unfortunately as my company would be super not ok with the site plan getting out there for security reasons and I mostly like my job and don't want to get fired for leaving us open to terrorist attacks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I have a feeling, in not knowing this method I could have over complicated this for myself...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 11:02:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/attributes-colours-and-font-size/m-p/9026862#M128106</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-16T11:02:46Z</dc:date>
    </item>
  </channel>
</rss>

