- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
You are probably not a fan of using Excel to generate AutoCAD script, But please provide some guidance for the following.
I am having great difficulty executing two consecutive commands pasted to the AutoCAD command line. I assume there is a need to escape/terminate the first command before executing the second command.
For example: See details below)
If I cut & paste cell B3 to AutoCAD it sets the text style to style4 as expected.
If I cut & paste cell B4 to AutoCAD it prints the text correctly.
But If I cut & paste cell B6 (concatenated B3 & B4) to AutoCAD it fails.
I have tried terminating the style command with semicolon, carriage returns, spaces, etc. without success. I am able to draw lines, print some text, etc. correctly, using innovative characters between commands, but not sure if that is the most efficient technique.
FYI - The program utilizes survey data to plot boundary lines. etc. - N 7° 35' 32'' E.
Any help greatly appreciated.
Excel....
Cell B3 ="textstyle"&" "&"style4"
Cell B4 ="-Text"&" "&"20,30"&" "&25&" "&"My text here"
Cell B5
Cell B6 =B3&B4
Copy & Paste Cell B3 (Works)
AutoCAD response:
Command: textstyle
Enter new value for TEXTSTYLE <"style4">: style4
Copy & Paste Cell B4 (Works) - Displays text correctly
AutoCAD response:
Current text style: "style4" Text height: 4.0000 Annotative: No Justify: Left
Specify start point of text or [Justify/Style]: 20,30
Specify rotation angle of text <25>: 25
Enter text: My text here
Copy & Paste Cell B6 (Fails)
AutoCAD response:
Command: textstyle
Enter new value for TEXTSTYLE <"style4">: style4-Text 20,30 25 My text here
Cannot set TEXTSTYLE to that value.
*Invalid*
Solved! Go to Solution.