rohgahh Posted November 24, 2015 Share Posted November 24, 2015 Hi I have a template and there are 3 blocks with text 1000, 1001, 1002 With a script, I can change them with attedit to the numbers I want. However, one off them i need to change to: To sheet 101 just like that, with an enter. >> "D:\change_frame\scripts\auto_pag.scr" echo -attedit >> "D:\change_frame\scripts\auto_pag.scr" echo( >> "D:\change_frame\scripts\auto_pag.scr" echo( >> "D:\change_frame\scripts\auto_pag.scr" echo( >> "D:\change_frame\scripts\auto_pag.scr" echo( >> "D:\change_frame\scripts\auto_pag.scr" ECHO 410,291.0 >> "D:\change_frame\scripts\auto_pag.scr" ECHO -40,-40,0.0 >> "D:\change_frame\scripts\auto_pag.scr" echo. >> "D:\change_frame\scripts\auto_pag.scr" echo V >> "D:\change_frame\scripts\auto_pag.scr" echo C >> "D:\change_frame\scripts\auto_pag.scr" echo 1002 >> "D:\change_frame\scripts\auto_pag.scr" echo To sheet 101 With this code, it will be all in one line. What do I have to write instead of "To sheet 101" to have what I want? Thanks in advance Quote Link to comment Share on other sites More sharing options...
YZ Posted November 26, 2015 Share Posted November 26, 2015 This is how I understand what you are saying. Instead of "To sheet 101" You want "To sheet 101" Is that correct? What does your .scr do? Is it entering an attribute? This may not help, but just today I learned that you can add or remove "new line returns" in Microsoft word using "^p". Say you want to turn ; into a new line, just find and replace ";" with "^p". Never tried it in AutoCAD, and I don't have a script ready to test it quickly, but maybe "To sheet ^p 101"? Quote Link to comment Share on other sites More sharing options...
BIGAL Posted November 26, 2015 Share Posted November 26, 2015 An option when adding attributes is to tick multi line, you may need to redefine the block use Attsync to update. Checked it works 3 lines made 2 etc. Command: -ATTEDIT Edit attributes one at a time? [Yes/No] <Y>: Enter block name specification <*>: aaa Enter attribute tag specification <*>: Enter attribute value specification <*>: Select Attributes: 1 found Select Attributes: 1 attributes selected. Enter an option [Value/Position/Height/Angle/Style/Layer/Color/Next] <N>: v Enter type of value modification [Change/Replace] <R>: Enter new attribute value: asdf Enter next line or <done>: wert Enter next line or <done>: Enter an option [Value/Position/Height/Angle/Style/Layer/Color/Next] <N>: word !! ^p return ^t tab a smart way dwg1 dwg2 Replace in word ^p open now open dwg1 open dwg2 ^p zoom E ^p open dwg1 zoom E open dwg2 zoom E mix and match ^p close y ^p Open Quote Link to comment Share on other sites More sharing options...
rohgahh Posted November 26, 2015 Author Share Posted November 26, 2015 Thx, Bigal. I can work with "Replace" instead of "Change". However, I tried using ^p in the Autocad LT, just like YZ said, and didn't worked. Thank you all 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.