<?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: width factor attribute of multi drawing in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/width-factor-attribute-of-multi-drawing/m-p/5964485#M298541</link>
    <description>&lt;P&gt;&lt;SPAN&gt;It is better to ask questions about lisp &lt;/SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130" target="_self"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Dec 2015 16:03:59 GMT</pubDate>
    <dc:creator>АлексЮстасу</dc:creator>
    <dc:date>2015-12-24T16:03:59Z</dc:date>
    <item>
      <title>width factor attribute of multi drawing</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/width-factor-attribute-of-multi-drawing/m-p/5964155#M298540</link>
      <description>&lt;P&gt;Dear all my friends&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your sharing me&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have lisp file that changed attrbuite width factor ,but into only one file (who it open ) if there is a way to change the width factor to changer all drawing into specifed foder . the following one the lisp which's i need to revised to be able modify mult drawing&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun c:widedit (/ aDoc x attent uwd option tag blk bn)&lt;BR /&gt;;;; pBe 11JN2013 ;;;&lt;BR /&gt;(vl-load-com)&lt;BR /&gt;(setq aDoc (vla-get-ActiveDocument (vlax-get-acad-object)))&lt;BR /&gt;(if (and (setq x (car (nentsel "\nSelect attribute: ")))&lt;BR /&gt;(eq "ATTRIB" (cdr (assoc 0 (entget x))))&lt;BR /&gt;(setq attent (vlax-ename-&amp;gt;vla-object x))&lt;BR /&gt;(princ (strcat "\nCurrent Width is &amp;lt;" (rtos (vla-get-scalefactor attent) 2)"&amp;gt; "))&lt;BR /&gt;(setq uwd (getreal "\nEnter new width: ")))&lt;BR /&gt;(progn&lt;BR /&gt;(initget "Y N")&lt;BR /&gt;(setq option (cond&lt;BR /&gt;((getkword "\nApply width to all Attribute of the same block? [Yes/no] &amp;lt;N&amp;gt;: "))&lt;BR /&gt;( "N" )))&lt;BR /&gt;(if (eq option "N")&lt;BR /&gt;(vla-put-scalefactor attent uwd)&lt;BR /&gt;(progn&lt;BR /&gt;(setq tag (vla-get-tagstring attent))&lt;BR /&gt;(setq Blk (vla-ObjectIdToObject aDoc&lt;BR /&gt;(vla-get-OwnerId attent))&lt;BR /&gt;Bn (vla-get-effectivename blk))&lt;BR /&gt;(vlax-for itm (vla-item (vla-get-blocks aDoc) bn)&lt;BR /&gt;(if (and (eq (vla-get-objectname itm) "AcDbAttributeDefinition")&lt;BR /&gt;(eq (vla-get-tagstring itm) tag))&lt;BR /&gt;(vla-put-scalefactor itm uwd)))&lt;BR /&gt;(vlax-for layout (vla-get-layouts aDoc)&lt;BR /&gt;(vlax-for i (vla-get-block layout)&lt;BR /&gt;(if (and&lt;BR /&gt;(eq (vla-get-objectname i) "AcDbBlockReference")&lt;BR /&gt;(eq (Vla-get-hasAttributes i) :Vlax-true)&lt;BR /&gt;(eq (vla-get-effectivename i) bn)&lt;BR /&gt;)&lt;BR /&gt;(foreach itm (vlax-invoke i 'GetAttributes)&lt;BR /&gt;(if (eq (vla-get-tagstring itm) tag)&lt;BR /&gt;(vla-put-scalefactor itm uwd))&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(vl-some&lt;BR /&gt;'(lambda (j) (if (null (eval (car j))) (princ (cadr j))&lt;BR /&gt;))&lt;BR /&gt;'((x "\n&amp;lt;&amp;lt;None Selected&amp;gt;&amp;gt;")&lt;BR /&gt;(attent "\n&amp;lt;&amp;lt;Selected object not an Attribute&amp;gt;&amp;gt;")&lt;BR /&gt;(uwd "\n&amp;lt;&amp;lt;No Width value&amp;gt;&amp;gt;"))&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(princ)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2015 06:42:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/width-factor-attribute-of-multi-drawing/m-p/5964155#M298540</guid>
      <dc:creator>emadelbatran</dc:creator>
      <dc:date>2015-12-24T06:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: width factor attribute of multi drawing</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/width-factor-attribute-of-multi-drawing/m-p/5964485#M298541</link>
      <description>&lt;P&gt;&lt;SPAN&gt;It is better to ask questions about lisp &lt;/SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130" target="_self"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2015 16:03:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/width-factor-attribute-of-multi-drawing/m-p/5964485#M298541</guid>
      <dc:creator>АлексЮстасу</dc:creator>
      <dc:date>2015-12-24T16:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: width factor attribute of multi drawing</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/width-factor-attribute-of-multi-drawing/m-p/5964638#M298542</link>
      <description>thanks a lot for your advice , i'll go there ....</description>
      <pubDate>Thu, 24 Dec 2015 21:49:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/width-factor-attribute-of-multi-drawing/m-p/5964638#M298542</guid>
      <dc:creator>emadelbatran</dc:creator>
      <dc:date>2015-12-24T21:49:06Z</dc:date>
    </item>
  </channel>
</rss>

