Documents.Add Method
Parent Object: DocumentsDescription
Creates a new of the specified type. Optionally, a template file can be specified instead.
Syntax
Documents.Add( DocumentType As DocumentTypeEnum, [TemplateFileName] As String, [CreateVisible] As Boolean ) As DocumentParameters
Name | Type | Description |
DocumentType | DocumentTypeEnum | Input DocumentTypeEnum that specifies the type of document to add. |
TemplateFileName | String | Optional input String that specifies the name of the template file. The FileManager.GetTemplateFile can be used to get a template full file name. If not specified a document without template will be created. This is an optional argument whose default value is "". |
CreateVisible | Boolean | Optional input Boolean that specifies whether the created document or template is visible. This is an optional argument whose default value is True. |
Samples
Name | Description |
Adding iAssembly occurrences | This sample demonstrates adding iAssembly occurrences to an assembly. |
Adding iPart occurrences to an assembly | This sample demonstrates adding iPart occurrences to an assembly. |
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. |
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. |
Hole Feature - Through holes (RegularAndTapped) | This sample demonstrates the creation of through holes, both regular and tapped. |