I use different versions of the function "def insert .." of importIFC.py. I found the best for me not to have different functions "def insert .." in one importIFC-file but instead have different importIFC.py-files. It is much easier to merge new commits from master this way. But I need to copy and rename the files if I would like to use a different one during import.
I allready have a wb including some tools with icons. I was not able to map the file --> open dialog for ifc and my own importIFC.py to a command (tool) of my new wb. With this I would have for each importIFC_X an own command (tool, icon).
Is it possible to archive this?
What I got working was to map the following to a command (tool, icon) o my own WB.
Code: Select all
myown_importIFC.open("absolute_path_to_the_ifc/ifcfilename.ifc")
But with this I have to put the path and filename in the pythonfile of my WB.