Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Valued Mentor
mdhutchinson
Posts: 2,290
Registered: ‎11-18-2003
Message 1 of 3 (168 Views)

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

168 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
owenwengerd
Posts: 620
Registered: ‎08-06-2002
Message 2 of 3 (129 Views)

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
Alexander.Rivilis
Posts: 1,406
Registered: ‎04-09-2008
Message 3 of 3 (120 Views)

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

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.