To Export Selected Layouts to a PDF File- AUTOLISP PROGRAM

To Export Selected Layouts to a PDF File- AUTOLISP PROGRAM

Anonymous
Not applicable
1,449 Views
8 Replies
Message 1 of 9

To Export Selected Layouts to a PDF File- AUTOLISP PROGRAM

Anonymous
Not applicable

I need a program which should export all the layout views of a 3D model to a single pdf but i dont want its model view in it

0 Likes
1,450 Views
8 Replies
Replies (8)
Message 2 of 9

cadffm
Consultant
Consultant

My questions to you:

1. Why you want a AUTOLISP PROGRAM if you want to create a pdf with just selected layouts?

2. Select the tabs/layer, right click and choose ''Publish selected layouts", whats wrong for you with that way?

 

And

 

3. Are the layout pagesetup well set?

Sebastian

0 Likes
Message 3 of 9

Anonymous
Not applicable

I have a large number of files for which i have to convert them to pdfs.

1. My dwg file consists of model, top view, front view and side view as its different layouts and its BOM.

2. For these files i do not need model view in the pdf.

0 Likes
Message 4 of 9

maratovich
Advisor
Advisor

Attach an example of your dwg file.
We need to see your title block.

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
0 Likes
Message 5 of 9

cadffm
Consultant
Consultant

You never have the model in your pdf, except you plot/export the model tab.

So you can use the way i described: PUBLISH

And you can do it for 100 files.

Start command PUBLISH, press [F1] and look some Videos on Youtube to

learn about PUBLISH.

For just creating PDF, if single page or multipage, publish is good.

Except if you want to publish an multipage-pdf for each of your DWG, then you need a program extension.

(the first important question then: In which order should be the layouts/pages in the multipage pdf?)

 

But...

You wrote "BOM", so i guess you are not talking about plain AutoCAD?

Which product, which command you are talking about really?

 

So, what is the challange now?

Sebastian

0 Likes
Message 6 of 9

Anonymous
Not applicable

(defun c:PAL ()
(foreach lay (layoutlist)
(setvar 'CTab lay)
(COMMAND "-PLOT"
"Y"
""
"DWG To PDF.pc3"
"ANSI full bleed A (8.50 x 11.00 Inches)"
"Inches"
"LANDSCAPE"
"N"
"E"
"f"
"C"
"Y"
"monochrome.ctb"
"Y"
"N"
"N"
"N"
""; Name of file
"N"
"y" )
)
)

 

I tried this program but i want a multipage pdf, it prints seperate pdf

0 Likes
Message 7 of 9

RobDraw
Mentor
Mentor

You don't need special code for this, as others have said.  AutoCAD is capable of doing what you want without any special customization.


Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.
0 Likes
Message 8 of 9

cadffm
Consultant
Consultant

So you want a multipage-pdf per file for a lot of files - Thats not so simple, sorry.

If you able to program an extension yourself.. we can talk about (which programming language ?)

 

Try 3.part programs like that -> https://anydwg.com/dwg2pdf/

 

 

Sebastian

0 Likes
Message 9 of 9

maratovich
Advisor
Advisor

This is an empty talk.
No sample file. Will we continue to guess?
Attach an example file.

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
0 Likes