Visual Lisp - Check data type
Is there a generally accepted method for confirming data types in lisp? Specifically I want to check if the point type is a variant or not:
(if (= ptIns ?is a variant?)
(vlax-put-property myMText 'InsertionPoint ptIns)
(vlax-put-property myMText 'InsertionPoint (vlax-3d-point ptIns))
)
(if (= ptIns ?is a variant?)
(vlax-put-property myMText 'InsertionPoint ptIns)
(vlax-put-property myMText 'InsertionPoint (vlax-3d-point ptIns))
)
0
Comments
-
Have a look at(vle-variantp obj)
replacement for : (= (type obj) 'VARIANT)
0 -
0
This discussion has been closed.