This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
import ifcopenshell | |
def main(): | |
args = sys.argv | |
if os.path.isfile(args[1]): | |
ifc_file = ifcopenshell.open(args[1]) | |
else: | |
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os.path | |
from PyQt5.QtWidgets import QTreeWidget, QTreeWidgetItem, QApplication, QWidget, QVBoxLayout | |
import ifcopenshell | |
class Window(QWidget): | |
def __init__(self): | |
QWidget.__init__(self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import ifcopenshell | |
# Indent | |
def indent(level): | |
spacer = '. ' | |
for i in range(level): | |
print(spacer,end='') | |
# PropertySet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## ----------------------------------------------------------------- | |
## qmake project file | |
## | |
## Usage: qmake -spec macx-xcode (to generate XCode project) | |
## | |
## e.g. | |
## >> mkdir build && cd build | |
## >> qmake -spec macx-xcode ../XYZ.pro | |
## >> open XYZ.xcodeproj/ | |
## ----------------------------------------------------------------- |