BIM Lisp function - ename?

In this example. I have a cylinder. Classified it as a BIM Object. And i want to use the command:
(bim:pset-get-property ename propertyset name)

So in my lisp i will use:
(vl-load-bim)
(bim:pset-get-property  "6BF" "Data"  "OBJECTID")
Should this return 123?
Instead i get:
; ----- Error around expression -----
; (BIM:PSET-GET-PROPERTY "6BF" "Data" "OBJECTID")
;
; ----- LISP : Call Stack -----
; [0]...*ERROR* <<--
;
 acad.lsp Err: bad argument type <"6BF"> ; expected ENTITYNAME at [bim:pset-get-property]
Please can you point me in the right direction about ename / entityname

Many thanks in advance


Comments

  • Hi,
    you need the entity name, not the handle of the object.

    See also this example script that is also shipped with Bricscad.
  • If the handle is known, there is also
    (handent )
    which returns that ENAME entity name :
    (handent "6BF")
    or
    (BIM:PSET-GET-PROPERTY (handent "6BF") "Data" "OBJECTID")

    many greetings !
  • Many thanks Piet & Torsten.

    working like a charm!