Hide Table of Contents
SetupSheet4 Method (IDrawingDoc)

Obsolete. Superseded by IDrawingDoc::SetupSheet5.

.NET Syntax

Visual Basic (Declaration) 
Function SetupSheet4( _
   ByVal Name As String, _
   ByVal PaperSize As Integer, _
   ByVal TemplateIn As Integer, _
   ByVal Scale1 As Double, _
   ByVal Scale2 As Double, _
   ByVal FirstAngle As Boolean, _
   ByVal TemplateName As String, _
   ByVal Width As Double, _
   ByVal Height As Double, _
   ByVal PropertyViewName As String _
) As Boolean
Visual Basic (Usage) 
Dim instance As IDrawingDoc
Dim Name As String
Dim PaperSize As Integer
Dim TemplateIn As Integer
Dim Scale1 As Double
Dim Scale2 As Double
Dim FirstAngle As Boolean
Dim TemplateName As String
Dim Width As Double
Dim Height As Double
Dim PropertyViewName As String
Dim value As Boolean
 
value = instance.SetupSheet4(Name, PaperSize, TemplateIn, Scale1, Scale2, FirstAngle, TemplateName, Width, Height, PropertyViewName)
C# 
bool SetupSheet4( 
   string Name,
   int PaperSize,
   int TemplateIn,
   double Scale1,
   double Scale2,
   bool FirstAngle,
   string TemplateName,
   double Width,
   double Height,
   string PropertyViewName
)
C++/CLI 
bool SetupSheet4( 
&   String^ Name,
&   int PaperSize,
&   int TemplateIn,
&   double Scale1,
&   double Scale2,
&   bool FirstAngle,
&   String^ TemplateName,
&   double Width,
&   double Height,
&   String^ PropertyViewName
) 

Parameters

Name
Name for the sheet
PaperSize
Size of paper if using swDwgTemplateNone as defined in swDwgPaperSizes_e
TemplateIn
Template as defined in swDwgTemplates_e
Scale1
Scale numerator
Scale2
Scale denominator
FirstAngle
True for first angle projection, false otherwise
TemplateName
Name of custom template with full directory path if using swDwgTemplateCustom
Width
Paper width if TemplateIn is set to swDwgTemplateNone or swDwgPapersUserDefined
Height
Paper height if TemplateIn is set to swDwgTemplateNone or swDwgPapersUserDefined
PropertyViewName
Name of view containing the model from which to get custom property values

Return Value

True if set successfully, false if not

Example

Remarks

Call IModelDoc2::ForceRebuild3 after calling IDrawingDoc::SetupSheet4 to update any changes to first angle/third angle projections in the drawing views.

If you specify a different filename for TemplateName than what is currently being used by SolidWorks, then SolidWorks updates the sheet format.

 

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:   SetupSheet4 Method (IDrawingDoc)
*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.