List of CanonicalMediaNames Error.

BillZ

Usenet Archive
Joined
Jul 9, 2003
Messages
1,001
Reaction score
0
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
 
Nevermind:

Needed: (vla-RefreshPlotDeviceInfo

Bill
 
BTW you need to use.

(vla-RefreshPlotDeviceInfo
(vla-get-activelayout
(vla-get-activedocument
(vlax-get-acad-object))))
 
Yup,
Thanks.
It's just a mtter of beating your head on this stuff until you learn it. \8^?

Bill
 

Latest threads

Back
Top