<?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: Need to change the ATTRIBUTE TEXT WIDTH FACTOR ON MANY DWGs!!! in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872904#M27976</link>
    <description>If you means about web here is the&lt;BR /&gt;
very best place to start:&lt;BR /&gt;
www.afralisp.net&lt;BR /&gt;
&lt;BR /&gt;
Trust me&lt;BR /&gt;
&lt;BR /&gt;
~'J'~</description>
    <pubDate>Mon, 29 Jan 2007 13:41:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-01-29T13:41:22Z</dc:date>
    <item>
      <title>Need to change the ATTRIBUTE TEXT WIDTH FACTOR ON MANY DWGs!!!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872893#M27965</link>
      <description>I used the ATTSYNC command in a batch process and it reset the TEXT WIDTH property for the MATERIAL tag in the TITLE_BLOCK block for all of the dwgs.  (100's).  I need a LISP or VBA routine that will reset the width of the text to 0.55.  &lt;BR /&gt;
&lt;BR /&gt;
THIS DWG . BLOCK ("TITLE_BLOCK") . TAG ("MATERIAL") . WIDTH FACTOR = 0.55 &lt;BR /&gt;
&lt;BR /&gt;
Please help me with this tool so that I can run another batch process to undo what I did do!!  (I already have a batch utility so if your macro works on the attached dwg. I'll fix it from there.)&lt;BR /&gt;
&lt;BR /&gt;
This is simple for someone - PLEASE HELP!!!&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
MSR</description>
      <pubDate>Thu, 25 Jan 2007 22:58:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872893#M27965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-01-25T22:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change the ATTRIBUTE TEXT WIDTH FACTOR ON MANY DWGs!!!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872894#M27966</link>
      <description>' This is written in AutoCAD 2005&lt;BR /&gt;
' Add a Reference to Autocad/objectDBX common 16.0 Type Library&lt;BR /&gt;
' it will get your file list and change whatever values you need in&lt;BR /&gt;
' the drawing and then save the drawing.&lt;BR /&gt;
' All without opening each individual file in the interface.&lt;BR /&gt;
&lt;BR /&gt;
Function GetFileList()&lt;BR /&gt;
Dim Folder As String&lt;BR /&gt;
Dim fs, f, f1, fc&lt;BR /&gt;
Dim MyColl As New Collection&lt;BR /&gt;
Folder = "c:\cadd\"&lt;BR /&gt;
&lt;BR /&gt;
    Set fs = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;
    Set f = fs.GetFolder(Folder)&lt;BR /&gt;
    Set fc = f.Files&lt;BR /&gt;
 &lt;BR /&gt;
    For Each f1 In fc&lt;BR /&gt;
        If UCase(Right(f1.name, 4)) = UCase(".dwg") Then&lt;BR /&gt;
            MyColl.Add f1.path&lt;BR /&gt;
        End If&lt;BR /&gt;
    Next&lt;BR /&gt;
    &lt;BR /&gt;
    If MyColl.Count &amp;gt; 0 Then&lt;BR /&gt;
        For Each item In MyColl&lt;BR /&gt;
            GetDBX (item)&lt;BR /&gt;
        Next&lt;BR /&gt;
    End If&lt;BR /&gt;
    &lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
Public Function GetDBX(FName)&lt;BR /&gt;
Dim oSpace As AcadBlock&lt;BR /&gt;
Dim aNumber As Double&lt;BR /&gt;
Dim BlockName As String&lt;BR /&gt;
Dim OBJ, item&lt;BR /&gt;
dim att, atts&lt;BR /&gt;
aNumber = 8#&lt;BR /&gt;
&lt;BR /&gt;
Set odbx = GetInterfaceObject("ObjectDBX.AxDbDocument.16")&lt;BR /&gt;
If Err Then&lt;BR /&gt;
    MsgBox "Error with ObjectDBX object"&lt;BR /&gt;
    Set odbx = Nothing&lt;BR /&gt;
Else&lt;BR /&gt;
odbx.Open FName&lt;BR /&gt;
Set oSpace = odbx.ModelSpace ' Or Paperspace&lt;BR /&gt;
End If&lt;BR /&gt;
For Each item In oSpace&lt;BR /&gt;
&lt;BR /&gt;
    If TypeOf item Is AcadBlockReference Then ' get Attributes&lt;BR /&gt;
        If Not TypeOf item Is AcadExternalReference Then&lt;BR /&gt;
          if item.name = BlockName then &lt;BR /&gt;
            atts = item.GetAttributes&lt;BR /&gt;
                For Each att In atts&lt;BR /&gt;
                    att.width = 0.55&lt;BR /&gt;
                Next&lt;BR /&gt;
              end if&lt;BR /&gt;
        End If&lt;BR /&gt;
    End If&lt;BR /&gt;
&lt;BR /&gt;
    If TypeOf item Is AcadText Then ' get text&lt;BR /&gt;
        item.width = 0.55&lt;BR /&gt;
    End If&lt;BR /&gt;
Next&lt;BR /&gt;
odbx.SaveAs FName&lt;BR /&gt;
End Function</description>
      <pubDate>Fri, 26 Jan 2007 16:28:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872894#M27966</guid>
      <dc:creator>arcticad</dc:creator>
      <dc:date>2007-01-26T16:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change the ATTRIBUTE TEXT WIDTH FACTOR ON MANY DWGs!!!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872895#M27967</link>
      <description>Hi,&lt;BR /&gt;
Change reference to AutoCAD/ObjecDBX XX.X Type Library&lt;BR /&gt;
to your current Acad version and change&lt;BR /&gt;
in code string "ObjectDBX.AxDbDocument.16" on&lt;BR /&gt;
"ObjectDBX.AxDbDocument.17" if you have a &lt;BR /&gt;
2007 version&lt;BR /&gt;
Tested in A2005 only&lt;BR /&gt;
Hth&lt;BR /&gt;
&lt;BR /&gt;
~'J'~</description>
      <pubDate>Fri, 26 Jan 2007 19:40:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872895#M27967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-01-26T19:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change the ATTRIBUTE TEXT WIDTH FACTOR ON MANY DWGs!!!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872896#M27968</link>
      <description>Is there a way that I can just loop through Thisdrawing.-----&lt;BR /&gt;
&lt;BR /&gt;
Basically, if I run the macro from the current drawing it will change the attribute property.  This way I can do other things with my batch script.  So the script (text file) may look like the following...&lt;BR /&gt;
&lt;BR /&gt;
open&lt;BR /&gt;
path...dwg1&lt;BR /&gt;
;;do some stuff&lt;BR /&gt;
stuff 1-&amp;gt;n&lt;BR /&gt;
;;do macro&lt;BR /&gt;
BatchAttWid.dvb!SuperVBAcode&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
open&lt;BR /&gt;
path..dwg2&lt;BR /&gt;
--&amp;gt;repeat&lt;BR /&gt;
etc....</description>
      <pubDate>Fri, 26 Jan 2007 22:20:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872896#M27968</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-01-26T22:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change the ATTRIBUTE TEXT WIDTH FACTOR ON MANY DWGs!!!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872897#M27969</link>
      <description>In my opinion easier yet to write&lt;BR /&gt;
this script by lisp&lt;BR /&gt;
&lt;BR /&gt;
~'J'~</description>
      <pubDate>Fri, 26 Jan 2007 22:37:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872897#M27969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-01-26T22:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change the ATTRIBUTE TEXT WIDTH FACTOR ON MANY DWGs!!!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872898#M27970</link>
      <description>odbx is the same as thisdrawing&lt;BR /&gt;
&lt;BR /&gt;
By changing the reference you can use any existing code.</description>
      <pubDate>Fri, 26 Jan 2007 22:44:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872898#M27970</guid>
      <dc:creator>arcticad</dc:creator>
      <dc:date>2007-01-26T22:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change the ATTRIBUTE TEXT WIDTH FACTOR ON MANY DWGs!!!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872899#M27971</link>
      <description>I agree with you,&lt;BR /&gt;
Regards&lt;BR /&gt;
&lt;BR /&gt;
~'J'~</description>
      <pubDate>Fri, 26 Jan 2007 22:49:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872899#M27971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-01-26T22:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change the ATTRIBUTE TEXT WIDTH FACTOR ON MANY DWGs!!!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872900#M27972</link>
      <description>??&lt;BR /&gt;
&lt;BR /&gt;
Can you help me?&lt;BR /&gt;
&lt;BR /&gt;
??&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
MSR</description>
      <pubDate>Fri, 26 Jan 2007 23:00:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872900#M27972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-01-26T23:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change the ATTRIBUTE TEXT WIDTH FACTOR ON MANY DWGs!!!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872901#M27973</link>
      <description>as Fatty mentioned.&lt;BR /&gt;
&lt;BR /&gt;
If you want to do a "script" then lisp is better.&lt;BR /&gt;
&lt;BR /&gt;
The main reason is commands will not synchronize with VBA.&lt;BR /&gt;
&lt;BR /&gt;
What will happen is you will run a sendcommand and then VBA&lt;BR /&gt;
will issue the next command without waiting for Autocad to finish&lt;BR /&gt;
with the last command. &lt;BR /&gt;
&lt;BR /&gt;
The result is AutoCAD will not run VBA and Lisp at the same time&lt;BR /&gt;
and will just "hang". it won't crash but it won't run either.  &lt;BR /&gt;
&lt;BR /&gt;
The code I posted can process each drawing in several seconds. It is a magnitude faster then actually opening up a drawing or running any script file.  I've used this to process 3000 drawings at a time with no errors. Processing that many files in the interface will simply crash AutoCAD.</description>
      <pubDate>Fri, 26 Jan 2007 23:37:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872901#M27973</guid>
      <dc:creator>arcticad</dc:creator>
      <dc:date>2007-01-26T23:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change the ATTRIBUTE TEXT WIDTH FACTOR ON MANY DWGs!!!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872902#M27974</link>
      <description>MikeEng,&lt;BR /&gt;
&lt;BR /&gt;
This is something I used some years back to generate batch script files in a &lt;BR /&gt;
hurry. It's not pretty but it can save you some time. I hardcoded the script &lt;BR /&gt;
key strokes pointer file and just saved different versions of the routine &lt;BR /&gt;
with different names for each task the script was to do like &lt;BR /&gt;
change-sheet-number or whatever. The routine was done for 2002  but I think &lt;BR /&gt;
it still will work in 2006. I don't have that loaded to test sorry.&lt;BR /&gt;
&lt;BR /&gt;
In the sample you have a keystrokes.txt file this is the script operations &lt;BR /&gt;
that are passed / copied between each filename. just change the commands in &lt;BR /&gt;
the base script or pointer text file to your operations.&lt;BR /&gt;
I never got around to adding a browse for the base script pointer file or &lt;BR /&gt;
the save script file. If you do add these I'd love to see what you came up &lt;BR /&gt;
with.&lt;BR /&gt;
&lt;BR /&gt;
If nothing else it might give you some ideas if you like working script &lt;BR /&gt;
files as I do.&lt;BR /&gt;
&lt;BR /&gt;
Have a great day&lt;BR /&gt;
&lt;BR /&gt;
John Coon&lt;BR /&gt;
&lt;BR /&gt;
&lt;ARCTICAD&gt; wrote in message news:5465827@discussion.autodesk.com...&lt;BR /&gt;
as Fatty mentioned.&lt;BR /&gt;
&lt;BR /&gt;
If you want to do a "script" then lisp is better.&lt;BR /&gt;
&lt;BR /&gt;
The main reason is commands will not synchronize with VBA.&lt;BR /&gt;
&lt;BR /&gt;
What will happen is you will run a sendcommand and then VBA&lt;BR /&gt;
will issue the next command without waiting for Autocad to finish&lt;BR /&gt;
with the last command.&lt;BR /&gt;
&lt;BR /&gt;
The result is AutoCAD will not run VBA and Lisp at the same time&lt;BR /&gt;
and will just "hang". it won't crash but it won't run either.&lt;BR /&gt;
&lt;BR /&gt;
The code I posted can process each drawing in several seconds. It is a &lt;BR /&gt;
magnitude faster then actually opening up a drawing or running any script &lt;BR /&gt;
file.  I've used this to process 3000 drawings at a time with no errors. &lt;BR /&gt;
Processing that many files in the interface will simply crash AutoCAD.&lt;/ARCTICAD&gt;</description>
      <pubDate>Sat, 27 Jan 2007 13:11:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872902#M27974</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-01-27T13:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change the ATTRIBUTE TEXT WIDTH FACTOR ON MANY DWGs!!!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872903#M27975</link>
      <description>Thanks guys... &lt;BR /&gt;
&lt;BR /&gt;
Although I'm a little confused.&lt;BR /&gt;
&lt;BR /&gt;
I just ran this script on 500+ dwgs and it worked great.&lt;BR /&gt;
&lt;BR /&gt;
Here is a small snippet from the script generator:&lt;BR /&gt;
___________________________________________&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\100.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\101.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\102.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\103.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\104.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\105.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\106.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\107.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\108.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\109.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\110.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
_______________________________________&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Where quicken.dvb!changeattribute is defined as:&lt;BR /&gt;
&lt;BR /&gt;
Sub ChangeAttribute()&lt;BR /&gt;
&lt;BR /&gt;
For Each item In ThisDrawing.PaperSpace&lt;BR /&gt;
&lt;BR /&gt;
'&lt;BR /&gt;
'Look for a specific Block Reference"&lt;BR /&gt;
'&lt;BR /&gt;
    If TypeOf item Is AcadBlockReference Then ' get Attributes&lt;BR /&gt;
    &lt;BR /&gt;
        If Not TypeOf item Is AcadExternalReference Then&lt;BR /&gt;
                If item.Name = "TITLE_BLOCK" Then&lt;BR /&gt;
                &lt;BR /&gt;
                atts = item.GetAttributes&lt;BR /&gt;
                &lt;BR /&gt;
                    For Each att In atts&lt;BR /&gt;
                        If att.TagString = "MATERIAL" Then att.ScaleFactor = 0.55&lt;BR /&gt;
                    Next&lt;BR /&gt;
                &lt;BR /&gt;
                End If&lt;BR /&gt;
        End If&lt;BR /&gt;
    End If&lt;BR /&gt;
Next&lt;BR /&gt;
_____________________________&lt;BR /&gt;
I would like to learn LISP more but I am a little more (not zero) familiar with VBA.  To me LISP looks awful!!!!  LOL!!!!&lt;BR /&gt;
&lt;BR /&gt;
Where should I start?&lt;BR /&gt;
&lt;BR /&gt;
Thanks again.&lt;BR /&gt;
MSR</description>
      <pubDate>Mon, 29 Jan 2007 13:28:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872903#M27975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-01-29T13:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change the ATTRIBUTE TEXT WIDTH FACTOR ON MANY DWGs!!!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872904#M27976</link>
      <description>If you means about web here is the&lt;BR /&gt;
very best place to start:&lt;BR /&gt;
www.afralisp.net&lt;BR /&gt;
&lt;BR /&gt;
Trust me&lt;BR /&gt;
&lt;BR /&gt;
~'J'~</description>
      <pubDate>Mon, 29 Jan 2007 13:41:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872904#M27976</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-01-29T13:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change the ATTRIBUTE TEXT WIDTH FACTOR ON MANY DWGs!!!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872905#M27977</link>
      <description>MikeEng,&lt;BR /&gt;
&lt;BR /&gt;
How did you generate the script and file names ? That looks similar to &lt;BR /&gt;
results of sample I sent..  yours loops thru the files names somehow then &lt;BR /&gt;
inserts&lt;BR /&gt;
&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
&lt;BR /&gt;
then the next file name and saves as a script. is that coorect?&lt;BR /&gt;
&lt;BR /&gt;
John Coon&lt;BR /&gt;
&lt;BR /&gt;
&lt;MIKEENG&gt; wrote in message news:5466879@discussion.autodesk.com...&lt;BR /&gt;
Thanks guys...&lt;BR /&gt;
&lt;BR /&gt;
Although I'm a little confused.&lt;BR /&gt;
&lt;BR /&gt;
I just ran this script on 500+ dwgs and it worked great.&lt;BR /&gt;
&lt;BR /&gt;
Here is a small snippet from the script generator:&lt;BR /&gt;
___________________________________________&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\100.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\101.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\102.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\103.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\104.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\105.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\106.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\107.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\108.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\109.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
open&lt;BR /&gt;
h:\FW00107\PARTS\BEAMS\110.dwg&lt;BR /&gt;
-vbarun&lt;BR /&gt;
quicken.dvb!changeattribute&lt;BR /&gt;
qsave&lt;BR /&gt;
close&lt;BR /&gt;
_______________________________________&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Where quicken.dvb!changeattribute is defined as:&lt;BR /&gt;
&lt;BR /&gt;
Sub ChangeAttribute()&lt;BR /&gt;
&lt;BR /&gt;
For Each item In ThisDrawing.PaperSpace&lt;BR /&gt;
&lt;BR /&gt;
'&lt;BR /&gt;
'Look for a specific Block Reference"&lt;BR /&gt;
'&lt;BR /&gt;
    If TypeOf item Is AcadBlockReference Then ' get Attributes&lt;BR /&gt;
&lt;BR /&gt;
        If Not TypeOf item Is AcadExternalReference Then&lt;BR /&gt;
                If item.Name = "TITLE_BLOCK" Then&lt;BR /&gt;
&lt;BR /&gt;
                atts = item.GetAttributes&lt;BR /&gt;
&lt;BR /&gt;
                    For Each att In atts&lt;BR /&gt;
                        If att.TagString = "MATERIAL" Then att.ScaleFactor = &lt;BR /&gt;
0.55&lt;BR /&gt;
                    Next&lt;BR /&gt;
&lt;BR /&gt;
                End If&lt;BR /&gt;
        End If&lt;BR /&gt;
    End If&lt;BR /&gt;
Next&lt;BR /&gt;
_____________________________&lt;BR /&gt;
I would like to learn LISP more but I am a little more (not zero) familiar &lt;BR /&gt;
with VBA.  To me LISP looks awful!!!!  LOL!!!!&lt;BR /&gt;
&lt;BR /&gt;
Where should I start?&lt;BR /&gt;
&lt;BR /&gt;
Thanks again.&lt;BR /&gt;
MSR&lt;/MIKEENG&gt;</description>
      <pubDate>Mon, 29 Jan 2007 18:25:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872905#M27977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-01-29T18:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change the ATTRIBUTE TEXT WIDTH FACTOR ON MANY DWGs!!!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872906#M27978</link>
      <description>I used a little script generator called ScriptMate.  Basically you pick all of the files that you want to run the script commands on.  And then type your commands usually the commands are similar to:&lt;BR /&gt;
&lt;BR /&gt;
OPEN&lt;BR /&gt;
{FILENAME}&lt;BR /&gt;
**AND THEN DO SOMETHING**&lt;BR /&gt;
**COULD BE A CALL TO VBA OR LISP - WHATEVER**&lt;BR /&gt;
ZOOM&lt;BR /&gt;
EXTENTS&lt;BR /&gt;
REGEN&lt;BR /&gt;
QSAVE&lt;BR /&gt;
CLOSE&lt;BR /&gt;
&lt;BR /&gt;
The final step is to create the script.  ScriptMate generates a txt file which is a loop where every filepath from the files  selected in step one replaces the {FILENAME} part of the loop.&lt;BR /&gt;
&lt;BR /&gt;
So I guess that what I've been doing is using the script (text files) to run the same VBA code over and over again.  It seems to work great.&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: MikeEng&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: MikeEng

Message was edited by: MikeEng</description>
      <pubDate>Mon, 29 Jan 2007 18:52:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872906#M27978</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-01-29T18:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change the ATTRIBUTE TEXT WIDTH FACTOR ON MANY DWGs!!!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872907#M27979</link>
      <description>MikeEng,&lt;BR /&gt;
&lt;BR /&gt;
Never saw that one before but it looks flexiable. sorry I couldn't help&lt;BR /&gt;
&lt;BR /&gt;
&lt;MIKEENG&gt; wrote in message news:5467396@discussion.autodesk.com...&lt;BR /&gt;
I used a little script generator called ScriptMate.  Basically you pick all &lt;BR /&gt;
of the files that you want to run the script commands on.  And then type &lt;BR /&gt;
your commands usually the commands are similar to:&lt;BR /&gt;
&lt;BR /&gt;
OPEN&lt;BR /&gt;
{FILENAME}&lt;BR /&gt;
**AND THEN DO SOMETHING**&lt;BR /&gt;
**COULD BE A CALL TO VBA OR LISP - WHATEVER**&lt;BR /&gt;
ZOOM&lt;BR /&gt;
EXTENTS&lt;BR /&gt;
REGEN&lt;BR /&gt;
QSAVE&lt;BR /&gt;
CLOSE&lt;BR /&gt;
&lt;BR /&gt;
The final step is to create the script.  ScriptMate generates a txt file &lt;BR /&gt;
which is a loop where every filepath from the files  selected in step one &lt;BR /&gt;
replaces the {FILE&lt;BR /&gt;
NAME} part of the loop.&lt;BR /&gt;
&lt;BR /&gt;
So I guess that what I've been doing is using the script (text files) to run &lt;BR /&gt;
the same VBA code over and over again.  It seems to work great.&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: MikeEng&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: MikeEng&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: MikeEng&lt;/MIKEENG&gt;</description>
      <pubDate>Mon, 29 Jan 2007 19:54:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872907#M27979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-01-29T19:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change the ATTRIBUTE TEXT WIDTH FACTOR ON MANY DWGs!!!</title>
      <link>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872908#M27980</link>
      <description>You did help a great deal.  Thanks for the code!!</description>
      <pubDate>Mon, 29 Jan 2007 21:13:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/need-to-change-the-attribute-text-width-factor-on-many-dwgs/m-p/1872908#M27980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-01-29T21:13:15Z</dc:date>
    </item>
  </channel>
</rss>

