Skip to content

Making large quantities of new IfcPropertySet(s) is too heavy #85

Answered by RyanDaley
RyanDaley asked this question in Q&A
Discussion options

You must be logged in to vote

Further, what I ultimately want to do is replace an IfcPropertySet for each IfcEntity with a new version of the IfcPropertySet with additional IfcProperty(s) and different values. So, first I need to remove the reference to the origianl IfcPropertySet before creating the new IfcPropertySet with the new name. This operation is also incredibly heavy because I am iterating through each IfcEntity in the Project.

for (int i = 0; i < objectsByGuid.Count(); i++)
{
    var RelDefines = db.OfType<GeometryGym.Ifc.IfcRelDefinesByProperties>().Where(x => x.RelatedObjects.Contains(objectsByGuid.ElementAt(i))).FirstOrDefault(y => y.RelatingPropertyDefinition.Any(z => z.Name == pset.Key));
    if (RelDe…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jmirtsch
Comment options

@RyanDaley
Comment options

Answer selected by RyanDaley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants