Multi text positions (Coordinates) on lisp

Multi text positions (Coordinates) on lisp

Anonymous
Not applicable
3,322 Views
8 Replies
Message 1 of 9

Multi text positions (Coordinates) on lisp

Anonymous
Not applicable

Hello everyone

 

I have a big problem on positioning (can be coordinate but i can't) objects on lisp. And I think that it will be easier if use coordinates but I cant get how to add coordinates specially on texts. So I'm using the polar function for now and I attached picture, .lsp file and cad file. If there is any suggestion that will be helpful.

Note: The justify of texts will be shown on cad file

 

Thanks in advance

Sincerely,

Enkhtaivan Temuulen

New Mongol Kosen

 

0 Likes
Accepted solutions (1)
3,323 Views
8 Replies
Replies (8)
Message 2 of 9

ВeekeeCZ
Consultant
Consultant

Some possible things to do with text:

 

(setq strlot "a-")

(command "text" "j" "tl" POINT2 0 "a-")

(command "text" "j" "tl" POINT2 0 "%%C")

(command "text" "j" "tl" POINT2 0 (strcat strlot "%%C"))

 

BTW. Did you try to use MULTILEADER with block style for that? I'm not sure if that's possible, but some fella from Autocad's forum might help you to figure out. Then I would be so much easier to work with. Mleaders are quite powerful entities.

0 Likes
Message 3 of 9

dbhunia
Advisor
Advisor

Try this.......

 

Roughly modified your code.... hopefully you can manage the rest.....

 

 

 


Debashis Bhunia
Co-Founder of Geometrifying Trigonometry(C)
________________________________________________
Walking is the First step of Running, Technique comes Next....
0 Likes
Message 4 of 9

Anonymous
Not applicable

Sorry for late feedback. Havent tried the mleader  and i have no experience about block style yet. But thanks, I'll try it when I started using block styles on lisp.

0 Likes
Message 5 of 9

Anonymous
Not applicable

Sorry for late feedback. I have tried your code and its almost done. There is only one problem that I cant recognize. When choosing the direction (as shown in attachments: picture1, picture2) some "distance" follows around mouse cursor, I've tried it 2 variants. Variant number one (shown picture1) is much lower "distance"(its bit hard to use, zooming and set lower "distance") and the result one comes (the success result). And the variant number two (shown picture2) is bit higher "distance" from variant one. Unfortunately it results irregular text coordinates as the result two (shown picture3). If success the higher distance (setting direction without zooming) it will be done completely. 

 

0 Likes
Message 6 of 9

Anonymous
Not applicable

Lisp file

0 Likes
Message 7 of 9

dbhunia
Advisor
Advisor
Accepted solution

Try with Manipulation of "OSMODE" setting.......

 

 


Debashis Bhunia
Co-Founder of Geometrifying Trigonometry(C)
________________________________________________
Walking is the First step of Running, Technique comes Next....
Message 8 of 9

Anonymous
Not applicable

Done. That was the solution. My osmode set into random value somehow. I changed it to <0>. And problem solved. Thanks for your advice. 

0 Likes
Message 9 of 9

royner.tineoreyes
Explorer
Explorer

Thanks, it help me too

0 Likes