Gets the name of document template that can be used in
ISldWorks::NewDocument or
ISldWorks::INewDocument2.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function GetDocumentTemplate( _
ByVal Mode As System.Integer, _
ByVal TemplateName As System.String, _
ByVal PaperSize As System.Integer, _
ByVal Width As System.Double, _
ByVal Height As System.Double _
) As System.String |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim Mode As System.Integer
Dim TemplateName As System.String
Dim PaperSize As System.Integer
Dim Width As System.Double
Dim Height As System.Double
Dim value As System.String
value = instance.GetDocumentTemplate(Mode, TemplateName, PaperSize, Width, Height) |
Parameters
- Mode
Document type as defined in swDocumentTypes_e (see Remarks)
- TemplateName
Name of custom template including full directory path
- 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
Name of the selected document template
Example
Remarks
See Also
Availability
SOLIDWORKS 2001Plus SP4, Revision Number 10.4