I am not entirely confident in using this function, but I want to master it.
Currently, when extracting an item from a collection, I am using vlax-for to cycle through the collection, and using some kind of conditional within the loop to get the required object, for example:
(vlax-for lay (vla-get-layers
(vla-get-ActiveDocument
(vlax-get-acad-object)))
(if (eq "LayerName" (vla-get-Name lay))
(setq layer lay)))
But is there a way to get at this item directly? I thought perhaps vla-item, but I may be mistaken.
[ And if it isn't Vla-item, then what exactly is Vla-item for...? ]
Many thanks for your time as always,
Cheers,
Lee