You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to create a new copy from my original ifc file, but with the selected buildingelements. For this I am using InsertCopy code sample. In my case all Representations and ObjectPlacements are also needed. So I don't want to leave out them from the semantic filter.
IfcStore is my original model which is opened previously, ifcBuildingElements is a List of selected IfcBuildingElements objects.
Then I go through my selected building elements and insert to the new model:
using (var iModel = IfcStore.Create(ifcStore.SchemaVersion,
XbimStoreType.InMemoryModel)) {
using (var txn = iModel.BeginTransaction("Insert copy")) {
//single map should be used for all insertions between two models
var map = new XbimInstanceHandleMap(ifcStore, iModel);
foreach (var buildingElement in ifcBuildingElements) {
//insert building element
iModel.InsertCopy(buildingElement, map,
semanticFilter, true, false);
}
txn.Commit();
}
This results all building elements not just the selected ones. Could someone help me to fix?
Thank you in advance!
The text was updated successfully, but these errors were encountered:
I would like to create a new copy from my original ifc file, but with the selected buildingelements. For this I am using InsertCopy code sample. In my case all Representations and ObjectPlacements are also needed. So I don't want to leave out them from the semantic filter.
IfcStore is my original model which is opened previously, ifcBuildingElements is a List of selected IfcBuildingElements objects.
Here is my semantic filter:
Then I go through my selected building elements and insert to the new model:
This results all building elements not just the selected ones. Could someone help me to fix?
Thank you in advance!
The text was updated successfully, but these errors were encountered: