Showing posts with label 2D. Show all posts
Showing posts with label 2D. Show all posts

Friday, May 30, 2008

Editing Sketches

In the past few posts you have been introduced to 2D sketching in Wildcat CAD, and have learned about some of the basic sketch constraints you can apply to 2D features.  In this post I will briefly discuss how to edit various sketch features.

First of all, you can select any sketch feature by clicking on it.  It should turn red.  You can also click-drag a selection box around features.  Using this method you can select multiple features.  Likewise, by holding down the Command key (OS X) or the Ctrl key (Windows) you can click select multiple feature.  You can only edit one feature at a time.

Points

Points are so simple, just grab the point and drag it to where you want it.

Lines

Lines can be edited in two ways.  First, you can grab the end of the line and just move that end around, or second, you can grab the line in the middle and it will move the entire line.  If you are moving the entire line then its orientation (slope) and length will not change just its horizontal and vertical position in the sketch.

Axis lines behave just like regular lines.  They can be adjusted from either end or positioned by grabbing the middle.

Circle

Similar to lines, there are two ways to edit circles.  The first way is to grab it anywhere on the circle itself.  This will allow you to change the radius of the circle.  If you grab the center point of the circle you can then edit the horizontal and vertical position.

Arcs

If you are not familiar, a two-point arc is drawn by first clicking the center-point of the arc, then clicking the start of the arc, finally clicking the end of the arc.  In essence, the first two clicks define the radius, hence two-point.  A three-point arc is drawn by clicking one end point, then clicking the second end point, then finally clicking a third point somewhere else on the arc.  It takes all three clicks to define the radius of the arc.

If you grab any part of an arc itself you can adjust its radius.  The orientation and arc-angle will remain the same.  If you grab the center-point of the arc you can reposition it within the sketch.  As of now, there is no way to adjust the arc-angle or the location of the start or end point.  This is something I want to add down the road.

Ellipses

Ellipses have multiple adjustments that can be made.  First is by grabbing the ellipse anywhere on the boundary, except where you see the point on the semi-major and semi-minor axis, or on the center point.  This will allow you to reposition the ellipse.  If you grab the semi-minor axis point you can adjust the radius of the semi-minor axis.  If you grab the semi-major axis point you can adjust that radius and also change the orientation of the ellipse overall.

There is currently a "bug" that needs to be fixed in ellipse editing.  You have to be sufficiently zoomed in on the ellipse to be able to grab either the semi-major or semi-minor points.  Otherwise you will only be able to adjust the position of the ellipse.  If this is happening to you, just zoom in more on the point you are trying to grab.

Conic Sections

As of now you are not able to edit conic sections.  Down the road I plan on adding this capability.  Sorry!

Well, that's all for today.  There are just a couple more posts left on how to use the Sketcher Workbench in Wildcat CAD.  Keep an eye out on the Wiki for some tutorials.  I will also try to update these posts as I make fixes and enhancements.

Cheers,
   Graham

Thursday, May 29, 2008

Sketch Constraints

In the last post I discussed some of the initial 2D sketching capabilities of Wildcat CAD. In this post I will expand on that a bit and talk about the dimensional and geometric constraints that can be added to 2D sketches. Here is a quick status on all of the planned constraints:

Dimensional Constraints
  • Length
  • Angle
  • Distance (works for some features but not all)
  • Radius
Geometric Constraints
  • Fix
  • Coincidence (line-line only as of now)
  • Horizontal
  • Vertical
To Be Implemented Constraints
  • Semi-major & semi-minor axis
  • Concentric
  • Tangent
  • Parallel
  • Midpoint
  • Perpendicular
  • Symmetric
  • Equidistant point
In the picture below you can see a selection of these constraints:


Where the lines of the rectangle meet (created using the Rectangle profile tool), you can see small points. These are the coincidence constraints.  Next to mostly horizontal or vertical lines you can see the appropriate constraint.  I created an angle constraint between the two lines in the upper left corner.  Both the arc and the circle have radius constraints.

It is important to note that as of right now these constraints are not being using to properly constrain the sketch.  It is our goal to move in that direction in the near future, but for now the constraints are just visual objects.

If you move the lines or edit the arc and circle, you should see the dimensional constraints change value.  If you change a line from vertical to not vertical, the vertical constraint will not go away.  This concept applies to all geometric constraints for now.

As with all other sketch features, constraints created in a sketch are show in the specification tree when in 3D mode.

Tomorrow I will add some more detail about editing sketches.
Cheers,
   Graham

P.S.  In addition to adding comments to this blog, you can also visit the Wildcat CAD discussion group. 


Tuesday, May 27, 2008

Initial Capabilities - Sketcher Basics

In the first post I provided some of the background on why I have started Wildcat CAD.  In this post I want to outline what capabilities are currently available in Wildcat and what are the highest priority planned improvements.

2D sketching is pretty well supported at this point.  I have implemented the following 2D primitives:
  • Conic Arc (both 2-point and 3-point)
  • Circle (center-radius)
  • Axis of revolution
  • Conic section
  • Ellipse
  • Line
  • Point
  • Rectangle (resolves to 4 lines)
With these primitives I have been able to draft a wi
de variety of 2D sketch profiles.  Once you have drawn a sketch and exit back to 3D design (called Part Design Workbench) the sketch is automatically analyzed and Sketch Profiles are generated.  Below are two quick sample sketches I drew:



A Sketch Profile is an ordered series of 2D primitives that are connected by their end points.  Profiles can also be linear - no more than two primitives ever connect at a single end point.  They can also be open or closed - closed will separate the sketch into two portions, inside and out.  For doing something like a 3D extrude (called a Pad), a profile must be connected, linear, and closed.

Pretty much all of the 2D primitives are editable.  Just grab them and they can be moved around.  They will not stay connected to other primitives though.  That is a function of sketch constraints.  Constraints are not yet working, but a lot of the infrastructure is in place so hopefully they won't take took much longer.

If you want to try out making your own sketch, try following the Sketcher Tutorial.

Cheers,
Graham