.NET

Reply
Active Member
6 Posts
0 Kudos
Registered: ‎07-31-2012
Post 1 of 7

Paper Size with variable length

501 Views, 6 Replies
08-01-2012 02:18 AM

Hi,

I'm trying to plot in pdf many dwg file.

The files have a fixed height but variable in length.

The length of the file I'll take the "scroll".

So i want to create a paper size with a specific dimension.

 

psv.SetPlotConfigurationName(ps, "DWG To PDF.pc3", "Name of the paper");

 

How can I do?

Daniele

 

 

*Expert Elite*
1,569 Posts
171 Kudos
Registered: ‎10-08-2008
Post 2 of 7

Re: Paper Size with variable length

08-01-2012 06:04 AM in reply to: Danius87

Read this article carefully

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

 

hth,

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Active Member
6 Posts
0 Kudos
Registered: ‎07-31-2012
Post 3 of 7

Re: Paper Size with variable length

08-01-2012 07:02 AM in reply to: Danius87

I'm sorry but when i try to start this code, i have the following error:

 

eInvalidInput at the line 'num'

 

num      psv.SetPlotPaperUnits(layout, units);

 

How can i resolve it?

Thanks

 

 

*Expert Elite*
1,569 Posts
171 Kudos
Registered: ‎10-08-2008
Post 4 of 7

Re: Paper Size with variable length

08-01-2012 07:14 AM in reply to: Danius87

Sorry, Daniele, I haven't regenerate same error

What I have a got on my machine (A2010):

 

Command: netload

*---    TesterCS loaded    ---

Command: SetClosestMediaNameCmd

--- Plotting Devices ---

1 - None

2 - Отправить в OneNote 2007

3 - Microsoft XPS Document Writer

4 - Fax

5 - Default Windows System Printer.pc3

6 - DWF6 ePlot.pc3

7 - DWFx ePlot (XPS Compatible).pc3

8 - DWG To PDF.pc3

9 - PublishToWeb JPG.pc3

10 - PublishToWeb PNG.pc3

Enter device number: 8

Enter Media Height(mm):

Requires numeric value.

Enter Media Height(mm): 287

Enter Media Width(mm): 210

- Closest Media: ISO full bleed A4 (210.00 x 297.00 MM)

- Offset: 1297.65601968553

- Rotation: Degrees090

 

So all is looking good for me

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Active Member
6 Posts
0 Kudos
Registered: ‎07-31-2012
Post 5 of 7

Re: Paper Size with variable length

08-01-2012 09:36 AM in reply to: Danius87

yes it work, i'm sorry  ... i had a problem with autocad 2010 and the netload.

If i understand the solution of this code is to take the input from the user (o from a code) and searching in the paper size the best choice ... but from existing paper size, not by a created one.

It's correct?

In my case this solution can be very complex because i have three height (30, 60 and 90 centimeter) and a width that start from 1 meter to 5 meter according to the design.
There isn't  another choice?

Thank you very much for the help

*Expert Elite*
1,569 Posts
171 Kudos
Registered: ‎10-08-2008
Post 6 of 7

Re: Paper Size with variable length

08-01-2012 12:04 PM in reply to: Danius87

Sorry I can't help with it,

maybe somebdody else from this NG is knows

about these special plotting issue

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
ADN Support Specialist
102 Posts
26 Kudos
Registered: ‎06-15-2011
Post 7 of 7

Re: Paper Size with variable length

08-08-2012 11:57 PM in reply to: Danius87

Hi

 

Sorry, at present it is not possible to create paper size using API.



Virupaksha Aithal KM
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!