Creating a Sketch in 3D

Use 3D sketching to create sketches whose entities are constructed from points and lines located anywhere in 3D space. These 3D sketches can then be used to build or modify complex three-dimensional shapes.

In 2D sketching you are restricted to two dimensions on a plane; 3D sketching is not restricted to any plane. With 3D sketching you can create advanced lofts with guide wires, complex surfaces to fill gaps or holes with, and allow for a broader range of parametric surfaces for design exploration. You can also use 3D sketching to edit imported 3D curves.

For an example where you can reference existing bodies, see Offsetting Entities in a 3D Sketch.

To create a 3D sketch:

  1. Enter the 3D sketching module:
    • Right-click the Features node and select Create 3D Sketch.
    • Right-click a CAD edge in the 3D-CAD View scene and select 3D Sketch From Edges.
    In the 3D-CAD View scene, a grid appears having a triad at its center. The triad indicates the X, Y, and Z directions and allows you to move sketch entities and choose the plane on which to draw sketch entities.

    The 3D sketch panel appears on the left hand side of the window. This panel contains the sketch tools and display options. For more information about the display options, see Sketch Display Options.

By default, the Laboratory Coordinate System is used for entities on the 3D sketch. You can choose a different coordinate system from those defined as a reference coordinate system in 3D-CAD. For more information on reference coordinate systems in 3D-CAD, and how to define them, see Working With Reference Geometry in 3D-CAD: Reference Coordinate System Options.
  1. To change the current coordinate system in the 3D sketch:
    1. At the top of the Sketch3D panel, click inside the Coordinate System field at the top of the 3D Sketch panel.
    2. In the graphics window, select the triad belonging to the target reference coordinate system.


    The triad axes align with the axes of the local coordinate system to confirm that the change occurred.
Creating 3D curves generally requires you to add one or more points to the sketch (unless you are satisfied with any existing edges that you chose before entering the 3D sketch mode).
  1. To add a single point within the 3D sketch:
    1. On the Sketch3D Edit panel, click Create Point.
      By default, within Display Options, the three options Pick on Plane, Pick on Geometry, and Show or Hide Triad are activated. The options Pick on Plane and Pick on Geometry control what happens as you move the mouse pointer around in the graphics window.
      • (Pick on Plane) means that when the mouse pointer is positioned on white space in the graphics window, coordinate positioning lines extend from the origin of the active sketch plane. You can change the active sketch plane using the triad.
      • (Pick on Geometry) means that when the mouse pointer moves over edges or faces of existing geometry, the nearest edge or face changes color to show that it is the active location for the point. For an edge, the yellow point is constrained along the highlighted edge for as long as the mouse pointer remains close to the edge.
      • (Show or Hide Triad) allows you to hide the triad. Normally, you are advised to keep the triad visible as the triad allows you to switch between coordinate planes when (Pick on Plane) is activated.
    2. To change the active plane on which to create a point, position the mouse pointer over one of the three plane selectors that surround the triad origin. When the plane selector changes color, click using the left mouse button.
      In the example below, the active plane is changed from the XY plane in (1), to the ZY plane in (3). Clicking on the plane ZY plane selector in (2) makes this change.

    3. Position the mouse pointer over the location at which you wish to create a point, and click using the left mouse button.
  2. To draw points, lines, or curves in 3D space:
    1. In the Sketch3D panel, click the relevant button for the tool that you want to use.
      The tools in the 3D sketch module behave in the same way as their 2D counterparts, except that in 3D sketching, you can draw in all three dimensions. See 3D 草图实体.
      For points, Simcenter STAR-CCM+ provides an additional menu in the sketch panel that allows you to control the way in which you define points. For example, you can enter coordinates directly, or else specify an offset from an existing point. See Offsetting Entities in a 3D Sketch.
    2. In the graphics window, move the mouse pointer to the first location and click.
      When sketching in 3D, entities that you draw in the graphics window are constrained to the active plane. As you move the mouse pointer around the scene, the two dimensions that define the current location are projected to the mouse pointer.
    3. If you want to add further points on the same plane, move the mouse pointer to that location and click.
    4. If you want to add the next point on a different plane, first click the desired plane on the central triad. This action does not end the point placement, but switches to the target plane.
      As you move the mouse over the plane, it becomes highlighted to indicate that clicking here will result in the plane switching rather than placing a point in 3D space.

      The sketch grid switches to the chosen plane. You can switch planes/direction as many times as needed while a sketch tool is active.
    5. Move the mouse pointer to the next location and click.
    6. Continue to add as many points as you require, on whichever planes are appropriate. You can switch planes on the triad as many times as you wish.
    7. To stop drawing and exit the active sketch tool, press the <Esc> key.
  3. To draw on the surface of an existing body:
    1. In the Sketch3D panel, click (Line on Surface) or (Spline on Surface).
    2. To limit the placement of points and sketches to geometry surfaces only, deactivate the (Pick on Plane) option and activate the (Pick on Geometry) option.
    3. In the graphics window, move the mouse cursor over a surface on an existing body.
      The surface becomes highlighted in blue to indicate that it is a valid surface on which you can create points.
    4. Click the first point on the surface.
    5. Move the mouse pointer over an edge and click.
      The edge becomes highlighted in yellow to indicate that it is an edge you can interact with.

    6. If you are using the (Line on Surface) tool, you can move the mouse pointer over the adjacent face, next to the edge that you placed a point on, and click to place the point on that face.


      When using the (Line on Surface) tool, you can draw a line that spans multiple faces only after you place a point on the adjoining edge. You cannot span multiple surfaces using the (Spline on Surface) tool.
    7. Sketch the remaining points on the surface.
    8. To stop drawing and exit the active sketch tool, press the <Esc> key.
