Forgot your password?
TiTaNiuM sAMuRai, June 13, 2002 in Vectorscript
You can't pick tool modes in VS.
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).
Is there a way to draw a CIRCLE in VS?
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.
This is what I'm doing, but it's not exactly how I'd like to do it.
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!
... 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???
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.
Pasted as rich text. Restore formatting
Only 75 emoji are allowed.
Your link has been automatically embedded. Display as a link instead
Your previous content has been restored. Clear editor
You cannot paste images directly. Upload or insert images from URL.
7150 Riverwood Drive, Columbia, Maryland 21046, USA | Contact Us: 410-290-5114
© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.