Creates a sketch line between the two input points. The input points can be either existing SketchPoints or Point3D objects. If a SketchPoint is used the new line 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. |
"sketchLines_var" is a variable referencing a SketchLines object. |
| Type | Description |
| SketchLine | Returns the newly created SketchLine object or null if the creation failed. |
| Name | Type | Description |
| startPoint | Base | The start point of the line. It can be a SketchPoint or Point3D object. |
| endPoint | Base | The end point of the line. 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. Before running: No open document is required; the script creates a new design (or additional documents) as it runs. |
| Simple Revolve Feature Sample | Demonstrates creates a new revolve feature, resulting in a new component. Before running: No open document is required; the script creates a new design (or additional documents) as it runs. |