ObjectARX

ObjectARX

Reply
Valued Contributor
joseph_l
Posts: 68
Registered: ‎03-09-2006
Message 1 of 2 (236 Views)

Custom Entity Name is not showing in Properties palette

236 Views, 1 Replies
06-22-2011 01:39 PM

I am implementing a custom entity derived from the AcDbLine entity. I am using VS2005 compiling for AutoCAD 2009. I am using straight C++ (no .Net)   I used the wizard to create the custom class. It all appears to work fine except that the name of the custom entity is "Line" and not "MYLINE" in the properties palette. I checked to make sure that the ACRX_DXF_DEFINE_MEMBERS macro was created correctly. It seems fine.

 

I tried the Lab project Step06 which derives a custom object from an ellipse. I get the same problem with this. Instead of "ASDKEMPLOYEE" I get "Ellipse" in the Properties palette.

 

Should a custom entities DXF name appear in the Properties Palette by default?

 

I read on a post by Bogdan that you need to implement a COM Wrapper to expose a custom objects name. Is this the case?

 

Any help would be appreciated!

 

Thanks

 

Joe

 

 

Valued Contributor
joseph_l
Posts: 68
Registered: ‎03-09-2006
Message 2 of 2 (215 Views)

Re: Custom Entity Name is not showing in Properties palette

06-23-2011 12:59 PM in reply to: joseph_l

I will answer my own question. Yes I do need to implement a COM Wrapper. I found the answer in ObjectARX Developer's Guide under "Property Inspector and Properties Palette APIs"

 

I guess I should read the help files first! :smileywink:

 

Regards

Joe

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!