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

Paper Size with variable length

7 REPLIES 7
Reply
Message 1 of 8
Anonymous
1292 Views, 7 Replies

Paper Size with variable length

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

 

 

7 REPLIES 7
Message 2 of 8
Hallex
in reply to: Anonymous

Read this article carefully

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

 

hth,

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Message 3 of 8
Anonymous
in reply to: Anonymous

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

 

 

Message 4 of 8
Hallex
in reply to: Anonymous

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
Message 5 of 8
Anonymous
in reply to: Anonymous

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

Message 6 of 8
Hallex
in reply to: Anonymous

Sorry I can't help with it,

maybe somebdody else from this NG is knows

about these special plotting issue

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Message 7 of 8
Virupaksha_aithal
in reply to: Anonymous

Hi

 

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



Virupaksha Aithal KM
Developer Technical Services
Autodesk Developer Network

Message 8 of 8

Hi!

Any news here? or is it still impossible? 

Thanks!

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

Post to forums  

Forma Design Contest


Autodesk Design & Make Report