While drawing a 3D sketch, you can snap to points on existing bodies. You can also bring existing points and edges from other bodies into the 3D sketch by converting them to 3D sketch entities.
  1. To convert points or edges on an existing body, right-click on the point or edge and select Convert to 3D Entities. For edges, you can alternatively choose Convert to 3D Entities As Construction, which brings the edge into the 3D sketch as a construction line. To project sketch as construction entities, select Convert to 3D Entities As Construction.
    The selections are converted to 3D sketch entities and are displayed in a different color to the sketch entities.
  2. To duplicate sketch entities, including converted entities, right-click the sketch entity and select Duplicate.
    Duplicated entities are not associated with the original entity, which means that if you modify the original entity, such as the shape of a box whose edge you duplicated, the duplicate is unchanged.
  3. To create a 3D curve from two existing 2D curves:
    1. Multi-select two existing 2D curves.


    2. Right-click on one of the 2D curves and select Combine Curves to 3D Curve.


    The 3D curve appears in dark brown. You can use the 3D curve in a swept or loft operation.

  4. To convert any point or edge on an existing body to a 3D sketch:
    1. Navigate to the features toolbar and select Create 3D Sketch > Create Line/Create spline.
    2. Click the desired points or edges you want to convert to a 3D sketch.
    3. Click OK to confirm selection and create a 3D sketch.
      Changing the position of the 2D sketch points also modifies the 3D sketch.
  5. To move a point that you have already placed in 3D space:
    1. In the graphics window, click the point that you want to move.
      The triad snaps to the selected point.
    2. Move the mouse pointer over the desired triad direction arrow and click and drag the arrow.
      As you move the mouse pointer over each direction arrow on the triad, these become highlighted and display a projection line (shown for the red triad axis in the following example) if you can move the point. If you cannot move the point due to some constraint, no projection appears on the triad axis.


    3. Click and drag the arrow in the direction that you want to move the point.
      The 3D sketch updates as you move the point.
    4. If necessary do the same for the other two directions.
    5. To move multiple points together:
      1. In the 3D-CAD View scene, press and hold the <Ctrl> key and select the points that you want to move.

        The triad appears at the mean geometric position for the selected points.

      2. Move the mouse pointer over the desired triad direction arrow and click and drag the arrow.
        The selected points move together and maintain their position with respect to each other.

    6. To move points precisely, click a point in the graphics window and modify the point coordinates in the Edit Point panel.
  6. To change the coordinate system of an existing point in the 3D sketch:
    1. In the 3D-CAD View, select the point that you want to modify.
    2. In the Edit Point group box, click inside the Coordinate System field at the top of the 3D Sketch panel.
    3. Click on the visual representation for the local coordinate system in the 3D-CAD View scene.
    The triad axes align with the axes of the local coordinate system to confirm that the change occurred. The entry in the Coordinate System field also updates to show the change.
  7. To create a helix sketch:
    1. First create a line (or curve) within the 3D sketch that defines the central path for the helix. The helix begins at either end point of this line.
    2. In the Sketch3D panel, click (Create Helix).
    3. In the graphics window, select the line or spline curve for the Curve to Define Axis.
    4. To define the plane from which start and end angles are measured, click within Point to Define Plane and select an existing point in the graphics window.
      If no point exists, cancel the helix operation, create a point on a planar surface or edge using Create Point, and then start the helix operation again.
      A preview of the helix sketch appears in the 3D-CAD View scene.

    5. Continue by setting the Helix Radius and Start Angle.
    6. Within Helix Type, choose between a helix defined by the overall number of turns, or one defined by the end angle (relative to the plane defined by the chosen point). Set the number of Turns or End Angle according to your choice.
    7. Finalize the helix by setting the Axial Pitch (distance between each turn) and the Radial Pitch (only required for a conical or spiral helix).
      By setting the Axial Pitch to zero, and providing a non-zero Radial Pitch, you can create a spiral curve rather than a helix.
    For details on all helix properties, see Helix Sketch Panel.
You can define curves directly by providing their equations.
  1. To create an equation based curve:
    1. Define the required interval design parameters and scalar design parameters for the equations (see Creating a New Design Parameter).
      For each component of the curve, define the equation directly in the Equation Base Curve dialog. The equations specified for the x, y, and z components must contain an interval design parameter. For more information, see Interval Design Parameters. You must use the interval parameters directly in the equations. The equation is not defined if the interval design parameter is defined in a separate design parameter.
    2. In the Sketch3D panel, click (Create Equation Based Curves).
    3. In the Create Equation Based Curve dialog, specify the X, Y, Z component equations using the Simcenter STAR-CCM+ expression syntax as well as the Interpolation Points.
      The interval range specified in the interval design parameter is split according to the number of Interpolation Points you specify. For each interpolation point the x, y, and z coordinates are calculated using the equations specified. If you use a higher number of interpolation points, Simcenter STAR-CCM+ defines the curve with greater accuracy. Between each point of the curve a spline interpolation is used to connect the points.

      The x, y, and z component equations can be exposed by clicking (Expose Design Parameter). For more information, see Exposing a Parameter. Do not use the exposed parameter in any other equation or scalar design parameter.

    4. If required, deactivate Zero Curvature At End Points.
      For details on all equation-based curve properties, see Equation Based Curves Panel.
    5. To edit the curve, in the 3D-CAD View scene, right-click the curve and select Edit Equation Curve.
  2. To complete the 3D sketch, click OK.
    A 3DCurve feature is added to the 3D-CAD feature tree.