Thanks for noting WBLOCK works on LT. I tried this and it works.
The issue is complicated to explain but is as follows.
- It was setup for the full version of AutoCAD.
- The filename and block name were the same, along the lines of "UniversalBeam_530UB82.0".
- Each drawing is inserted via a MNU file. See CODE 1A.
- The MNU file uses LISP routine to insert block and truncate name I think. So "UniversalBeam_530UB82.0" becomes "530UB82.0". See CODE 1B.
With LT, LISP doesn't work. I then tried to insert directly as per CODE 2.
This is for the block with WBLOCK applied.
When inserted, only lines/arcs are shown for the first visibility state of the dynamic block, and it's not a block anymore.
The only way CODE 2 works if I go back and rename all the blocks in the files. From "UniversalBeam_530UB82.0" to "530UB82.0" as an example.
CODE 1A: USED IN FULL AUTOCAD - USES LISP
***MENUGROUP=STRUCTURAL_STEEL_DYNAMIC
***POP112
**CTOPopSTRUCTURAL_STEEL_DYNAMIC
[Structural Steel (D)]
[->UB]
[530UB92.4]^C^C(BlockInsert_NotScaled_NotExploded "UniversalBeam_530UB92.4");
[530UB82.0]^C^C(BlockInsert_NotScaled_NotExploded "UniversalBeam_530UB82.0");
[--]
CODE 1B: LISP
(defun BlockInsert_NotScaled_NotExploded (blkname)
(command "_.-insert" (substr (strcat blkname "-" (menucmd "m=$(edtime,0,yymoddhhmmss)") "=" blkname) (+ (vl-string-position (ascii "_") blkname 1) 2)) pause 1 "" 0)
)
CODE 2: USED IN LT - NO LISP
***MENUGROUP=STRUCTURAL_STEEL_DYNAMIC
***POP212
**CTOPopSTRUCTURAL_STEEL_DYNAMIC
[Structural Steel (D)]
[->UB]
[530UB92.4]^C^C-INSERT 530UB92.4_File;SCALE;1;ROTATE;0;EXPLODE;Y;
[530UB82.0]^C^C-INSERT 530UB82.0_File;SCALE;1;ROTATE;0;EXPLODE;Y;
[--]