Gets the primary ComponentDefinition that resides in this file (housing the BRep and its geometric Feature Constraints).
Adding iPart occurrences to an assembly |
This sample demonstrates adding iPart occurrences to an assembly. |
Add assembly insert constraint |
This sample demonstrates the creation of an assembly insert constraint. |
Add assembly mate constraint |
This sample demonstrates the creation of an assembly mate constraint. |
Delete Face, Boundary Patch and Stitch features |
Demonstrates creating Face, Boundary Patch and Stitch features. |
Navigation between browser and data |
This sample demonstrates the navigation between a browser node and it's corresponding data model object and vice versa. This sample creates a work plane, finds its browser node and gets the work plane object back from the browser node. |
Client Graphics - Draw Range Box |
This sample demonstrates the use of client graphics to draw the range box of selected entities. |
Assembly Ground Occurrences |
This sample demonstrates grounding an assembly occurrence. |
Copy a sketch |
This sample demonstrates copying the contents of a sketch into another sketch via the API. |
Creating a new parameter group |
This sample demonstrates the creation of model, reference and user parameters and copying these parameters to a newly created group. |
Create a Configuration Table |
This sample demonstrates the creation of a configuration (iPart/iAssembly) table in a drawing from a factory document. |
Add a decal feature |
This sample demonstrates the creation of a decal feature. |
Derived Parts and Assemblies |
This sample demonstrates the use of the API to create derived parts and assemblies. |
Selectively link paramaters |
This sample demonstrates the selective linking of parameters from another Inventor file. |
Display feature information |
Displays information about all of the extrude features in the active document. A part document must be active when this is run. |
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. |
Hole Feature - Through holes (RegularAndTapped) |
This sample demonstrates the creation of through holes, both regular and tapped. |
Table Parameters |
This sample demonstrates how to access the Parameters object, and from it in turn the TableParameters collection that represents the collection of parameters that have been linked/embedded from an external spreadsheet. |
Add a punch tool feature |
This program demonstrates the creation of a punch tool feature. It uses one of the punch features that's delivered with Inventor. It assumes you already have an existing sheet metal part and have selected a face to place the punch feature on. The selected face should be large so there is room for the punch features. |
Sheet Metal Feature Display |
This sample illustrates getting basic information from the various sheet metal features. |
Translate - Sheet Metal to DXF |
The sample code below writes a sheet metal file out as DXF. DWG is also supported. Use either the FLAT PATTERN DWG or FLAT PATTERN DXF formats.There are several optional arguments that can be specified as part of the format string. E.g. 'FLAT PATTERN DXF?TangentLayer=Tangents&SimplifySplines=True'). Below are the names of these arguments and relevant default values. The output will use these values unless you override them as part of the input string.
Argument | Type | Default Value | Note |
TangentLayer | String | IV_TANGENT | |
OuterProfileLayer | String | IV_OUTER_PROFILE | |
ArcCentersLayer | String | IV_ARC_CENTERS | |
InteriorProfilesLayer | String | IV_INTERIOR_PROFILES | |
BendLayer | String | IV_BEND | BendUpLayer + BendDownLayer (legacy support) |
BendUpLayer | String | IV_BEND | |
BendDownLayer | String | IV_BEND_DOWN | |
ToolCenterLayer | String | IV_TOOL_CENTER | ToolCenterUpLayer + ToolCenterDownLayer (legacy support) |
ToolCenterUpLayer | String | IV_TOOL_CENTER | |
ToolCenterDownLayer | String | IV_TOOL_CENTER_DOWN | |
FeatureProfilesLayer | String | IV_FEATURE_PROFILES | FeatureProfilesUpLayer + FeatureProfilesDownLayer (legacy support) |
FeatureProfilesUpLayer | String | IV_FEATURE_PROFILES | |
FeatureProfilesDownLayer | String | IV_FEATURE_PROFILES_DOWN | |
AltRepFrontLayer | String | IV_ALTREP_FRONT | |
AltRepBackLayer | String | IV_ALTREP_BACK | |
UnconsumedSketchesLayer | String | IV_UNCONSUMED_SKETCHES | |
TangentRollLinesLayer | String | IV_ROLL_TANGENT | |
RollLinesLayer | String | IV_ROLL | |
***Color | String | | *** indicates name of layer from the argument column. RGB values separated by ;. Example: TangentLayerColor=255;0;0 |
***LineType | Long | | *** indicates name of layer from the argument column. Long value from LineTypeEnum. Example: TangentLayerLineType=37644 |
***LineWeight | Double | | *** indicates name of layer from the argument column. Value in centimeters. Example: TangentLayerLineWeight=.1016 |
CustomizeFilename | String | | |
AcadVersion | String | | 2018, 2013, 2010, 2007, 2004, 2000, or R12 (for DXF only) |
SimplifySplines | Boolean | True | Enable spline replacement by linear segments |
SplineTolerance | Double | 0.01 | Chord tolerance for spline replacement |
AdvancedLegacyExport | Boolean | True | |
MergeProfilesIntoPolyline | Boolean | False | Build a polyline of the exterior profiles |
RebaseGeometry | Boolean | False | Move geometry to 1st quadrant |
InvisibleLayers | String | | List of layer names to make invisible, separated by ; |
TrimCenterlinesAtContour | Boolean | False | Trim the centerlines at contour. |
|