Jump to content

2010 lisp failure


dhl

Recommended Posts

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 by dhl
Link to comment
Share on other sites

  • Replies 21
  • Created
  • Last Reply

Top Posters In This Topic

  • Lee Mac

    9

  • dhl

    7

  • Tharwat

    3

  • ReMark

    2

Top Posters In This Topic

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 ;)

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...