sendStringToExecute question?

sendStringToExecute question?

D_D_K
Advocate Advocate
889 Views
3 Replies
Message 1 of 4

sendStringToExecute question?

D_D_K
Advocate
Advocate

Hi, please see my image:

 
 

image.png

I'm trying to use code that creates 3 entities in the image.

To generate the red arc(only know the radius) , a viable way for me right now is to use sendstringtoexcute + fillet,

My question is:

1. Is there another way to do this? (although it could be more complicated but I think it could be faster).

2. I want to control the history command if I use sendstringtoexcute because if doing this more than once they really look messy (can I prevent it from being printed to the history commandline?)

 

Thanks in advance!

0 Likes
890 Views
3 Replies
Replies (3)
Message 2 of 4

Norman_Yuan
Mentor
Mentor

Let us see: you have 2 known entities: a circle and an arc, so, you of course know their center, radius. Then you want to create an arc with known radius, which tangentially connect the two. So, to create the connecting arc, you simply need to do some math/geometry homework to calculate the center and 2 tangent points of the arc. I think that is what AutoCAD does behind the commnd "FILLET". There is really no need to use sendStringToExecute to do this simple math work (and even to have to deal with command history at all).

 

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 3 of 4

Norman_Yuan
Mentor
Mentor
0 Likes
Message 4 of 4

D_D_K
Advocate
Advocate

Hi Mr. @Norman_Yuan ,

from your instruction I did it.

but sendstringtoexcute can be useful if the blue arc is replaced with blue line or blue spline (in case of multiple types tangent).

Can I avoid the commandprompt being printed to the commandline? 

I tried from this post but it doesn't seem to work.

 

0 Likes