Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Valued Mentor
2,345 Posts
9 Kudos
Registered: ‎11-18-2003
Post 1 of 3

Get a 3rd party object with ObjectDBX or native lisp.

171 Views, 2 Replies
01-30-2013 11:02 AM

Ultimately I want to count a 3rd party objects, when the drawing is closed....  But a side note first...

 

I would have thought that this would have worked when the drawing is open... I double checked the spelling and it is correct.

But it does not work. Shouldn't this be possible?

 

 

(setq ss (ssget "X" (list (cons 0 "CompXHangerPnt"))))

 

(For sake of discussion I've have fictitious name in the example here).

 

... could it work somehow with activeX vla- functions?

 

Distinguished Mentor
739 Posts
100 Kudos
Registered: ‎08-06-2002
Post 2 of 3

Re: Get a 3rd party object with ObjectDBX or native lisp.

02-18-2013 06:33 AM in reply to: mdhutchinson

What you have should work fine as long as the entities are in model or paper space, you just need to use the correct DXF name.

--
Owen Wengerd
ManuSoft
Moderator
1,465 Posts
277 Kudos
Registered: ‎04-09-2008
Post 3 of 3

Re: Get a 3rd party object with ObjectDBX or native lisp.

02-18-2013 07:45 AM in reply to: owenwengerd

As far as I remember if  parameter DXF_NAME in ACRX_DXF_DEFINE_MEMBERS macro of custom entity is not fully uppercase  -  (ssget "_X" <dxf-name>) is not working properly and return nil.


Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!