Login  Register

How to use text command in command file?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

How to use text command in command file?

Thanatoast
2 posts
Hello,
I am trying to use a command file to create a drawing. I got it to draw some lines, but I have had no luck with the text command.
I made a simple command file with only the following: text "Test",10,10,2,0 
I believe this should place the word Test at 10,10 with a height of 2 at an angle of 0, but it is not working.
Any spaces in the command line are removed when it is loaded.
(IE: I tried: text "test" 10,10 2 0 with the loaded result: text"test"10,1020).
Additionally the command seemingly does nothing with no error indicated.
What is the proper way to use the text command?
Thanks!
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: How to use text command in command file?

flywire
294 posts
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: How to use text command in command file?

Thanatoast
2 posts
Thank you for answering. I looked at that page and see that now I should be using semicolons.
I tried a command file with only: text;"Foo Bar";1,1;2;0
Which resulted in it opening the text dialog with text from last time I tried to use it already filled in. (NOT Foo Bar.)
I also tried typing the above directly and got similar results.
Whatever else I try, it just opens the text dialog.

Is there some place that explains the required format of the text command?
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: How to use text command in command file?

dxli
2025 posts
The current "Command" framework doesn't support usages like this.

The good news is that emanuel is working on scripting support, so LC can be used with python or lisp.


Thanatoast wrote
Thank you for answering. I looked at that page and see that now I should be using semicolons.
I tried a command file with only: text;"Foo Bar";1,1;2;0
Which resulted in it opening the text dialog with text from last time I tried to use it already filled in. (NOT Foo Bar.)
I also tried typing the above directly and got similar results.
Whatever else I try, it just opens the text dialog.

Is there some place that explains the required format of the text command?