Hide Table of Contents
SetProperties2 Method (ISheet)

Sets the properties for this sheet.

.NET Syntax

Visual Basic (Declaration) 
Sub SetProperties2( _
   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, _
   ByVal SameCustomPropAsSheetInDocProp As System.Boolean _
) 
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
Dim SameCustomPropAsSheetInDocProp As System.Boolean
 
instance.SetProperties2(PaperSz, Templ, Scale1, Scale2, FirstAngle, Width, Height, SameCustomPropAsSheetInDocProp)
C# 
void SetProperties2( 
   System.int PaperSz,
   System.int Templ,
   System.double Scale1,
   System.double Scale2,
   System.bool FirstAngle,
   System.double Width,
   System.double Height,
   System.bool SameCustomPropAsSheetInDocProp
)
C++/CLI 
void SetProperties2( 
&   System.int PaperSz,
&   System.int Templ,
&   System.double Scale1,
&   System.double Scale2,
&   System.bool FirstAngle,
&   System.double Width,
&   System.double Height,
&   System.bool SameCustomPropAsSheetInDocProp
) 

Parameters

PaperSz

Paper size as defined in swDwgPaperSizes_e (see Remarks)

Templ

Template as defined in swDwgTemplates_e (see Remarks)

Scale1
Scale numerator (see Remarks)
Scale2
Scale denominator (see Remarks)
FirstAngle

True if you want first angle projection, false if not

Width
Custom paper width if PaperSz = swDwgPaperSizes_e.swDwgPaperUserDefined (see Remarks)
Height
Custom paper height if PaperSz = swDwgPaperSizes_e.swDwgPaperUserDefined (see Remarks)
SameCustomPropAsSheetInDocProp
True to select the Same as sheet specified in Document Properties check box in the Sheet Properties dialog, false to not (see Remarks)

Example

Remarks

If you... Then...
Specify a custom template The current custom template is used by this sheet until you call ISheet::SetTemplateName and pass in a different custom template name.
Specify a value for Templ that does not match PaperSz The template does not fit the paper size. Templ does not override the PaperSz setting.
Change the scale of the sheet using Scale1 and Scale2 Any drawing view that is set to use the sheet's scale takes the new scale setting.
Set SameCustomPropAsSheetInDocProp to true The Tools > Options > Document Properties > Drawing Sheets > Use custom property values from the sheet check box must be preselected.

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

 

See Also

Availability

SOLIDWORKS 2016 FCS, Revision Number 24.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:   SetProperties2 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) 2022 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.