Jump to content

1000, separate block once all dimstyl and textstyle s the way of change with lisp ?


razara
 Share

Recommended Posts

Hi,

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

 

 

: Cry:: Cry:

Link to comment
Share on other sites

  • Replies 26
  • Created
  • Last Reply

Top Posters In This Topic

  • BIGAL

    2

  • neophoible

    3

  • ttray33y

    2

  • razara

    15

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

 Share


×
×
  • Create New...