Hide Table of Contents
IGetTemplateSizes Method (ISldWorks)

Gets the sheet properties from a template document.

.NET Syntax

Visual Basic (Declaration) 
Function IGetTemplateSizes( _
   ByVal FileName As String, _
   ByRef PaperSize As Integer, _
   ByRef Width As Double, _
   ByRef Height As Double _
) As Boolean
Visual Basic (Usage) 
Dim instance As ISldWorks
Dim FileName As String
Dim PaperSize As Integer
Dim Width As Double
Dim Height As Double
Dim value As Boolean
 
value = instance.IGetTemplateSizes(FileName, PaperSize, Width, Height)
C# 
bool IGetTemplateSizes( 
   string FileName,
   out int PaperSize,
   out double Width,
   out double Height
)
C++/CLI 
bool IGetTemplateSizes( 
&   String^ FileName,
&   [Out] int PaperSize,
&   [Out] double Width,
&   [Out] double Height
) 

Parameters

FileName

Name of template with full directory path

PaperSize
Paper size as defined in swDwgPaperSizes_e
Width

Custom paper width if PaperSize is set to swDwgPapersUserDefined

Height

Custom paper height if PaperSize is set to swDwgPapersUserDefined

Return Value

True if the operation is successful, false if not

 

See Also

Availability

SolidWorks 2001 FCS, Revision Number 9.0


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   IGetTemplateSizes Method (ISldWorks)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2012 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.