mitch_au83 Posted August 23, 2013 Posted August 23, 2013 hi all, is there a way to draw an arc(start,centre,length) clockwise using script? In manual input you can hold down ctrl to change direction but cant do that with in the script?? im using autocad 2014lt thanks in advance Quote
Tuns Posted August 23, 2013 Posted August 23, 2013 (edited) Should be possible... Can you describe what you mean a bit better by "clockwise"? I'm sure you mean this: ^C^C_arc;\_c;\_l;^\; I should explain what I did so you know for future use. All i did was I added ^\ after the _l in the original macro for the command. This ^ is essentially using the control key to a macro and \ just asks for a user input. So it is pretty much the same as holding the control key and then clicking. If you need anything else don't be afraid to ask. Edited August 23, 2013 by Tuns Quote
Tuns Posted August 23, 2013 Posted August 23, 2013 (edited) Ok so that has a bug for me at least. It's crashed my ACAD 2x now so let me try to sort it out before you use it. I don't think its possible to actually do what you asked for... I'll keep trying but no promises. Edited August 23, 2013 by Tuns Quote
steven-g Posted August 23, 2013 Posted August 23, 2013 If you look at the help file it says arcs are always drawn counterclockwise, so you might be stuck with that, the ctrl key option may not be available to a script, but if you are putting the coordinates for the start and center points into the script, you could always use those same points to mirror your arc once it is drawn, something like ^C^Carc;10,10;C;5,5;L;10;MI;L;;10,10;5,5;Y; failing that then it gets complicated, but should be doable to use picked points but storing those values into variables. It would be simpler if you are using picked points, to run your script and then tag the mirror option onto the end of the script and pick points again. Quote
Tuns Posted August 23, 2013 Posted August 23, 2013 If you look at the help file it says arcs are always drawn counterclockwise, so you might be stuck with that, the ctrl key option may not be available to a script, but if you are putting the coordinates for the start and center points into the script, you could always use those same points to mirror your arc once it is drawn, something like ^C^Carc;10,10;C;5,5;L;10;MI;L;;10,10;5,5;Y; failing that then it gets complicated, but should be doable to use picked points but storing those values into variables. It would be simpler if you are using picked points, to run your script and then tag the mirror option onto the end of the script and pick points again. That would be a pain though... I think he just wants to click the arc button and go and I really don't find it possible.. I would just stick to holding down the control key. If your looking for an arc that "looks" counter clockwise then you have to draw it from right to left not left to right. Quote
neophoible Posted August 23, 2013 Posted August 23, 2013 hi all,is there a way to draw an arc(start,centre,length) clockwise using script? In manual input you can hold down ctrl to change direction but cant do that with in the script?? im using autocad 2014lt thanks in advance Welcome! Interesting question. The Ctrl option for this may be new, as it does not work for me in 2012. Perhaps they've added a system variable for this as well? If not, be sure to put it on the Wish List. Quote
Tuns Posted August 23, 2013 Posted August 23, 2013 Welcome! Interesting question. The Ctrl option for this may be new, as it does not work for me in 2012. Perhaps they've added a system variable for this as well? If not, be sure to put it on the Wish List. There is no system variable for it... sadly. Quote
SLW210 Posted August 23, 2013 Posted August 23, 2013 On 2011 AutoCAD, if you're center point is clockwise (to the right) of the start point, you draw a clockwise arc. Quote
Tuns Posted August 23, 2013 Posted August 23, 2013 On 2011 AutoCAD, if you're center point is clockwise (to the right) of the start point, you draw a clockwise arc. Exactly. It draws it in a counter clockwise direction but it looks clockwise when drawn. Quote
SLW210 Posted August 23, 2013 Posted August 23, 2013 Nevermind, I thought the OP just wanted to draw them clockwise. The Arc itself is still counterclockwise. Ctrl doesn't work in AutoCAD 2011. Quote
mitch_au83 Posted August 23, 2013 Author Posted August 23, 2013 Thanks heaps for your replies. I won't be back on it til Monday. Ill try and screen shot what I'm after. I basically need an arc that goes from the start point (which is known) to the right hand side, I have the centre point and length but not the end position. I usually do it manually with a circle and trim Thanks heaps again. Quote
Tuns Posted August 26, 2013 Posted August 26, 2013 ^C^Cucs;x;180;arc;\c;\_l;\ucs;world; Problem solved. If that's not what you want then I don't think you can be helped. Quote
steven-g Posted August 26, 2013 Posted August 26, 2013 I like that, clever bit of thinking, it works great if you are picking the points. Just bear in mind though if you are using coordinates you will need to adjust them to the new UCS Quote
Tuns Posted August 26, 2013 Posted August 26, 2013 Yeah I know. I made it assuming he was picking points. Even then, I wouldn't imagine typing out the start point. The length is a lot more understandable but the UCS shouldn't effect that. If you specify the start point or center point by typing an input, make your Y coordinate negative for a positive input and vice versa. That's the only trick to it. The "ucs;world;" will change it back to its original settings so after your done with your arc that switch wont occur and everything will be as it was before you drew the arc. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.