.NET

Reply
Valued Mentor
AubelecBE
Posts: 372
Registered: ‎01-27-2010
Message 1 of 5 (199 Views)

Help for using Publisher

199 Views, 4 Replies
01-20-2013 04:54 AM

Hi all.

 

How i can use Publisher for plotting a window .

 

I dont can use the plotting system. (I have many paper size and rotation so i have error eInvalidPlot)

 

So i have to use PDFCreator and plot a window after another.

 

I have check the DSD.. but i dont see the choose of window  (see only filenam or layout)

 

(I can create a view for my plot).

 

Anyone have a example for demonstrate the system of publisher ?

 

 

tanks.

*Expert Elite*
Alfred.NESWADBA
Posts: 8,892
Registered: ‎06-29-2007
Message 2 of 5 (186 Views)

Re: Help for using Publisher

01-20-2013 11:56 AM in reply to: AubelecBE

Hi,

 

>> How i can use Publisher for plotting a window

Do you mean "Microsoft Publisher" as product or the command _PUBLISH from AutoCAD?

If command _PUBLISH is requested then no, it does not support Window (AFAIK). The question then is why don's you use _PLOT instead? Or if you try to plot a series of drawings and/or multiple windows from modelspace why do you need _PUBLISH if you write the app that does the plot?

 

If you meant the product Publisher then you might have to search for forums about Publisher.

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Valued Mentor
AubelecBE
Posts: 372
Registered: ‎01-27-2010
Message 3 of 5 (168 Views)

Re: Help for using Publisher

01-21-2013 03:20 AM in reply to: Alfred.NESWADBA
I want to create a PDF with many page. Each page is from a Block. Each Bloc have different form. The only solution is --> PDFCreator...
*Expert Elite*
norman.yuan
Posts: 965
Registered: ‎04-27-2009
Message 4 of 5 (160 Views)

Re: Help for using Publisher

01-21-2013 07:30 AM in reply to: AubelecBE

I assume by "Publisher" you refer to Autodesk.AutoCAD.Publishing.Publisher class. I also assume that you have already read some articles posted in AutoCAD DevBlog, such as:

 

http://adndevblog.typepad.com/autocad/2012/04/publishing-all-layouts-of-the-drawing-file-to-a-dwf-fi...

http://adndevblog.typepad.com/autocad/2012/05/how-to-use-the-autodeskautocadpublishingpublisherpubli...

http://adndevblog.typepad.com/autocad/2012/05/how-to-use-autodeskautocadpublishingpublisherpublishex...

 

and also from www.theswamp.org:

 

http://www.theswamp.org/index.php?topic=31897.msg474069#msg474069

 

yes, with the API exposed in Autodesk.AutoCAD.Publishing, you can only publish/plot to PDF/Dwf(x) Layout (include Model layer).

 

In order to plot a portion of layout/model defined by a window, you have 2 choices:

 

1. Use API defined in Autodesk.AutoCAd.PlottingService namespace. You can search Kean Wamsley's posts for a series of posts on plotting by code. However there is a catch: if you want to plot into a multiple page PDF (no multiple Dwf(x) can be done in this way!) file, all the output paper size for each page MUST be the same. That is, if you want to plot a multiple windows into a multiple page PDF, you cannot plot to scale, if the windows sizes are different. You must use the same paper size for each page and scale to fit the output.

 

2. You can use Publisher. But you must create some temporary layouts for the plotting and delete them afterwards. Actually I just did a project similar to plotting content in certain windows. Since the issue I mentioned in 1, I have to use Publisher class. What I did is to create a searies of temporary layout, arrange the content to plot in those temporary layouts (copy, or whatever methods needed to make the content on the rtemp. layout look the same as the window enclosed). Then the drawing MUST BE SAVED before using Publisher to publish the temporary layout. After publishing, I then delete the temp. layouts. It sound complicated, but does good job in my case. The complexity lies in how to create the temp layout to show the content as the window enclosed, while using Publisher to publish layout is easy task.

Valued Mentor
AubelecBE
Posts: 372
Registered: ‎01-27-2010
Message 5 of 5 (158 Views)

Re: Help for using Publisher

01-21-2013 09:03 AM in reply to: norman.yuan

thanks for reply.

 

I use now PDFCreator. I plot one by one my window.

 

i think for use the plot with DWG to PDF.pc3 :

 

1 have bloc with/height : 410/297 and other : 297/410. So if i use MultiSheet and a rotation for each block i hae the eInvalidPlot error.  So i think to :

1 - create a UCS

2 - use commande _PLAN  for rotate my dwg.

3 - plot the window.

4 -process new block etc..

 

With this method, the rotation in the plot process is no more needed.

 

but it is much more easy to use PDFCreator... (I use autocad 2010)..

It is implemented in autocad 2013 ? If not why it is this way for a simple plot process...

 

i dont want use a secondary softwar for a plot...

 

. For me using Publisher is too hard now with my knowleg.

 

 

 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community