How to set IFC classes in Revit IFC export in C# (Dynamo ZeroTouch)

How to set IFC classes in Revit IFC export in C# (Dynamo ZeroTouch)

Anonymous
Not applicable
1,524 Views
2 Replies
Message 1 of 3

How to set IFC classes in Revit IFC export in C# (Dynamo ZeroTouch)

Anonymous
Not applicable

How can change the txt-file in Export > Options > IFC Options?
Currently I can only "get" the file and I see no "set" property.

0 Likes
1,525 Views
2 Replies
Replies (2)
Message 2 of 3

CTCDev
Explorer
Explorer

Do you mean the mapping file?

 

Should be this:

 

 

IFCExportOptions options = new IFCExportOptions();

options.FamilyMappingFile = fileName;

 

document.Export(outputFolder, shortFileName, options);

 

 

There are other useful properties on the options object as well.

 

.

0 Likes
Message 3 of 3

Anonymous
Not applicable

Thank you. It works, but why is the same table caled ExportIFCCategoryTable and FamilyMappingFile? I get en error if the file do not start with "exportlayers". How come? I see no rulesabout  naming i the help file.

0 Likes