With this snip of code I get a variant:
Command: (vlax-variant-value (vla-getCanonicalMediaNames (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object)))))
#<safearray...>
But when i try to list these I get:
Command: (vlax-safearray->list (vlax-variant-value (vla-getCanonicalMediaNames (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object)))))) ; error: ActiveX Server returned an error: Invalid index
What does this error mean?
Bill
Command: (vlax-variant-value (vla-getCanonicalMediaNames (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object)))))
#<safearray...>
But when i try to list these I get:
Command: (vlax-safearray->list (vlax-variant-value (vla-getCanonicalMediaNames (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object)))))) ; error: ActiveX Server returned an error: Invalid index
What does this error mean?
Bill