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