dhl Posted November 29, 2010 Author Share Posted November 29, 2010 (edited) How come this routine ends up in bad argument: lentityp .... (vl-load-com) (setq ss (entsel)) (setq ss (vlax-get (vlax-ename->vla-object ss) 'location)) **EDIT** solved it... Edited November 29, 2010 by dhl Quote Link to comment Share on other sites More sharing options...
irneb Posted November 29, 2010 Share Posted November 29, 2010 Because the entsel gives more than just the entity's ename. It usually consists of a list ( (pickpoint)). The vlax-ename->vla-object expects an ename only, not a list. So you if you've obtained the ename from entsel you should use car (first item in list) to extract only the ename. ... just for those who might want to know how you solved it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.