Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

autocad script help: Multiple attributes

Status
Not open for further replies.

MotownMutt

Civil/Environmental
May 23, 2001
9
autocad script help: Multiple attributes
--------------------------------------------------------------------------------
Does anyone know of a return character to use in an autocad script file for cases where a space won't work?

For example the following line is supposed to insert a block with the attributes:

WN: GLD-7A
CR: 630

WN: GLD-8A
CR: 928

however, when run, the script instead results in:

WN: GLD-7A 630
CR: INSERT GTE 17037.634,9091.339 1 1 0 GLD-8A 928

Here is the code:


INSERT GTE 17037.634,9091.339 1 1 0 GLD-7A 630
INSERT GTE 17037.634,9091.339 1 1 0 GLD-8A 928


Thanks,
 
Replies continue below

Recommended for you

Since attribute text can accept spaces, the block insert interprets spaces in script file as spaces and not returns. Instead use returns in your script file, such as:

Insert GTE x,y 1 1 0
GLD-7A
630
Insert ......
 
That's too painfully obvious! I ended up using the vbCr character, since I'm using VBA to write the scripts. Thanks for stating the obvious!

mongrel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor