Quicker in what way? If it happens in the blink of an eye how do you know it quicker?
That's because I can see faster than the blinking of an eye !
That's a joke of course !
Welcome to the Swamp.
Thanks ! I was in the swamp before . For years ! Now that I came back , though , my account had been terminated . But that's no problem . And the truth is i remember you ; yes , with the cab picture ! Oh , by the way , is Keith Blackie still around ? I knew him long before coming to the Swamp ; although I can't remember the name of the previous glorious site
.
Any way , as far as concerning the coding :
I didn't mean "faster" as far as concerning the time needed for the code to get executed . I was referring to the number of the lines . Of course what I thing of "faster" is personal ; there was no offense to David , who afterall kindly wrote down those codes .
I also tried to work it a little myself . I managed to find out that I can set the value of a property of an entinity (specifically here the Scale X , Y and Z factor of a Block object) by this :
( setq ObjectToChange ( ssget ":S" ) )
( setq PROPSsausage ( entget ( ssname ObjectToChange 0 ) ) ) ;(retrieve the sausage as it currently is)
( setq PROPSsausage ( subst ( cons 41 0.001 ) ( assoc 41 PROPSsausage) PROPSsausage) ) ;substitute the list with the new
( setq PROPSsausage ( subst ( cons 42 0.001 ) ( assoc 42 PROPSsausage) PROPSsausage) ) ;then for Scale Y
( setq PROPSsausage ( subst ( cons 43 0.001 ) ( assoc 43 PROPSsausage) PROPSsausage) ) ;then for Scale Z
( entmod PROPSsausage)
In which 41 is the characteristic number in the list of the property (for Scale X) and 0.001 is the new value .
Now all this made me happy for making me remember some of the old Lisp ! But soon I found out that this is not enough ! ... This code only works if you specifically select a single object ... But what about when there are a dozen of such blocks that need to be changed ? Well this is hard for me . Selecting them is easy (with SSget X) , but how will I set the value to each of the block ? I thing I'll have to somehow use the
foreach function . And I see that David has already used it . So I'll try to see if I can adopt it to my own code . Afterall , that's why I like programing : it's like Mathematics ; you can do the same thing through various of ways !
However , any suggestion will be welcomed !