Jump to content

Lisp or Script file for inserting block into multiple dwgs.


Recommended Posts

Posted

I am sort of new to lisp and I am trying to figure out a way that I can insert a block at a certain point (example: 0,0,0) into multiple drawings at once. I have found a way that I can remove a block from multiple drawings at once but not a way to insert one. Any help would be greatly appreciated!

Posted

I have tried to work Lee Mac's Point Manager Program with the ObjectDBXWrapper program and I can not seem to get it to work. I am not an experienced person with programming or lisp so that could be most of my problem...:?

Posted

You could use my Script Writer program with a Script Line similar to the following:

_.open *file* _.-insert "YourBlockName" _S 1 _R 0 _non 0,0,0 _.qsave _.close

The above assumes that your block is not attributed, or that you have ATTREQ=0.

Posted
You could use my Script Writer program with a Script Line similar to the following:

_.open *file* _.-insert "YourBlockName" _S 1 _R 0 _non 0,0,0 _.qsave _.close

The above assumes that your block is not attributed, or that you have ATTREQ=0.

 

For some reason when I load the script and run it. It only opens the file that I currently have open read only. It doesn't insert the block and doesn't open the rest of the files in the directory...

Posted

For some when I run the script it only opens one drawing (the one I have active). It is not opening the rest of the dwgs in the directory or inserting the block that I have named. I have entered it like this (_.open *file* _.-insert "AS-BUILT" _S 1 _R 0 _non 0,0,0_.qsave _.close) any ideas? Thanks so much for the help Lee Mac!

Posted

I also tried to run the script that you have posted on your website with the circle. (_.open *file* _.circle 0,0,0 5 _.save _Y _.close) It also is not working for me.

Posted
_.open *file* _.circle 0,0,0 5 _.save  _Y _.close

Posted

_.open *file* _.-insert "AS-BUILT" _S 1 _R 0 _non 0,0,0 _.qsave _.close

Sorry for posting the code like I did! Still learning!:D

Posted

You won't be able to process the current drawing, as open drawings are rendered read-only to a Script file - I would suggest copying the files you wish to process to a separate folder and running the program from within a new blank drawing. If you still experience issues, please post the command-line history.

Posted

Worked like a charm! I should have known better! Thanks a ton Lee Mac!

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