Jump to content

Recommended Posts

Posted

Hi,

Greeting from Malaysian Autocad user. Right now i'm facing with a problem regarding

300+ file of dwg. I want to create a single file containing all of the project titles into one

file. That file is named List Of Drawing.dwg.

 

How can i auto insert all those 200 dwg into that one dwg.

 

Example:

 

file01.dwg (PT.oo1),file02.dwg (PT.oo2)file03.dwg (PT.oo3).

Above is individual files and in the braket is the project title.

 

Any LISP,VBA or DDE function that can insert all those project titles

into one file?

 

What if i changed the project title "FROM" the main file? Will it auto-change

the project title of the file01.dwg,file02 etc? Can it be done?

 

Any idea? Tried using Hyperlink but it just opened the file not the text that i need

to change.

 

Thank you for your time.

Posted

Have a look at dataextraction or the Sheet set manager.

Posted

I put this together a week or so ago. It will insert multiple images and place on an appropriate layer (based on image name) at even intervals, along the Y-Axis. It could easily be modified to insert XRefs however.

Posted

Again the old fashioned script would do what you want inserting 300 dwgs

 

You just need to write down the steps that autocad has to do

 

something like

 

_xattach dwg1 0,0

_xattach dwg2 100,0

_xattach dwg1 200,0

 

etc Scripting and how to make the script file has been done lots of times search here for BIGAL and script also how to edit in Word

 

It would take about 15mins to make the script file for 300 dwgs.

 

Using xrefs means you can do edits both ways v's inserting a block/dwg

Posted

Thank you for fast replies.

 

BIGAL, i dont quite understand about scripting. Please advice or you can point me to the right thread.

 

I'm on Autocad 2007.

 

Again, thank you.

 

Sheeplag

Posted

You basicly need a txt file with a list of all your dwgs in it.

 

One way is to go to "start" bottom left "run Command"

Operating system screen pops up using

CD \mydwgs\project67 etc as example find the correct directory that contains your drawings

 

then just dir *.dwg >mydwgs.txt /b

this will make a text file with your dwgs in it you can edit it in say excell or I use word to change the filenames to what you want dwg1.dwg now becomes

 

insert dwg1.dwg 0,0 keep going

insert dwg2.dwg 100,0

insert dwg3.dwg 200,0

 

Save it as a script mydwgs.scr from acad "script mydwgs" it should then run.

 

Theres lots if stuff here about making file lists using a program just search a bit more there was a good one a few days ago can not remember the subject though just start with "script", "opening files", "automating" "open drawings" etc

Posted
You basicly need a txt file with a list of all your dwgs

 

Maybe my English is the main problem here. I have 300 files and in each file contains a text/Mtext. Those text/Mtext is my project title. These text/Mtext is what i want to use to put into a single file ( List Of Drawings).

 

Example:

 

Road_profile01.dwg (mText = Chainage 00.00 to 10.00)

Road_profile02.dwg (mText = Chainage 10.00 to 20.00)

 

I'm not listing the file name but the text/Mtext "in" the file.

 

I do hope someone can help me out. To tell the truth i'm dealing with 2K of dwg at the moment and it keeps piling up.

Posted

Hi Sheeplag,

 

The attached should hopefully help you out, it will insert all blocks in a directory and subdirectories into the drawing at 0,0,0.

 

Alternatively, there is this, if you have a data file.

 

Let me know how you get on,

 

Lee

Insert All at Origin.lsp

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...