FileManager.GetTemplateFile Method
Parent Object: FileManagerDescription
Method that specifies the template to use when creating a file.
Syntax
FileManager.GetTemplateFile( DocumentType As DocumentTypeEnum, [SystemOfMeasure] As SystemOfMeasureEnum, [DraftingStandard] As DraftingStandardEnum, [DocumentSubType] As Variant ) As StringParameters
Name | Type | Description |
DocumentType | DocumentTypeEnum | Input constant that specifies the type of to create. |
SystemOfMeasure | SystemOfMeasureEnum | Input constant that specifies the system of measure to use in the drawing being created.
|
DraftingStandard | DraftingStandardEnum | Input constant that specifies the drafting standard to use in the drawing being created.
|
DocumentSubType | Variant | Input constant (GUID) that specifies the subtype of the document to be created (sheet metal or weldment). This is an optional argument whose default value is null. |
Samples
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. |
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. |
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. |
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. |
Sketch from Face Silhouette | This sample creates a cylindrical solid, creates a new sketch plane and creates some new sketch lines from the actual edges and the apparent (silhouette) edges of the cylinder. |
Sketch profile control | This sample demonstrates the usage of the Profiles API to control the shape of the profile. The sample creates three concntric circles and creates an extrusion of the region between the inner circles. |
Create sheet metal rip feature | This sample demonstrates the creation of a rip sheet metal feature. |
Sheet Metal Feature Display | This sample illustrates getting basic information from the various sheet metal features. |
Create sheet metal face and flange features | This sample demonstrates the creation of sheet metal face and flange features. |