Creates a new document based on the specified template.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function INewDocument2( _
ByVal TemplateName As String, _
ByVal PaperSize As Integer, _
ByVal Width As Double, _
ByVal Height As Double _
) As ModelDoc2 |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim TemplateName As String
Dim PaperSize As Integer
Dim Width As Double
Dim Height As 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