Pascal - ScaleByAdd Script


#1

Hi Pascal.
Should your V4 ScaleByAdd script work in V5? I’m working on a model atm that this would be perfect for, but I get:
Type mismatch in parameter. Array required
Line: 46
Char: 15
when trying to scale 1D.
Thanks
Matt


Workaround: how to type that something should scale 0.5mm smaller when 1Dscale?
(Pascal Golay) #2

Hi Matt- seems to work OK here- I’ll attach the one I just tested, - line 46 is commented out, so I am not sure what that is about but in any case, this one seems to work as expected here.
BTW, @MattE , you can type @pascal in your note if you need a response specifically from me, and want to make sure I am notified.

ScaleByAdd (2).zip (1.1 KB)

-Pascal


#3

@pascal - tried it again on a closed polysurface using 1D and it works fine. It has a problem with doing the same thing to a plain old line rectangle though.
Matt


(Pascal Golay) #4

Hmm- this seems fine here - did you try replacing what you have with the one I posted above a while ago?

-Pascal


#5

Oooops. Apologies @pascal . The new one sorts the problem. Many thanks