Jump to content

Recommended Posts

Posted

Hi,

 

 

I was wondering if it is possible to make adjustments to tittle blocks across multiple drawings.

 

 

Such as changing a Rev A to a Rev B

 

 

I have to update about a hundred drawings and was wondering if there is some sort of Macro that I can use to do this without manually going into each one.

 

 

Any help would be much appreciated.

 

 

Thanks!!

Posted

You can use a script to change them all. Would you like me to help you with that or do you know how to make a script already? If you know how to write a script, use the -ATTEDIT command.

Posted

as for the current situation, I'm unsure of a way to accomplish this.

In the furture I would suggest using sheetsets, and have the title block attribute have a field to the sheetset data. This would allow the data to be changed in the sheetset and reflected in the drawings.

 

http://www.ejsurveying.com/Articles/UsingSSM-Fields.aspx

Posted

Thanks for the suggestions i really appreciate them.

 

TUNS would you mind walking me through the steps of how to use a SCRIPT?

 

Thanks

Posted

Well, you need both a script and some sort of program to run the script on multiple files. The script would look something like this:

-attedit
y

[color="red"]AttributeName[/color]

0,1500
1500,0

v
r
[color="red"]NewValue[/color]

N

 

Copy and paste this into notepad and save it as a .SCR and change the two items in red to whatever you need them to be. As a means of running this script you can probably Google a program to do it or you can use a method that Mwade has shown me. The disadvantage to the method he has given me is it doesn't work on files that have a space in their names. If you'd like to know his way of doing it I will explain that. If you want to download a program to run the script that's fine too.

Posted
as for the current situation, I'm unsure of a way to accomplish this.

In the furture I would suggest using sheetsets, and have the title block attribute have a field to the sheetset data.

+1, or XREF your Titleblock, alternatively, using a "Sheet Template" with sheet specific text placeholders already set.
Posted
+1, or XREF your Titleblock, alternatively, using a "Sheet Template" with sheet specific text placeholders already set.

Agreed. You should set up your future drawings with this so that you wont have this situation again. To fix what you already have, this method would take more time. For right now a script is faster.

Posted

TUNS, would you mind explaining the other method to me?

Also most of these drawings are coming from another source. How would I check if perhaps a "Sheet template" was already used?

 

Thanks again for the help

Posted

Well, first you should create a folder in your C: drive called "Scripts" or something. Try not to include spaces in the folder name. After that copy and paste this into notepad:

FOR %%V IN ([color="blue"]C:\AutoCADscripts\Batchedit\[/color]*.dwg) DO start "T" /w "[color="green"]C:\Program Files\Autodesk\AutoCAD 2012\acad.exe[/color]" %%V /b "C:\AutoCADscripts\[color="red"]Script[/color].scr"

Save this as a .bat file.

 

Firstly, the part in blue is the path to the folder that I told you to make earlier. Make sure it matches whatever you named your folder. Second, the part in green is the location of your AutoCAD program. Make sure that path is also correct. Third, the part in red is the script name. Change that part to match the name of your script.

 

After you have done all this, move the drawings to the folder you created and then run the .bat file. It should run the script on every file in the folder. Just remember that it does not work on files that have a space in the name i.e. My Drawing.dwg. I can't figure out how to make it work on folders on a network either which is why you need the folder on your own computer.

Posted

Pretty sure seen a post by Lee-mac about his attribute replace program it allows you select multiple drawings and makes the changes using activex so no need to open dwgs. www.lee-mac.com

 

Using a script will open every dwg but its suprising how fast that can be.

 

Any way go to start bottom left,

CMD

then something like cd K:\mycadfiles\project56\current dwgs

DIR *.dwg >DIRLST /b this will make a txt file list of all your dwgs in that directory

 

open in excel add columns like A=open B=dwg name D=(load "makemychanges") e=close y F=concatenate (a,b,c,d,e)

Copy column F into notepad thats your script all done

 

note your dgws with spaces make them "my dwg with spaces" add the " it will then work in a script

Posted

This brings back memories, I used to run a batch/script every night on a network, I think it used to check for updated drawings, move them to the correct folders and move old drawings into an archive, anyways it ran over a network and ran for 6 to 8 hours each night (big company thousands of drawings :D). I'll have a dig about sometime if I remember.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...