If you were to simplify Visual LISP what functionality would you add?
Many of the most repetitive routines should be added and we can do that with an open source lisp file.
If any of you have any idea's I can compile and maintain them.
like I shared "shortfunctions.lsp" file a week or so ago that makes getting and putting properties a breeze.
I am working on adding other functionality to it.
Like these two functions
(toobject is in the shortfunctions.lsp file or can be removed if you always pass a vla-object to these functions.)
Code:(defun BlockDefinition (obj) (if (and (setq obj (toobject obj)) (wcmatch (vla-get-objectname obj) "AcDbBlockReference,AcDbMInsertBlock") ) (vla-item (blocks (document obj)) (effectivename obj)) ) ) (defun CollectionToList (colItems / lstReturn) (if (and (setq colItems (toobject colItems)) (vlax-method-applicable-p colItems "ITEM") (vlax-map-collection colItems '(lambda (X)(setq lstReturn (cons X lstReturn)))) ) (reverse lstReturn) ) )