Autodesk / civilconnection

CivilConnection enables the exchange of information between Civil 3D, Dynamo and Revit.
94 stars 43 forks source link

IFCExport - if solid files is open as read-only return error #18

Closed EduardLouis closed 4 years ago

EduardLouis commented 5 years ago

Hi Paolo,

A colleague found that IFC Export is not working if the file is open as read-only. We use a file management system and to be sure that the file remain the same as the file on CDE we open it as read-only. I'm not sure why is needed to be saved after the geometry is back on the initial position, but an try and catch system for error is good there where the file is saved.

image

This is the error if I put this in a python node, with my old branch (in the original master is line 1480 or something like that). image

paoloemilioserra commented 5 years ago

@EduardLouis Thanks, it is trying to save the file with the solids back in the original position as I'm applying a transformation to get the IFC in the Revit local coordinates, I'm not sure you can rollback a transaction through COM, that is why there is need to save the DWG. I suppose it is possible through .NET (via CivilPython), worth investigating.