TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: JohnSnow on June 14, 2022, 01:38:50 AM

Title: Customized entity type? How to achieve this?
Post by: JohnSnow on June 14, 2022, 01:38:50 AM
I am using a standalone autocad plugin (using arx I guess?) developed by others. . It will then brings me to autocad environment as shown below.


It allows me add customized items and when I check the properties of these items, I can see there is new customized entity type. I believe this is not possible with lisp (I guess it is by .net). Anyway, does anyone have any idea how to achieve this?

Title: Re: Customized entity type? How to achieve this?
Post by: Lee Mac on June 14, 2022, 08:48:46 AM
This is not possible using the LISP API.
Title: Re: Customized entity type? How to achieve this?
Post by: Jeff_M on June 14, 2022, 09:29:31 AM
Also not possible with .NET. Custom entities are created with ObjectARX and c++
Title: Re: Customized entity type? How to achieve this?
Post by: BIGAL on June 14, 2022, 08:30:54 PM
It is like a proxy object in some cases can get at some of the details. But generally not exposed.

What does this reveal.

Code: [Select]
;;;===================================================================;
;;; DumpIt                                                            ;
;;;-------------------------------------------------------------------;
;;; Dump all methods and properties for selected objects              ;
;;;===================================================================;
(defun C:Dumpit ( / ent)
  (while (setq ent (entsel))
    (vlax-Dump-Object
      (vlax-Ename->Vla-Object (car ent))
    )
  )
  (princ)
)