Read bim data from wall
Comments
-
Hi.
Did you check the commands here?
https://developer.bricsys.com/bricscad/help/en_US/CurVer/DevRef/0 -
Not sure about .NET, however BRX has a class BrxDbProperties, In Python, you can do something like
from pyrx import Rx, Ge, Gi, Db, Ap, Ed, Brximport traceback@Ap.Command()def doit():try:ps, id, _ = Ed.Editor.entSel("\nSelect: ")if ps != Ed.PromptStatus.eNormal:raise RuntimeError("Oops {}: ".format(ps))props = Brx.DbProperties.listAll(id)for prop in props:if "~BIM" in prop:val = Brx.DbProperties.getValue(id, prop)if not val.isValid():continueprint(prop, val.format())except Exception as err:traceback.print_exception(err)result: DOIT
Select: AxisAngle~BIM 1.570796
AxisDelta~BIM 0.000000, 0.000000, 4884.773153
AxisLength~BIM 4884.773153
Building~BIM
Centerline~BIM Off
ColumnType~BIM
Composition~BIM
Description~BIM
EndPoint~BIM 0.000000, 0.000000, 4884.773153
GUID~BIM 2UvTjo3G1BY9YgXMmop9hr
InstancePropertySets~BIM
Name~BIM
Profile~BIM EURO HEA 300
RoomBounding~BIM <bool::true>
SequenceNumber~BIM
Space~BIM
StartPoint~BIM 0.000000, 0.000000, 0.000000
Story~BIM
Type~BIM Column
0 -
Not sure why Bricsys has such a hard time with the forum code tags
<div>from pyrx import Rx, Ge, Gi, Db, Ap, Ed, Brx</div><div>import traceback</div><br><br><div>@Ap.Command()</div><div>def doit():</div><div> try:</div><div> ps, id, _ = Ed.Editor.entSel("\nSelect: ")</div><div> if ps != Ed.PromptStatus.eNormal:</div><div> raise RuntimeError("Oops {}: ".format(ps))</div><br><div> props = Brx.DbProperties.listAll(id)</div><div> for prop in props:</div><div> if "~BIM" in prop:</div><div> val = Brx.DbProperties.getValue(id, prop)</div><div> if not val.isValid():</div><div> continue</div><div> print(prop, val.format())</div><br><div> except Exception as err:</div><div> traceback.print_exception(err)</div>
0 -
What does the Dumpit show.;;;===================================================================;;;; DumpIt ;;;;-------------------------------------------------------------------;;;; Dump all methods and properties for selected objects ;;;;===================================================================;(defun C:Dumpit ( / ent)(while (setq ent (entsel "\n pick object "))(vlax-Dump-Object(vlax-Ename->Vla-Object (car ent))))(princ));(dumpallproperties (car (entsel)))Just a ps how do I wrap code here usually use [code]-1