Sketch Class
The commands in the Sketch Sketch are described below.
.
More...
Inherits ItemObject.
Public Member Functions | |
| virtual void | AddPropertyByReference (String &name, ReferenceObject *value) |
| Adds ReferenceObject object to a specified variable. More... | |
| void | CloseSketch () |
| Finishes editing the sketch. | |
| SketchArc * | CreateArc (double center_x, double center_y, double start_x, double start_y, double end_x, double end_y) |
| Creates an arc by specifying the center point, start point, and end point. More... | |
| SketchArc * | CreateArcWithCoordinateItem (double center_x, double center_y, ReferenceObject *centerCoordRef, double start_x, double start_y, ReferenceObject *startCoordRef, double end_x, double end_y, ReferenceObject *endCoordRef) |
| Creates an arc by specifying the center point, start point, end point and coordinate system. More... | |
| ConstraintObject * | CreateBiConstraint (Variant &value, ReferenceObject *ref, ReferenceObject *ref2) |
| Specifies constraint to basic shape (constraint with 2 targets). More... | |
| RegionBoolean * | CreateBoolean () |
| Runs Boolean for regions in a sketch. More... | |
| SketchCircle * | CreateCircle (double x, double y, double radius) |
| Creates a circle by specifying the center point and radius. More... | |
| SketchCircle * | CreateCircleBy2LinesRadius (ReferenceObject *ref1, ReferenceObject *ref2, double radius, double x, double y) |
| Creates a circle by specifying two lines tangent to the circle and a radius. More... | |
| SketchCircle * | CreateCircleBy2LinesRadiusWithCoordinateItem (ReferenceObject *ref1, ReferenceObject *ref2, double radius, double x, double y, ReferenceObject *coordRef) |
| Creates a circle by specifying two lines tangent to the circle, the radius, and the coordinate system. More... | |
| SketchCircle * | CreateCircleBy2PointsRadius (double point1_x, double point1_y, double point2_x, double point2_y, double radius, bool right_side) |
| Creates a circle by specifying two points on a circumference and a radius. More... | |
| SketchCircle * | CreateCircleBy2PointsRadiusWithCoordinateItem (double point1_x, double point1_y, double point2_x, double point2_y, ReferenceObject *coordRef, double radius, bool right_side) |
| Creates a circle by specifying two points on a circumference, radius and coordinate system. More... | |
| SketchCircle * | CreateCircleBy3Line (ReferenceObject *ref1, ReferenceObject *ref2, ReferenceObject *ref3) |
| Creates a circle by specifying three lines that are all connected to a circle. More... | |
| SketchCircle * | CreateCircleBy3Points (double point1_x, double point1_y, double point2_x, double point2_y, double point3_x, double point3_y) |
| Creates a circle by specifying the three points on the circumference. More... | |
| SketchCircle * | CreateCircleBy3PointsWithCoordinateItem (double point1_x, double point1_y, double point2_x, double point2_y, double point3_x, double point3_y, ReferenceObject *coordRef) |
| Creates a circle by specifying the three points on the circumference and coordinate system. More... | |
| SketchCircle * | CreateCircleByDiameter (double point1_x, double point1_y, double point2_x, double point2_y) |
| Creates a circle by specifying two points that are positioned on the diameter of the circle. More... | |
| SketchCircle * | CreateCircleByDiameterWithCoordinateItem (double point1_x, double point1_y, double point2_x, double point2_y, ReferenceObject *coordRef) |
| Creates a circle by specifying two points and coordinate system that are positioned on the diameter of the circle. More... | |
| SketchCircle * | CreateCircleWithCoordinateItem (double x, double y, ReferenceObject *coordRef, double radius) |
| Creates a circle by specifying the center point, radius and coordinate system. More... | |
| ConstraintObject * | CreateConstraint (Variant &value) |
| Specifies constraint to basic shape (constraint with multiple target). More... | |
| RegionMergeNode * | CreateDeleteDuplicatedNodes () |
| Deletes duplicated nodes in the sketch. More... | |
| SketchEllipse * | CreateEllipse (double center_x, double center_y, double major_radius, double minor_radius, double major_angle) |
| Creates an ellipse. More... | |
| SketchEllipse * | CreateEllipseWithCoordinateItem (double center_x, double center_y, ReferenceObject *coordRef, double major_radius, double minor_radius, double major_angle) |
| Creates an ellipse by specifying a coordinate system. More... | |
| SketchEllipticalArc * | CreateEllipticalArc (double center_x, double center_y, double start_x, double start_y, double end_x, double end_y, double major_radius, double minor_radius, double major_angle) |
| Creates an elliptical arc. More... | |
| SketchEllipticalArc * | CreateEllipticalArcWithCoordinateItem (double center_x, double center_y, ReferenceObject *centerCoordRef, double start_x, double start_y, ReferenceObject *startCoordRef, double end_x, double end_y, ReferenceObject *endCoordRef, double major_radius, double minor_radius, double major_angle) |
| Creates an elliptical arc by specifying a coordinate system. More... | |
| SketchFunctionCurve * | CreateExplicitFunctionCurve (String &y, double start, double end) |
| Creates a function curve by the type "y=f(x)". More... | |
| ConstraintObject * | CreateExternalConstraint (Variant &value, ReferenceObject *ref, ReferenceObject *exref) |
| Specifies constraint to basic shape (Project Coincident). More... | |
| SketchLine * | CreateLine (double sx, double sy, double ex, double ey) |
| Creates a line. More... | |
| SketchLine * | CreateLineByLengthAngle (double sx, double sy, double length, double angle) |
| Creates a line. More... | |
| SketchLine * | CreateLineByLengthAngleWithCoordinateItem (double sx, double sy, ReferenceObject *coordRef, double length, double angle) |
| Creates a line by specifying a coordinate system. More... | |
| SketchLine * | CreateLineWithCoordinateItem (double sx, double sy, ReferenceObject *startCoordRef, double ex, double ey, ReferenceObject *endCoordRef) |
| Creates a line by specifying a coordinate system. More... | |
| ConstraintObject * | CreateMonoConstraint (Variant &value, ReferenceObject *ref) |
| Specifies constraint to basic shape (constraint with 1 target). More... | |
| void | CreateOuterRegions () |
| Creates regions of outer loop by specifying lines and arcs. | |
| void | CreateOuterRegionsWithCleanup (double tolerance, bool addConstraint) |
| Creates regions of outer loop by specifying lines and arcs. Selected lines and arcs are applied healing with specifying tolerance. More... | |
| SketchFunctionCurve * | CreateParametricFunctionCurve (String &x, String &y, double start, double end) |
| Creates a function curve by the type "x=f(t), y=g(t)". More... | |
| void | CreateRectangle (double sx, double sy, double ex, double ey) |
| Creates a line. More... | |
| RegionChamfer * | CreateRegionChamfer () |
| Chamfers the region. More... | |
| RegionCircularPattern * | CreateRegionCircularPattern () |
| Creates the rotation copy of the region. More... | |
| RegionEdgeMove * | CreateRegionEdgeMove () |
| Moves region edges. More... | |
| RegionEdgeOffset * | CreateRegionEdgeOffset () |
| Offsets region edges. More... | |
| RegionFillet * | CreateRegionFillet () |
| Fillets the region. More... | |
| RegionLinearPattern * | CreateRegionLinearPattern () |
| Creates the copies of the region in the horizontal or vertical direction. More... | |
| RegionMesh * | CreateRegionMesh () |
| Creates mesh to region. More... | |
| RegionMirrorCopy * | CreateRegionMirrorCopy () |
| Creates the mirror copies of the region. More... | |
| RegionMove * | CreateRegionMove () |
| Moves regions. More... | |
| RegionCircularPattern * | CreateRegionRadialPattern () |
| Creates the rotation copy of the region. More... | |
| void | CreateRegions () |
| Creates regions by specifying lines and arcs. If regions include other region, they are added the inner loop. | |
| void | CreateRegionsWithCleanup (double tolerance, bool addConstraint=true) |
| Creates regions by selected lines and arcs which applied healing with specifying tolerance. If regions include other region, they are added the inner loop. More... | |
| RegionScale * | CreateScale () |
| Enlarges or shrinks regions. More... | |
| SketchSpline * | CreateSpline (String array &points) |
| Creates a spline. More... | |
| UserDefinedRegionTemplate * | CreateUserDefinedRegionTemplate () |
| Creates a user defined region template. More... | |
| SketchVertex * | CreateVertex (double x, double y) |
| Creates a vertex. More... | |
| SketchVertex * | CreateVertexWithCoordinateItem (double x, double y, ReferenceObject *coordRef) |
| Creates a vertex by specifying a coordinate system. More... | |
| WireTemplate * | CreateWireTemplate () |
| Creates a region for wire using wire templates. More... | |
| ItemObject * | GetItem (Variant &value) |
| Returns an item displayed in the [Model Manager] tree such as assembly, part and sketch. Index is numbered in the order of the each items shown in the tree. More... | |
| String | GetName () |
| Returns a name. More... | |
| virtual Variant | GetProperty (String &name) |
| Returns the value of the property with the specified name. More... | |
| String | GetScriptTypeName () |
| Returns the name of the object type as a string. More... | |
| bool | IsValid () |
| Returns True if an object is valid. More... | |
| int | NumItems () |
| Returns the number of items. More... | |
| void | OpenSketch () |
| Starts editing a sketch. | |
| void | SetColor (int red, int blue, int green) |
| Specifies the region color in the sketch. More... | |
| void | SetName (String &name) |
| Specifies a name. More... | |
| virtual void | SetProperty (String &name, Variant &value) |
| Specifies a value of property. More... | |
| virtual void | SetPropertyByReference (String &name, ReferenceObject *value) |
| Specifies the values in properties by ReferenceObject object. More... | |
Sketch Class
The commands in the Sketch Sketch are described below.
.
The Sketch class includes the commands for the following operation.
For more information about the properties for this class, see here .
|
virtualinherited |
Adds ReferenceObject object to a specified variable.
| name | Property name |
| value | ReferenceObject object (target) |
| SketchArc * Sketch::CreateArc | ( | double | center_x, |
| double | center_y, | ||
| double | start_x, | ||
| double | start_y, | ||
| double | end_x, | ||
| double | end_y | ||
| ) |
Creates an arc by specifying the center point, start point, and end point.
| center_x | Center point in the X coordinate |
| center_y | Center point in the Y coordinate |
| start_x | Start point in the X coordinate |
| start_y | Start point in the Y coordinate |
| end_x | End point in the X coordinate |
| end_y | End point in the Y coordinate |
An arc cannot be created if another arc is already created at the same position. In this case, the value of the existing arc is returned.
| SketchArc * Sketch::CreateArcWithCoordinateItem | ( | double | center_x, |
| double | center_y, | ||
| ReferenceObject * | centerCoordRef, | ||
| double | start_x, | ||
| double | start_y, | ||
| ReferenceObject * | startCoordRef, | ||
| double | end_x, | ||
| double | end_y, | ||
| ReferenceObject * | endCoordRef | ||
| ) |
Creates an arc by specifying the center point, start point, end point and coordinate system.
| center_x | Center point in the X coordinate |
| center_y | Center point in the Y coordinate |
| centerCoordRef | Center point in the coordinate system object |
| start_x | Start point in the X coordinate |
| start_y | Start point in the Y coordinate |
| startCoordRef | Start point in the coordinate system object |
| end_x | End point in the X coordinate |
| end_y | End point in the Y coordinate |
| endCoordRef | End point in the coordinate system object |
An arc cannot be created if another arc is already created at the same position. In this case, the value of the existing arc is returned.
| ConstraintObject * Sketch::CreateBiConstraint | ( | Variant & | value, |
| ReferenceObject * | ref, | ||
| ReferenceObject * | ref2 | ||
| ) |
Specifies constraint to basic shape (constraint with 2 targets).
| value | Types of constraints
2="distance"
3="concentricity"
4="tangency"
5="angle"
6="parallelism"
8="perpendicularity"
10="coincident"
|
| ref | ReferenceObject object |
| ref2 | ReferenceObject object |
For more information about ConstraintObject properies, see " Properties for 2D Constraint ".
| RegionBoolean * Sketch::CreateBoolean | ( | ) |
Runs Boolean for regions in a sketch.
| SketchCircle * Sketch::CreateCircle | ( | double | x, |
| double | y, | ||
| double | radius | ||
| ) |
Creates a circle by specifying the center point and radius.
| x | Center point in the X coordinate |
| y | Center point in the Y coordinate |
| radius | Radius |
A circle cannot be created if another circle already exists in the same position. The SketchCircle object for the circle that already exists is returned.
| SketchCircle * Sketch::CreateCircleBy2LinesRadius | ( | ReferenceObject * | ref1, |
| ReferenceObject * | ref2, | ||
| double | radius, | ||
| double | x, | ||
| double | y | ||
| ) |
Creates a circle by specifying two lines tangent to the circle and a radius.
| ref1 | Object for line |
| ref2 | Object for line |
| radius | Radius |
| x | X-coordinate of support points |
| y | Y-coordinate of support points |
A circle cannot be created if another circle already exists in the same position. The SketchCircle object for the circle that already exists is returned.
| SketchCircle * Sketch::CreateCircleBy2LinesRadiusWithCoordinateItem | ( | ReferenceObject * | ref1, |
| ReferenceObject * | ref2, | ||
| double | radius, | ||
| double | x, | ||
| double | y, | ||
| ReferenceObject * | coordRef | ||
| ) |
Creates a circle by specifying two lines tangent to the circle, the radius, and the coordinate system.
| ref1 | Object for line |
| ref2 | Object for line |
| radius | Radius |
| x | X-coordinate of support points |
| y | Y-coordinate of support points |
| coordRef | Coordinate system object |
A circle cannot be created if another circle already exists in the same position. The SketchCircle object for the circle that already exists is returned.
| SketchCircle * Sketch::CreateCircleBy2PointsRadius | ( | double | point1_x, |
| double | point1_y, | ||
| double | point2_x, | ||
| double | point2_y, | ||
| double | radius, | ||
| bool | right_side | ||
| ) |
Creates a circle by specifying two points on a circumference and a radius.
| point1_x | X-coordinate of Point1 |
| point1_y | Y-coordinate of Point1 |
| point2_x | X-coordinate of Point2 |
| point2_y | Y-coordinate of Point2 |
| radius | Radius |
| right_side | True=on : Creates a radius on the right side of the line drawn toward point 2 from point 1
False=off : Creates a radius on the left side of the line drawn toward point 2 from point 1
|
A circle cannot be created if another circle already exists in the same position. The SketchCircle object for the circle that already exists is returned.
| SketchCircle * Sketch::CreateCircleBy2PointsRadiusWithCoordinateItem | ( | double | point1_x, |
| double | point1_y, | ||
| double | point2_x, | ||
| double | point2_y, | ||
| ReferenceObject * | coordRef, | ||
| double | radius, | ||
| bool | right_side | ||
| ) |
Creates a circle by specifying two points on a circumference, radius and coordinate system.
| point1_x | X-coordinate of Point1 |
| point1_y | Y-coordinate of Point1 |
| point2_x | X-coordinate of Point2 |
| point2_y | Y-coordinate of Point2 |
| coordRef | Coordinate system object |
| radius | Radius |
| right_side | True=on : Creates a radius on the right side of the line drawn toward point 2 from point 1
False=off : Creates a radius on the left side of the line drawn toward point 2 from point 1
|
A circle cannot be created if another circle already exists in the same position. The SketchCircle object for the circle that already exists is returned.
| SketchCircle * Sketch::CreateCircleBy3Line | ( | ReferenceObject * | ref1, |
| ReferenceObject * | ref2, | ||
| ReferenceObject * | ref3 | ||
| ) |
Creates a circle by specifying three lines that are all connected to a circle.
| ref1 | Line 1 |
| ref2 | Line 2 |
| ref3 | Line 3 |
A circle cannot be created if another circle already exists in the same position. The SketchCircle object for the circle that already exists is returned.
| SketchCircle * Sketch::CreateCircleBy3Points | ( | double | point1_x, |
| double | point1_y, | ||
| double | point2_x, | ||
| double | point2_y, | ||
| double | point3_x, | ||
| double | point3_y | ||
| ) |
Creates a circle by specifying the three points on the circumference.
| point1_x | Point 1 on the X coordinate |
| point1_y | Point 1 on the Y coordinate |
| point2_x | Point 2 on the X coordinate |
| point2_y | Point 2 on the Y coordinate |
| point3_x | Point 3 on the X coordinate |
| point3_y | Point 3 on the Y coordinate |
A circle cannot be created if another circle already exists in the same position. The SketchCircle object for the circle that already exists is returned.
| SketchCircle * Sketch::CreateCircleBy3PointsWithCoordinateItem | ( | double | point1_x, |
| double | point1_y, | ||
| double | point2_x, | ||
| double | point2_y, | ||
| double | point3_x, | ||
| double | point3_y, | ||
| ReferenceObject * | coordRef | ||
| ) |
Creates a circle by specifying the three points on the circumference and coordinate system.
| point1_x | Point 1 on the X coordinate |
| point1_y | Point 1 on the Y coordinate |
| point2_x | Point 2 on the X coordinate |
| point2_y | Point 2 on the Y coordinate |
| point3_x | Point 3 on the X coordinate |
| point3_y | Point 3 on the Y coordinate |
| coordRef | Coordinate system object |
A circle cannot be created if another circle already exists in the same position. The SketchCircle object for the circle that already exists is returned.
| SketchCircle * Sketch::CreateCircleByDiameter | ( | double | point1_x, |
| double | point1_y, | ||
| double | point2_x, | ||
| double | point2_y | ||
| ) |
Creates a circle by specifying two points that are positioned on the diameter of the circle.
| point1_x | X-coordinate of Point1 |
| point1_y | Y-coordinate of Point1 |
| point2_x | X-coordinate of Point2 |
| point2_y | Y-coordinate of Point2 |
A circle cannot be created if another circle already exists in the same position. The SketchCircle object for the circle that already exists is returned.
| SketchCircle * Sketch::CreateCircleByDiameterWithCoordinateItem | ( | double | point1_x, |
| double | point1_y, | ||
| double | point2_x, | ||
| double | point2_y, | ||
| ReferenceObject * | coordRef | ||
| ) |
Creates a circle by specifying two points and coordinate system that are positioned on the diameter of the circle.
| point1_x | X-coordinate of Point1 |
| point1_y | Y-coordinate of Point1 |
| point2_x | X-coordinate of Point2 |
| point2_y | Y-coordinate of Point2 |
| coordRef | Coordinate system object |
A circle cannot be created if another circle already exists in the same position. The SketchCircle object for the circle that already exists is returned.
| SketchCircle * Sketch::CreateCircleWithCoordinateItem | ( | double | x, |
| double | y, | ||
| ReferenceObject * | coordRef, | ||
| double | radius | ||
| ) |
Creates a circle by specifying the center point, radius and coordinate system.
| x | Center point in the X coordinate |
| y | Center point in the Y coordinate |
| coordRef | Coordinate system object |
| radius | Radius |
A circle cannot be created if another circle already exists in the same position. The SketchCircle object for the circle that already exists is returned.
| ConstraintObject * Sketch::CreateConstraint | ( | Variant & | value | ) |
Specifies constraint to basic shape (constraint with multiple target).
| value | Types of constraints
12 ="rigidset" : Relative fixation
|
For more information about ConstraintObject properies, see " Properties for 2D Constraint ".
| RegionMergeNode * Sketch::CreateDeleteDuplicatedNodes | ( | ) |
Deletes duplicated nodes in the sketch.
| SketchEllipse * Sketch::CreateEllipse | ( | double | center_x, |
| double | center_y, | ||
| double | major_radius, | ||
| double | minor_radius, | ||
| double | major_angle | ||
| ) |
Creates an ellipse.
| center_x | |
| center_y | |
| major_radius | |
| minor_radius | |
| major_angle |
| SketchEllipse * Sketch::CreateEllipseWithCoordinateItem | ( | double | center_x, |
| double | center_y, | ||
| ReferenceObject * | coordRef, | ||
| double | major_radius, | ||
| double | minor_radius, | ||
| double | major_angle | ||
| ) |
Creates an ellipse by specifying a coordinate system.
| center_x | |
| center_y | |
| coordRef | Coordinate system object |
| major_radius | |
| minor_radius | |
| major_angle |
| SketchEllipticalArc * Sketch::CreateEllipticalArc | ( | double | center_x, |
| double | center_y, | ||
| double | start_x, | ||
| double | start_y, | ||
| double | end_x, | ||
| double | end_y, | ||
| double | major_radius, | ||
| double | minor_radius, | ||
| double | major_angle | ||
| ) |
Creates an elliptical arc.
| center_x | |
| center_y | |
| start_x | |
| start_y | |
| end_x | |
| end_y | |
| major_radius | |
| minor_radius | |
| major_angle |
| SketchEllipticalArc * Sketch::CreateEllipticalArcWithCoordinateItem | ( | double | center_x, |
| double | center_y, | ||
| ReferenceObject * | centerCoordRef, | ||
| double | start_x, | ||
| double | start_y, | ||
| ReferenceObject * | startCoordRef, | ||
| double | end_x, | ||
| double | end_y, | ||
| ReferenceObject * | endCoordRef, | ||
| double | major_radius, | ||
| double | minor_radius, | ||
| double | major_angle | ||
| ) |
Creates an elliptical arc by specifying a coordinate system.
| center_x | Cen |
| center_y | |
| centerCoordRef | Center point coordinate system object |
| start_x | |
| start_y | |
| startCoordRef | Start point coordinate system object |
| end_x | |
| end_y | |
| endCoordRef | End point coordinate system object |
| major_radius | |
| minor_radius | |
| major_angle |
| SketchFunctionCurve * Sketch::CreateExplicitFunctionCurve | ( | String & | y, |
| double | start, | ||
| double | end | ||
| ) |
Creates a function curve by the type "y=f(x)".
| y | equation y |
| start | start value |
| end | end value |
| ConstraintObject * Sketch::CreateExternalConstraint | ( | Variant & | value, |
| ReferenceObject * | ref, | ||
| ReferenceObject * | exref | ||
| ) |
Specifies constraint to basic shape (Project Coincident).
| value | Types of constraints
15="externalcoincident" :Project Coincident
|
For more information about ConstraintObject properies, see " Properties for 2D Constraint ".
| SketchLine * Sketch::CreateLine | ( | double | sx, |
| double | sy, | ||
| double | ex, | ||
| double | ey | ||
| ) |
Creates a line.
| sx | Start point in the X coordinate |
| sy | Start point in the Y coordinate |
| ex | End point in the X coordinate |
| ey | End point in the Y coordinate |
A line cannot be created if another line is already created at the same position. In this case, the value of the existing line is returned.
| SketchLine * Sketch::CreateLineByLengthAngle | ( | double | sx, |
| double | sy, | ||
| double | length, | ||
| double | angle | ||
| ) |
Creates a line.
| sx | Start point in the X coordinate |
| sy | Start point in the Y coordinate |
| length | Length from the start point |
| angle | Angle |
A line cannot be created if another line is already created at the same position. In this case, the value of the existing line is returned.
| SketchLine * Sketch::CreateLineByLengthAngleWithCoordinateItem | ( | double | sx, |
| double | sy, | ||
| ReferenceObject * | coordRef, | ||
| double | length, | ||
| double | angle | ||
| ) |
Creates a line by specifying a coordinate system.
| sx | Start point in the X coordinate |
| sy | Start point in the Y coordinate |
| coordRef | Start point in the coordinate system object |
| length | Length from the start point |
| angle | Angle |
A line cannot be created if another line is already created at the same position. In this case, the value of the existing line is returned.
| SketchLine * Sketch::CreateLineWithCoordinateItem | ( | double | sx, |
| double | sy, | ||
| ReferenceObject * | startCoordRef, | ||
| double | ex, | ||
| double | ey, | ||
| ReferenceObject * | endCoordRef | ||
| ) |
Creates a line by specifying a coordinate system.
| sx | Start point in the X coordinate |
| sy | Start point in the Y coordinate |
| startCoordRef | Start point in the coordinate system object |
| ex | End point in the X coordinate |
| ey | End point in the Y coordinate |
| endCoordRef | End point in the coordinate system object |
A line cannot be created if another line is already created at the same position. In this case, the value of the existing line is returned.
| ConstraintObject * Sketch::CreateMonoConstraint | ( | Variant & | value, |
| ReferenceObject * | ref | ||
| ) |
Specifies constraint to basic shape (constraint with 1 target).
| value | Types of constraints
1="fixture" : Fixture
2="distance" : Distance
7="horizontality" : Horizontality
9="verticality" : Verticality
11="radius" : Constraint (Radius/Diameter)
12="major_radius" : Constraint (Major Radius/Major Diameter)
13="minor_radius" : Constraint (Minor Radius/Minor Diameter)
|
| ref | ReferenceObject object |
For more information about ConstraintObject properies, see " Properties for 2D Constraint ".
| void Sketch::CreateOuterRegionsWithCleanup | ( | double | tolerance, |
| bool | addConstraint | ||
| ) |
Creates regions of outer loop by specifying lines and arcs.
Selected lines and arcs are applied healing with specifying tolerance.
| tolerance |
| SketchFunctionCurve * Sketch::CreateParametricFunctionCurve | ( | String & | x, |
| String & | y, | ||
| double | start, | ||
| double | end | ||
| ) |
Creates a function curve by the type "x=f(t), y=g(t)".
| x | equation x |
| y | equation y |
| start | start value |
| end | end value |
| void Sketch::CreateRectangle | ( | double | sx, |
| double | sy, | ||
| double | ex, | ||
| double | ey | ||
| ) |
Creates a line.
| sx | Start point in the X coordinate |
| sy | Start point in the Y coordinate |
| ex | End point in the X coordinate |
| ey | End point in the Y coordinate |
| RegionChamfer * Sketch::CreateRegionChamfer | ( | ) |
Chamfers the region.
| RegionCircularPattern * Sketch::CreateRegionCircularPattern | ( | ) |
Creates the rotation copy of the region.
| RegionEdgeMove * Sketch::CreateRegionEdgeMove | ( | ) |
Moves region edges.
| RegionEdgeMove * Sketch::CreateRegionEdgeOffset | ( | ) |
Offsets region edges.
| RegionFillet * Sketch::CreateRegionFillet | ( | ) |
Fillets the region.
| RegionLinearPattern * Sketch::CreateRegionLinearPattern | ( | ) |
Creates the copies of the region in the horizontal or vertical direction.
| RegionMesh * Sketch::CreateRegionMesh | ( | ) |
Creates mesh to region.
| RegionMirrorCopy * Sketch::CreateRegionMirrorCopy | ( | ) |
Creates the mirror copies of the region.
| RegionMove * Sketch::CreateRegionMove | ( | ) |
Moves regions.
| RegionCircularPattern * Sketch::CreateRegionRadialPattern | ( | ) |
Creates the rotation copy of the region.
| void Sketch::CreateRegionsWithCleanup | ( | double | tolerance, |
| bool | addConstraint = true |
||
| ) |
Creates regions by selected lines and arcs which applied healing with specifying tolerance.
If regions include other region, they are added the inner loop.
| tolerance |
| RegionScale Sketch::CreateScale | ( | ) |
Enlarges or shrinks regions.
| SketchSpline * Sketch::CreateSpline | ( | String array & | points | ) |
Creates a spline.
| points | Point sequence displaying the coordinate value of the control point configuring a spline |
Error occurs in the following cases.
| UserDefinedRegionTemplate * Sketch::CreateUserDefinedRegionTemplate | ( | ) |
Creates a user defined region template.
| SketchVertex * Sketch::CreateVertex | ( | double | x, |
| double | y | ||
| ) |
Creates a vertex.
| x | Vertex on the X coordinate |
| y | Vertex on the Y coordinate |
A vertex cannot be created if another vertex is already created at the same position. In this case, the value of the existing vertex is returned.
| SketchVertex * Sketch::CreateVertexWithCoordinateItem | ( | double | x, |
| double | y, | ||
| ReferenceObject * | coordRef | ||
| ) |
Creates a vertex by specifying a coordinate system.
| x | Vertex on the X coordinate |
| y | Vertex on the Y coordinate |
| coordRef | Coordinate system object |
A vertex cannot be created if another vertex is already created at the same position. In this case, the value of the existing vertex is returned.
| WireTemplate * Sketch::CreateWireTemplate | ( | ) |
Creates a region for wire using wire templates.
|
inherited |
Returns an item displayed in the [Model Manager] tree such as assembly, part and sketch. Index is numbered in the order of the each items shown in the tree.
| value | Item name or index |
|
inherited |
Returns a name.
|
virtualinherited |
Returns the value of the property with the specified name.
| name | Property name |
|
inherited |
Returns the name of the object type as a string.
|
virtual |
Returns True if an object is valid.
Reimplemented from ItemObject.
|
inherited |
Returns the number of items.
| void Sketch::SetColor | ( | int | red, |
| int | blue, | ||
| int | green | ||
| ) |
Specifies the region color in the sketch.
| red | Red (0 - 255) |
| blue | Blue (0 - 255) |
| green | Green (0 - 255) |
|
inherited |
Specifies a name.
| name | Item name |
|
virtualinherited |
Specifies a value of property.
| name | Property name |
| value | Value of properties |
Reimplemented in SketchItem.
|
virtualinherited |
Specifies the values in properties by ReferenceObject object.
| name | Property name |
| value | ReferenceObject object (target) |