Jump to content

Add multiline text with Attedit


rohgahh

Recommended Posts

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

Link to comment
Share on other sites

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"?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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