Creates four sketch lines representing a rectangle where the two points are the opposing corners of the rectangle. The input points can be either existing SketchPoints or Point3D objects. If a SketchPoint is used the new lines will be based on that sketch point and update if the sketch point is modified.
"sketchLines_var" is a variable referencing a SketchLines object.
|
"sketchLines_var" is a variable referencing a SketchLines object.
|
Type | Description |
SketchLineList | Returns the four new sketch lines or null if the creation failed. |
Name | Type | Description |
pointOne | Base | The first corner of the rectangle. It can be a SketchPoint or Point3D object. |
pointTwo | Base | The second corner of the rectangle. It can be a SketchPoint or Point3D object. |
Name | Description |
API Sample that demonstrates creating sketch lines in various ways. | Demonstrates several ways to create sketch lines, including as the result of creating a rectangle. |
Sketch Chamfer API Sample | Demonstrates creating a new sketch point. |
SketchLines.addTwoPointRectangle | Demonstrates the SketchLines.addTwoPointRectangle method. |