.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to set the PrintableArea use .NET?

3 REPLIES 3
Reply
Message 1 of 4
583408432
487 Views, 3 Replies

How to set the PrintableArea use .NET?

 

How to set the PrintableArea  use .NET?

 

Use PlotConfigManager can get the MediaBounds ,but how to set?

Set the paper margins to 0, like this:

 

Dim acPlConfig As PlotConfig = PlotConfigManager.CurrentConfig
Dim mdb As MediaBounds = acPlConfig.GetMediaBounds("A4")
'mdb.LowerLeftPrintableArea = New Point2d(0, 0)
'mdb.UpperRightPrintableArea = mdb.PageSize

 The code can not solve the problem, what is missing?

 

Any advice / guidance would be appreciated.

 

 

3 REPLIES 3
Message 2 of 4
mcicognani
in reply to: 583408432

Plotting is rather a wide argoument, may I suggest you the plot articles in Kean's blog? There are a few, from simpler to more advanced.

A good starting point would be this: http://through-the-interface.typepad.com/through_the_interface/2007/09/driving-a-basic.html

Message 3 of 4
583408432
in reply to: mcicognani

Thank you for your suggestion,but i want to set the MediaBounds(the page margins), not to set the SetPlotWindowArea.
I know Kean's blog, but still can not find what I want.
Message 4 of 4
Balaji_Ram
in reply to: 583408432

Hi,

 

You cannot change it for an existing media name.

 

But you can select a media name that is closest to the size that you want.

http://adndevblog.typepad.com/autocad/2012/05/how-to-implement-plotsettingsvalidatorsetclosestmedian...

 

Regards,

Balaji

 

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost