TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: dexus on September 13, 2022, 04:25:29 PM
-
I've been using the AddToBlock function by Lee Mac.
Which can be found here: http://www.lee-mac.com/addobjectstoblock.html
I thought it would be a good addition if it also worked within the block editor. The "Edit Block In-place" editor that is.
There you can select the grayed out items that are outside of the block and add it to the current block.
In the gif below I tried to show how it works.
Below is the code to be added to AddObjectsToBlockV1-2.lsp on line 49 right after the first cond statement.
Please note it also requires to have these functions loaded: http://www.lee-mac.com/draworderfunctions.html
( (/= (getvar 'refeditname
) "") (if (setq sel
(LM:
ssget "\nSelect object to copy to current block: " '
("_:L"))) )
)
(LM:movetotop sel2)
)
)
)