How to fix this code...

How to fix this code...

danglar
Advocate Advocate
460 Views
4 Replies
Message 1 of 5

How to fix this code...

danglar
Advocate
Advocate

I tried to improve program (see attached lisp file), but have some issues with it..

This program export layout names to excel file with dimension of each layouts (paper size)

Program working properly but have a real problem with functionality. I mean program return only

Dimensions of CURRENT TAB, but I need it for each one of layouts. I think, function (papersize) working only for current tab so I can’t to invoke this function for each one of tabs..

Can somebody fix it?

Any help will be very appreciated

 

0 Likes
461 Views
4 Replies
Replies (4)
Message 2 of 5

wispoxy
Advisor
Advisor
Working on it. Issue:

(vlax-for olayout olayouts
(if (/= "Model" (setq layoutname (vla-get-name olayout)))
0 Likes
Message 3 of 5

danglar
Advocate
Advocate

unfortunaly your solution not working.. you can to do an experiment ( see attached lisp) with some layouts wich have different dimensions (paper sizes) but finaly you return a table with a same sizes

0 Likes
Message 4 of 5

wispoxy
Advisor
Advisor
Didn't have a solution, I was just telling you what area of the code I was working on at the time.
0 Likes
Message 5 of 5

danglar
Advocate
Advocate

Another way to make one step to solution of this issue is - to invoke this function instead of internal function (papersize) (see attached lisp)
But in this case I need variable as name of layout..
something like this:

(plotpapersize(layoutget "layout name"))

..and make the loop from first layoyt to last..
Can somebody help me?

0 Likes