Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

batch export layout to model

14 REPLIES 14
Reply
Message 1 of 15
Anonymous
3571 Views, 14 Replies

batch export layout to model

We currently have a large amount of AutoCAD drawings we created in layout with viewports and the client at the end of the job wants them all turned into model space.

I know I can export from layout to model one at a time, does anyone know of a batch program, lisp or script that I can run to batch all of them in to model space.

Thanks, Blake!

14 REPLIES 14
Message 2 of 15
Patchy
in reply to: Anonymous

Google search

half a second can get you:

 

Capture.JPG

Message 3 of 15
Anonymous
in reply to: Patchy

Yes thanks i tried that one with a google serch also, it still seems to let me do one at a time and still keeps it in layout mode. But thanks for the help i am still looking for a batch fix, thanks!

Message 4 of 15
john.vellek
in reply to: Anonymous

Hi @Anonymous,

 

Perhaps you could incorporate this command into a script or macro:

 

(defun c:chs () ;;DCB2013
(if (=(getvar "tilemode")0)
(progn
(princ "\nSelect objects")
(ssget)
(command "_.copy" "p" "" "0,0" "0,0")
(command "_.chspace" "p")
)
(princ "\nMust be in paper space")
)
(princ)
)

 

 

I found it on this old post and credit should go to @Anonymous

 

 

I believe it is based on the old chspace.lsp that used to be included in Express Tools

 

Please hit the Accept as Solution button if my post fully solves your issue or answers your question.  


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
Message 5 of 15
john.vellek
in reply to: Anonymous

Hi @Anonymous

 


I am checking back to see if my post helped you with your problem. Please add a post with your results so other Forum users can benefit.

Please hit the Accept as Solution button if my post fully solves your issue or answers your question.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
Message 6 of 15
Anonymous
in reply to: john.vellek

I still couldn't get it to work, but i will keep looking, thanks!

Message 7 of 15
JRWillhite
in reply to: Anonymous

Not sure why this thread is marked solved, whereas, OP states the highlighted solution didn't work.  

 

Anyone have an actual solution for batch export of layouts to model?

Message 8 of 15
john.vellek
in reply to: JRWillhite

Hi @JRWillhite,

 

Have you considered using ExportLayout in a Macro? If you used this you could create a separate drawing with the contents of the layout in modelspace. A macro or script could perform this for each layout in the drawing.

 

You could even explore using the Merge Layout routine available in Express Tools

 

 

Capture.PNG

Please select the Accept as Solution button if my post solves your issue or answers your question.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
Message 9 of 15
JRWillhite
in reply to: john.vellek

Thanks, John. If I have time for it, I'll explore this further.
Message 10 of 15
scottspeig
in reply to: JRWillhite

Two years on, has anyone actually figured this one out yet? Seems odd you can't select multiple layouts and create multiple files. Would be very useful for the current systems Contractors are using...

 

Would have thought a LISP could do it, but I'm not a fan of actual programming...

Message 11 of 15
maratovich
in reply to: scottspeig

This is not a problem if you use an additional program. (not a lispe, not a macro)

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
Message 12 of 15
JanezicDesign
in reply to: Anonymous

5 years later, what additional programs are there? All I can find is a JTB plugin that exports the entire model space to a new file per layout, removing the other layouts. Batch Exporting Layout to Model would be different. Any suggestions on where else to look? I'm coming up empty.

Message 13 of 15
dan4S4AC
in reply to: JanezicDesign

This is the one you are looking for.

Message 14 of 15
maratovich
in reply to: JanezicDesign

Use this - Revers 

Additional function -> Exporting Tabs

rev.PNG

 

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
Message 15 of 15
Amriya_Exe
in reply to: dan4S4AC

Working FIne. 

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

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report