Method that creates four lines to represent a rectangle where the diagonal corners of the rectangle are defined by the two input points and the rectangle is aligned with the sketch X and Y axes. The four new sketch lines are returned in an SketchEntitiesEnumerator object.
Name | Type | Description |
CornerPointOne | Object | Input object that defines a corner of the rectangle. This can be a SketchPoint or a Point2d object. If an existing sketch point is input, the lines become connected to that point and the point becomes the corner point of the rectangle. |
CornerPointTwo | Object | Input object that defines the diagonal corner of the rectangle. This can be a SketchPoint or a Point2d object. If an existing sketch point is input, the lines become connected to that point and the point becomes the corner point of the rectangle. |
Name | Description |
Delete Face, Boundary Patch and Stitch features | Demonstrates creating Face, Boundary Patch and Stitch features. |
SurfaceBody Copy | This sample demonstrates copying a surface body from one part to another. This is equivalent to the Promote command, but the API is much more flexible. In order for the sample to be self-contained, it creates two parts on the fly that will be used to demonstrate copying a body from one part to another. When copying a body into a part, you provide the surface body and a matrix to define its position in the new part. This sample creates a matrix based on the position of these parts within an assembly. |
Derived Parts and Assemblies | This sample demonstrates the use of the API to create derived parts and assemblies. |
Border Create and Insert | This sample illustrates creating a new border definition object and using it for a sheet. |
Using Inventor's error dialog | Demonstrates using Inventor's error dialog. |
Extrude Feature - Create Block with Pocket | This sample demonstrates creating a simple solid consisting a block with a pocket. It shows how to create a sketch plane at a specified orientation to existing geometry. |
Edit profile of an extrude feature | This sample demonstrates editing the profile of an extrude feature. |
Create sheet metal face and fold features | This sample demonstrates the creation of sheet metal face and fold features. |
Hole Feature - Through holes (RegularAndTapped) | This sample demonstrates the creation of through holes, both regular and tapped. |
Create sheet metal lofted flange feature | The following sample demonstrates the creation of a sheet metal lofted flange feature. |
Create and Edit an Extrude Feature with a pocket | This sample demonstrates how to edit an extrude feature. It shows how to create a sketch plane at a specified orientation to existing geometry. |
Create sheet metal face and cut features | This sample demonstrates the creation of sheet metal face and cut features. |
Create sheet metal face and flange features | This sample demonstrates the creation of sheet metal face and flange features. |
Offset a 2D sketch | This sample demonstrates the creation of offsets in 2d sketches. Two ways of creating the offset are shown - one uses a distance and the other uses the input point. |
Sketch Lines | This sample demonstrates creating lines. It uses all of the various methods to create lines, both singly and as rectangles. |
Create and insert a sketch block definition into a part sketch | This sample demonstrates inserting a sketch block into a part sketch. |
Create sketch block from an existing sketch | This sample demonstrates creating a sketch block from an existing sketch. |
Title Block Definition Create and Insert | This sample illustrates creating a new title block definition object and inserting it into the active sheet. This sample consists of two subs. The first demonstrates the creation of a title block definition and the second inserts it into the active sheet. |