Closed PRemmen closed 8 years ago
Probably hardcoded here: SimModel_Python_API/simmodel_swig/SimModel_Mapping/SimMapping.cpp#L176 and also in the corresponding .pyd file
And yes, my Python also crashes when renaming that file.
Sorry, I think the formal testing code is not cleaned in the update. I will check this.
@PRemmen pls check a patch I just uploaded into the dropbox folder: Dropbox\EnEff-BIM_E3D_RWTH\MoCGF\SimModel_Python_API\Release_v0.6.1.zip unzip this patch to overwrite relating pyd files.
The error is caused by a testing code I left in my source code: I manually set a link to the default mapping rule xml code. I will clean the these testing code later today. Then make an update to the repository tmr after I finishing testing some new features I developed for merging the SimXML files generated by Simergy and the IFC side.
Let me know if you need more help!
Best,
Jun
That seems to fix it for me.
@thorade @PRemmen BTW, you can rename the mapping rule xml file. If you move the mapping rule xml file into the other folder, you need to edit the relating directory from the new location to the mapping rule xsd schema file. This relating directory is saved in the mapping rule xml file, e.g., AixLib.xml. Otherwise, the xml file can not find its xsd schmea, this will also cause similar error.
works for me, too.
Thanks for the quick fix.
I tried to integrate mapping into the Python stuff, however i got stucked implementing the above mentioned function from
Translator
class. Whenever I try to call this function from a script that is not located in theRelease
folder it will fail. In addition even by renaming the AixLib.xml mapping rule file Python crashes.Without that function I'm recieving the SimHierarchy as before, but of course not mapped objects.
Can anyone reproduce this error/bug?