Creates a new document based on the specified template.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function NewDocument( _
ByVal TemplateName As System.String, _
ByVal PaperSize As System.Integer, _
ByVal Width As System.Double, _
ByVal Height As System.Double _
) As System.Object |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim TemplateName As System.String
Dim PaperSize As System.Integer
Dim Width As System.Double
Dim Height As System.Double
Dim value As System.Object
value = instance.NewDocument(TemplateName, PaperSize, Width, Height) |
Parameters
- TemplateName
Fully qualified path and name of the template to use for creating the new document
- PaperSize
Size of paper as defined in swDwgPaperSizes_e
- Width
Width of paper; used only when PaperSize is swDwgPapersUserDefined
- Height
- Height of paper; used only when PaperSize is swDwgPapersUserDefined
Return Value
Newly created
document or NULL if the operation fails
Example
Remarks
See Also
Availability
SOLIDWORKS 2000 FCS, Revision Number 8.0