Set the layout PageSetup to None

Set the layout PageSetup to None

Rockit_for_Revit
Advocate Advocate
826 Views
1 Reply
Message 1 of 2

Set the layout PageSetup to None

Rockit_for_Revit
Advocate
Advocate

How can I set the PageSetup to none for all Layouts? In Lisp or .net.

The examples given below are to set the page setup, but what if I want no page setups.

 

http://help.autodesk.com/view/ACD/2016/ENU/?guid=GUID-56BD3247-471C-4471-A238-FFDFDC3BD2E4

 

Kind Regards

David

 

 

 

 

0 Likes
Accepted solutions (1)
827 Views
1 Reply
Reply (1)
Message 2 of 2

ActivistInvestor
Mentor
Mentor
Accepted solution

Having never needed to do this, this is mostly a guess.

 

Layout layout = // assign to the layout whose page setup is to be set to 'none'

PlotSettings plotSettings = new PlotSettings(layout.ModelType);

layout.CopyFrom(plotSettings);

If that works, You may also need to change the Layout's PlotSettingsName property to an empty string or null

 


@Rockit_for_Revitwrote:

How can I set the PageSetup to none for all Layouts? In Lisp or .net.

The examples given below are to set the page setup, but what if I want no page setups.

 

http://help.autodesk.com/view/ACD/2016/ENU/?guid=GUID-56BD3247-471C-4471-A238-FFDFDC3BD2E4

 

Kind Regards

David

 

 

 

 


 

0 Likes