Code Red => AutoLISP (Vanilla / Visual) => Topic started by: damn on March 01, 2021, 02:04:15 AM
Title: Error: Automation Error. Cannot scale nonuniformly
Post by: damn on March 01, 2021, 02:04:15 AM
I'm stumped on this error. In a new drawing session if I open Template "C" and run a layout generator routine I get this error. If I open Template "A" and rerun the routine it works. If Template "A" has been open at any stage during the session it will work. I've pinpointed down to a key viewport that is rezoomed on ea layout. I Haven't written the following code and whilst it mostly works well much of it is poorly documented. I've also pinpointed the code down to this line. (vla-transformby obj mat)
I realise that's not much help. What possibly could opening another template introduce to prevent the error?
Title: Re: Error: Automation Error. Cannot scale nonuniformly
Post by: BIGAL on March 01, 2021, 08:16:36 PM
telstra your in AUS
To many unknowns you have 3 variables with no idea of values.
Explain what it is your trying to do.
Title: Re: Error: Automation Error. Cannot scale nonuniformly
Post by: damn on March 02, 2021, 05:37:52 PM
Hi Al, yeah I'm Aus. In short the code is part of a function creating layouts base on the number of frames in the drawing. I haven't tried to figure what this part of the code does as up till now it worked as I always used template A 1st. One of my colleagues discovered when they jumped straight into template C and at 1st I couldn't replicate their problem.
This part of the function zooms on the Key viewport in on the current frame relative to the created to layout and from what I can read it try to sort draw order. Code elaborated, sorry still poorly documented. I realise this probably won't help. I was hoping the scale nonuniformly was common bug.