BIM Lisp function - ename?
In this example. I have a cylinder. Classified it as a BIM Object. And i want to use the command:
So in my lisp i will use:
Instead i get:
Many thanks in advance
(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
0
Comments
-
Hi,
you need the entity name, not the handle of the object.
See also this example script that is also shipped with Bricscad.0 -
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 !
0 -
Many thanks Piet & Torsten.
working like a charm!0