Hide Table of Contents
SetProperties Method (ISheet)

Sets the properties for this sheet.

.NET Syntax

Visual Basic (Declaration) 
Sub SetProperties( _
   ByVal PaperSz As System.Integer, _
   ByVal Templ As System.Integer, _
   ByVal Scale1 As System.Double, _
   ByVal Scale2 As System.Double, _
   ByVal FirstAngle As System.Boolean, _
   ByVal Width As System.Double, _
   ByVal Height As System.Double _
) 
Visual Basic (Usage) 
Dim instance As ISheet
Dim PaperSz As System.Integer
Dim Templ As System.Integer
Dim Scale1 As System.Double
Dim Scale2 As System.Double
Dim FirstAngle As System.Boolean
Dim Width As System.Double
Dim Height As System.Double
 
instance.SetProperties(PaperSz, Templ, Scale1, Scale2, FirstAngle, Width, Height)
C# 
void SetProperties( 
   System.int PaperSz,
   System.int Templ,
   System.double Scale1,
   System.double Scale2,
   System.bool FirstAngle,
   System.double Width,
   System.double Height
)
C++/CLI 
void SetProperties( 
&   System.int PaperSz,
&   System.int Templ,
&   System.double Scale1,
&   System.double Scale2,
&   System.bool FirstAngle,
&   System.double Width,
&   System.double Height
) 

Parameters

PaperSz

Paper size as defined in swDwgPaperSizes_e

Templ

Template index as defined in swDwgTemplates_e

Scale1

Scale numerator

Scale2

Scale denominator

FirstAngle

True if you want first angle projection, false if not

Width

Custom paper width if PaperSz = swDwgPapersUserDefined

Height

Custom paper height if PaperSz = swDwgPapersUserDefined

Remarks

If you specify a custom template, then the current custom template is used by this sheet until you call ISheet::SetTemplateName and pass in a different custom template name.

NOTE: If Templ does not match the PaperSz specification, then you get a template that does not fit the paper size. This argument does not override the PaperSz setting.

Also, if you change the scale of the sheet using Scale1 and Scale2, then any drawing view which is set to use the sheet's scale takes the new scale setting.

You can also use ISheet::SetSize to set the size of the sheet and the standard sheet size.

 

See Also



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:   SetProperties Method (ISheet)
*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) 2015 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.