So, I'm trying to change (if a selection set exists) all items in the current selection set to a new layer created using VLISP and the vla-add.
However, a selection set is apparently NOT a collection, and to use vlax-map-collection, it obviously must be a collection.
how would I convert or create a 'collection' with my active selection set?
here is the part of the code I'm working with (that doesn't work)
(if
(vla-get-activeselectionset (vla-get-activedocument *ACAD*))
(vlax-map-collection '(lambda (x)
(vla-put-layer x newLayer))
(vla-get-activeselectionset)) ;<-- cannot use a selection set (gets "too few arguments" error)
)
thanks!