Visual LISP, AutoLISP and General Customization

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

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

162 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: 592
Registered: ‎08-06-2002
Message 2 of 3 (123 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,388
Registered: ‎04-09-2008
Message 3 of 3 (114 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

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 to get help installing your software.

Ask the Community