Visual LISP, AutoLISP and General Customization

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

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

154 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?

 

Valued Mentor
owenwengerd
Posts: 498
Registered: ‎08-06-2002
Message 2 of 3 (115 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,346
Registered: ‎04-09-2008
Message 3 of 3 (106 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
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community