Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F66080301
python4delphi.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jun 8, 03:37
Size
465 B
Mime Type
text/x-python
Expires
Mon, Jun 10, 03:37 (2 d)
Engine
blob
Format
Raw Data
Handle
18169811
Attached To
R8831 BIMxBEM
python4delphi.py
View Options
import
sys
sys
.
path
.
append
(
"Mod/BIMxBEM"
)
from
freecad.bem.boundaries
import
generate_bem_xml_from_file
GUI_UP
=
False
if
GUI_UP
:
from
PySide2
import
QtCore
,
QtGui
import
FreeCADGui
FreeCADGui
.
showMainWindow
()
xml_str
=
generate_bem_xml_from_file
(
r"C:\git\BIMxBEM\IfcTestFiles\2Storey_2x3_A22.ifc"
,
GUI_UP
)
print
(
xml_str
)
if
GUI_UP
:
FreeCADGui
.
activeView
()
.
viewIsometric
()
FreeCADGui
.
SendMsgToActiveView
(
"ViewFit"
)
FreeCADGui
.
exec_loop
()
Event Timeline
Log In to Comment