razara Posted April 2, 2015 Share Posted April 2, 2015 Hi, Would it be possible to create a LISP routine that can take 300-1000 AutoCAD files and rename dimstyle,textstyle automatically? : Cry:: Cry: Quote Link to comment Share on other sites More sharing options...
razara Posted April 2, 2015 Author Share Posted April 2, 2015 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. Quote Link to comment Share on other sites More sharing options...
ttray33y Posted April 3, 2015 Share Posted April 3, 2015 (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 April 3, 2015 by ttray33y Quote Link to comment Share on other sites More sharing options...
BIGAL Posted April 3, 2015 Share Posted April 3, 2015 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 Quote Link to comment Share on other sites More sharing options...
razara Posted April 3, 2015 Author Share Posted April 3, 2015 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. Quote Link to comment Share on other sites More sharing options...
ttray33y Posted April 3, 2015 Share Posted April 3, 2015 I can hardly understand what you were saying sir. Quote Link to comment Share on other sites More sharing options...
razara Posted April 3, 2015 Author Share Posted April 3, 2015 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 Quote Link to comment Share on other sites More sharing options...
BIGAL Posted April 3, 2015 Share Posted April 3, 2015 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. Quote Link to comment Share on other sites More sharing options...
razara Posted April 6, 2015 Author Share Posted April 6, 2015 Hi Friends and lee mac My Problem ScriptWriter add to code Help Me ? Problem add picture Links http://i.imgur.com/YGSDQyd.jpg Quote Link to comment Share on other sites More sharing options...
razara Posted April 6, 2015 Author Share Posted April 6, 2015 Hi Everybody ; My problem,script to "ScriptWriterV1-2" Script Line add command Help me ? problem wiev links : http://i.imgur.com/YGSDQyd.jpg Quote Link to comment Share on other sites More sharing options...
hmsilva Posted April 6, 2015 Share Posted April 6, 2015 Hi raza, try to use only, the 'qsave' and 'close' commands... Henrique Quote Link to comment Share on other sites More sharing options...
razara Posted April 6, 2015 Author Share Posted April 6, 2015 sample code http://i.imgur.com/PxODcxV.png Quote Link to comment Share on other sites More sharing options...
razara Posted April 6, 2015 Author Share Posted April 6, 2015 I want similar to this code this link http://i.imgur.com/PxODcxV.png Quote Link to comment Share on other sites More sharing options...
razara Posted April 6, 2015 Author Share Posted April 6, 2015 I want similar to this code this link http://i.imgur.com/PxODcxV.png Quote Link to comment Share on other sites More sharing options...
ReMark Posted April 6, 2015 Share Posted April 6, 2015 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. Quote Link to comment Share on other sites More sharing options...
hmsilva Posted April 6, 2015 Share Posted April 6, 2015 Can you explain a little more what is 'Add Open Fix Next Close'... Henrique Quote Link to comment Share on other sites More sharing options...
razara Posted April 6, 2015 Author Share Posted April 6, 2015 These commands "Add open fix next" next" will be written in this line, and how to work this question ? Quote Link to comment Share on other sites More sharing options...
ReMark Posted April 6, 2015 Share Posted April 6, 2015 hmsilva asked for an explanation of what you are trying to do. Please explain....in detail. Quote Link to comment Share on other sites More sharing options...
razara Posted April 6, 2015 Author Share Posted April 6, 2015 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 Quote Link to comment Share on other sites More sharing options...
SLW210 Posted April 6, 2015 Share Posted April 6, 2015 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.