How to chamge Sheet setup

 

HI,

    I want to change the sheet setup of draft in solid edge.

I have used following code.

objDoc.Sheets(1).SheetSetup.SheetSizeOption = igIsoA4Wide

objDoc.Sheets(1).SheetSetup.DefaultDrawingViewScaleOption = igEng1To1

objDoc.Sheets(1).SheetSetup.PaperUnits = igUnitMillimeters

objDoc.Sheets(1).SheetSetup.PaperUnitsPrecision = igPrecisionOnes

Call objDoc.Sheets(1).SheetSetup.SetDefaultDrawingViewScale(1, 1)

objDoc.Sheets(1).Background = objDoc.Sheets(1)

objDoc.Sheets(1).BackgroundVisible = True

objDoc.Sheets(1).Visible = True

i do get the sheet changed but thr problem is, i cant get background sheet.

Bye..

 

Posted by: Pritam Dulam
Post date: 7/30/2009 10:39:33 PM

3 REPLIES

RE: How to chamge Sheet setup

Hi,

 

you should use the sheets collections of objDoc.Sections.WorkingSection.Sheets or objDoc.Sections.BackgroundSection.Sheets respectively.

 

 

Posted by: Wolfgang Kunert
Post date: 7/30/2009 10:57:18 PM

RE: How to chamge Sheet setup

 

could u explai it a bit more??

 

Posted by: Pritam Dulam
Post date: 7/30/2009 11:18:36 PM

RE: How to chamge Sheet setup

yes,

 

instead of using

 

objDoc.Sheets(1).SheetSetup ....

 

use

 

objDoc.Sections.WorkingSection.Sheets(1).SheetSetup ...

 

to configure the foreground sheets. For the background sheets replace WorkingSection by BackgroundSection

 

 

Posted by: Wolfgang Kunert
Post date: 7/30/2009 11:54:26 PM