AutoLISP STDLIB mail archive [part 11], 27.Oct.00 - 17.Oct.01
[Date Prev][Date Next] [Thread Prev][Thread Next]     [Date Index] [Thread Index] [Author Index]

uncooperative std-layer-freeze/lock/thaw-vp/freeze-vp functions



Hey there Reini,

Given:

Both AutoCAD R14.01 & ADT2i (and my guess is everything in between...)
+
Latest stdlib module downloads - in particular...
;$Id: STDTBL.LSP 0.5006 2000/12/31 10:59:00 rurban Rel $ -*-AutoLISP-*-
;;; Time-stamp: <2000-12-31 11:30:56 rurban>
+
strlst =>
'("ARCH" "CNC_FTG" "D_FTG" "E_FTG_STEP_16" "F_FTG_STEP_16" "F_SLAB"
"F_TSLAB"
"CNC_WALL" "F_WALL_DASHED" "GRID_BUB_16" "E_GROUT" "F_MAS_BRICK" "MAS_JOINT"
"MAS_POCHE" "D_MAS_POCHE" "NOTE_16_DIM" "NOTE_16_TITLE" "NOTE_16_WELD"
"D_STL"
"STL_BEAM_MAJ" "STL_BOLT_EPOXY" "E_BOLT" "D_BOLT" "STL_GRATE" "STL_LAG_BOLT"
"D_STL_LAG_BOLT" "STL_LDGR")

[any layer name list should suffice]

then...

Command: (mapcar 'std-layer-freeze strlst)
(<Entity name: 8f40c60> <Entity name: 8f40d00> <Entity name: 8f40d10>
<Entity
name: 8f40d28> <Entity name: 8f40d38> <Entity name: 8f40da0> <Entity name:
8f40dc0> <Entity name: 8f40dc8> <Entity name: 8f40e00> <Entity name:
8f40e30>
<Entity name: 8f40e68> <Entity name: 8f40ea0> <Entity name: 8f40ea8> <Entity
name: 8f40ee8> <Entity name: 8f40ef8> <Entity name: 8f40f78> <Entity name:
8f40f90> <Entity name: 8f40f98> <Entity name: 8f41008> <Entity name:
8f41018>
<Entity name: 8f41078> <Entity name: 8f410a0> <Entity name: 8f410a8> <Entity
name: 8f41120> <Entity name: 8f41168> <Entity name: 8f41178> <Entity name:
8f41188>)

OK - sounds good - but the layers remain thawed!
std-layer-lock/thaw-vp/freeze-vp all do the same thing.

What's wrong with this picture?  :-/

Or am I abusing these functions somehow?
std-layer-on/off/unlock functions ARE working as expected.

I've temporarily worked around the above (for freeze), down-and-dirtily,
with:
(command "_.-LAYER" "_Freeze" (STD-STRLIST->CSSTRING strlst) "")

Best regards,
David Kozina

No other major problems to report  STOP
Too busy for much programming (I hit the above glitches today)  STOP
Yields => Current STDLIB implementation working pretty good  :)