Creates a new document based on the specified template.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function INewDocument2( _
ByVal TemplateName As System.String, _
ByVal PaperSize As System.Integer, _
ByVal Width As System.Double, _
ByVal Height As System.Double _
) As ModelDoc2 |
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 ModelDoc2
value = instance.INewDocument2(TemplateName, PaperSize, Width, Height) |
Parameters
- TemplateName
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 2001Plus FCS, Revision Number 10.0