TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Lastknownuser on June 23, 2023, 08:43:39 AM

Title: Can't change layout viewport scale using vla-put-customscale
Post by: Lastknownuser on June 23, 2023, 08:43:39 AM
Like the thread title says, vla-put-customscale doesn't work for me in autocad 2021 version. I used it before and it worked on version 2018 so its weird I can't figure out why, maybe some system variable?
So vla-put-customscale doesn't work for viewports in layouts from model space, and it only works if I'm in certain layout. SSGET and loop through all layouts doesn't work either.
I also asked the question on CADTutor, codes are posted there: https://www.cadtutor.net/forum/topic/77767-edit-vla-objects-in-layouts-from-model/

Any help or info would be welcome, thanks
Title: Re: Can't change layout viewport scale using vla-put-customscale
Post by: Tharwat on June 23, 2023, 08:55:43 AM
You may have the viewport locked.
Title: Re: Can't change layout viewport scale using vla-put-customscale
Post by: Lastknownuser on June 23, 2023, 11:03:31 AM
SOLVED! It was LAYOUTREGENCTL sys variable, it was set to 2 (by default), changed it to 0 like it was on my previous work pc. Listed all variables from old pc and compared with current.