Fuge Posted June 12, 2002 Share Posted June 12, 2002 You can't pick tool modes in VS. Fuge Quote Link to comment
TiTaNiuM sAMuRai Posted June 13, 2002 Author Share Posted June 13, 2002 Is there a way to control the tool mode? For example, I want to draw a circle by specifying centre and second point, instead of an oval bounded by a box (defined by two coordinates). Quote Link to comment
TiTaNiuM sAMuRai Posted June 14, 2002 Author Share Posted June 14, 2002 Is there a way to draw a CIRCLE in VS? Quote Link to comment
MullinRJ Posted June 15, 2002 Share Posted June 15, 2002 As you know, there are 2 kinds of circles; the constrained Oval, and the 360? Arc. Which form do you want? It is easy to program a circular Oval in VS using the Center/Radius method, you just have to do a little math. If you have the Center point and the Second point, calculate the distance betwen both points, that is your Radius. Then fill in the blanks. Rad := Distance(Xcen, Ycen, Pt2X, Pt2Y);Oval(Xcen-Rad, Ycen+Rad, Xcen+Rad, Ycen-Rad); If that is not what you are looking for, then I do not understand your question. HTH,Raymond Quote Link to comment
TiTaNiuM sAMuRai Posted June 17, 2002 Author Share Posted June 17, 2002 This is what I'm doing, but it's not exactly how I'd like to do it. Quote Link to comment
MullinRJ Posted June 17, 2002 Share Posted June 17, 2002 Ts, When you mention p1 and p2, you are referring to parameters passed to the ARC command in VS. Yes, they would be the DIAMETER of the ARC especially if the ARC were swept through 360?. Compared to the OVAL or the RECT, it would be analogous to the bounding box of the drawn object. For short arc segments it may seem a bit odd to define such an EMPTY box, but, think of it any way you like, as awkward as it may seem, those are the numbers that the ARC command requires. I have seen much more obtuse ways of defining arcs: Gerber RS-274D & IPC D350 come immediately to mind. As a word of note, always use the upper left and the lower right coordinates of the bounding box, in that order, as the other combinations of corners definitely DON'T work. Been there, done that! HTH,Raymond Quote Link to comment
TiTaNiuM sAMuRai Posted June 18, 2002 Author Share Posted June 18, 2002 ... and as I'm drawing an arc somewhere else, I noticed that the p1 and p2 for the arc parameters establish the DIAMETER for the arc? Am I mistaken, or is this true? DIAMETER FOR AN ARC??? Quote Link to comment
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.