TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: jtm2020hyo on September 05, 2020, 09:43:16 AM

Title: Convert Layout to Block Definition
Post by: jtm2020hyo on September 05, 2020, 09:43:16 AM
Is there any AutoLisp than convert a Layout to Block and insert it to Model Space? I mean convert ViewPort to Xclip
Title: Re: Convert Layout to Block Definition
Post by: Marco Jacinto on September 05, 2020, 11:03:10 AM
Maybe Layoutstodwgs is the command what you are looking for
Title: Re: Convert Layout to Block Definition
Post by: PM on September 05, 2020, 04:54:36 PM
COMMAND CHSPACE . Convert Layout (paper space) to model space. Then you can convert it to block
Title: Re: Convert Layout to Block Definition
Post by: jtm2020hyo on September 05, 2020, 06:45:15 PM
A great use of Layout conversion to Block Def and paste it to Model is something I call Plot to DWG, I mean the same feature than DWG to PDF, for the same motive CHSPACE and LAYOUTtoDWG is discarded.

I did a review for:

1 LayoutsToDwg
2 Layouts2Dwg
3 LXA
4 LXAv2

all of they are awesome for individual drawing with layouts, but:

1 and 2 just export the same drawing with a unique layout.
3 and 4  cut the plan but have problems with xclipped block reference and external references:

https://forums.autodesk.com/t5/autocad-forum/publish-layout-to-dwg/td-p/9565819

the main problem is to convert a viewport in xclip, for this motive si request for help, I did not found solution, so maybe a simple LISP for convert Layouts to Block defintion could solve this.
Title: Re: Convert Layout to Block Definition
Post by: roy_043 on September 06, 2020, 04:09:04 AM
a simple LISP
What makes you think this would be a 'simple' Lisp function?