Script ?

Script ?

Anonymous
Not applicable
1,026 Views
4 Replies
Message 1 of 5

Script ?

Anonymous
Not applicable

Hi All

Anybody please look at this attached script file which does not work. I want to put these dimensions in a profile drawing labeling slopes or dias.

Which i extract from an excel file.

Thanks in advance

 

AAK

0 Likes
Accepted solutions (1)
1,027 Views
4 Replies
Replies (4)
Message 2 of 5

steven-g
Mentor
Mentor
Your problem is when a script expects text input, it doesn't know when the text finishes, so you have to use a new line (this problem occurs anywhere text is used within scripts). Try the following dimlinear 0,000 50,00 t TEXT-1 0,0 dimlinear 105,0 155,0 t TEXT-2 0,0 dimlinear 155,0 210,0 t TEXT-3 0,0 dimlinear 210,0 260,0 t TEXT-4 0,0 dimlinear 260,0 311,0 t TEXT-5 0,0 dimlinear 311,0 362,0 t TEXT-6 0,0 dimlinear 362,0 414,0 t TEXT-7 0,0 dimlinear 414,0 475,0 t TEXT-8 0,0
0 Likes
Message 3 of 5

steven-g
Mentor
Mentor
Ignore the last post and look at the attached file Sorry doesn't work either. Our system at work (citrix apparently) blocks any attachments and completely mucks up any formatting. All you need do is when the text items finish create a new line for the last 0,0 input
0 Likes
Message 4 of 5

ВeekeeCZ
Consultant
Consultant
Accepted solution

I think @steven-g's sugestion is good. Your script has to look like this:

 

dimlinear 0,000 50,00 t TEXT-1
0,0 
dimlinear 105,0 155,0 t TEXT-2
0,0 
dimlinear 155,0 210,0 t TEXT-3
0,0 

This can be done in Excel in one row where the enter is char(10) function. But after that you cannot paste the code into command line directly, because Excel wraps the text into quotation marks. So copy that into Notepad first, erase surroundings quotation marks and then paste it into Autocad.

0 Likes
Message 5 of 5

steven-g
Mentor
Mentor

@ВeekeeCZ Thats exactly what I was trying to show Smiley Wink unfortunately our system at work sabotages all attempts.

0 Likes