vlax-method-applicable-p (AutoLISP)

Determines if an object supports a particular method

(vlax-method-applicable-p obj method)

Arguments

obj

A VLA-object.

method

A symbol or string containing the name of the method to be checked.

Return Values

T, if the object supports the method; otherwise nil.

Examples

The following commands are issued against a LightweightPolyline object:

(vlax-method-applicable-p WhatsMyLine 'copy)
T

(vlax-method-applicable-p WhatsMyLine 'AddBox)
nil