Jump to content

Recommended Posts

Posted

Hi,

Would it be possible to create a LISP routine that can take 300-1000 AutoCAD files and rename dimstyle,textstyle automatically?

 

 

: Cry:: Cry:

  • Replies 26
  • Created
  • Last Reply

Top Posters In This Topic

  • razara

    15

  • neophoible

    3

  • BIGAL

    2

  • ttray33y

    2

Posted

to be more precise; would you please explain me how can I change 1000 seperated block's dimstyle and textstyle with lisp code? The blockes have to be asunder of each one.

Posted (edited)

key command is -rename

foreach dim style you can use -> (command "-rename" "D" "OLDNAME" "NEWNAME")

foreach text style you can use -> (command "-rename" "S" "OLDNAME" "NEWNAME")

 

sample:

(defun c:RENDS()
(command "-rename" "D" "OLDNAME" "NEWNAME")
(command "-rename" "S" "OLDNAME" "NEWNAME")
(princ)
)

Edited by ttray33y
Posted

Just add the lisp to acaddoc.lsp then you need to make a script to do the rest.

open dwg1 (c:rends) close Y
open dwg2 (c:rends) close Y
open dwg3 (c:rends) close Y

Posted

Thank you for your interest , but this is not exactly what I wanted , the lisp code block can select a folder should be opened and must be able to collectively process collectively select blockl'ar I want from this folder.

Posted

I can hardly understand what you were saying sir.

Posted

Current Dimstyle names are...

 

ekp-ölçü

ISO-25

Standart

 

They need to all be altered to...

 

GRC-MM

 

 

There's a ton of AutoCAD files & blocks, so I really appreciate the help doing this faster.

 

Thanks!

 

http://we.tl/cc1ZMAbXee

Posted

We have answered your question you need to write a script ! There are script generators out there check out http://www.lee-mac.com.

 

I just know my way around the OS using old fashioned DOS commands to make a text file of dwg names then use Word and make my scripts most times say 4-5 minutes and can have hundreds.

 

Do more googling and search here this is not a new topic "Modify multiple drawings" etc.

Posted

Hi raza,

 

 

try to use only, the 'qsave' and 'close' commands...

 

 

Henrique

Posted

razara: You have already started a thread about this topic. Double posting the same questions here will only lead to confusion and make the course of the conversation difficult to follow.

Posted

Can you explain a little more what is 'Add Open Fix Next Close'...

 

Henrique

Posted

These commands "Add open fix next" next" will be written in this line, and how to work this question ?

Posted

hmsilva asked for an explanation of what you are trying to do. Please explain....in detail.

Posted

Hi Hmsilvia and ReMark , Would it be possible to create a scrit or LISP routine that can take 300-1000 AutoCAD files and change dimstyle,textstyle automatically?

 

You can see at that link about the problem:http://autode.sk/1DEeRoV

 

Thanks

Posted

Please stop creating new threads and adding on posts to old threads for this one question.

 

It only makes things confusing for everybody.

 

I have merged the other thread and moved the other posts here.

 

It might help is you took all the time you are wasting posting everywhere and clearly explain your problem.

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