예제 #1
0
 /// <summary>
 /// The Equals
 /// </summary>
 /// <param name="other">The other<see cref="RevitElement"/></param>
 /// <returns>The <see cref="bool"/></returns>
 protected bool Equals(RevitElement other)
 {
     return(string.Equals(name, other.name) &&
            string.Equals(category, other.category) &&
            string.Equals(level, other.level) &&
            string.Equals(parameters, other.parameters) &&
            string.Equals(sharedParameters, other.parameters) && //we dont compare worksetId
            string.Equals(location, other.location) &&
            string.Equals(boundingBox, other.boundingBox) &&
            string.Equals(centroid, other.centroid) &&
            string.Equals(volume, other.volume) &&
            string.Equals(typeId, other.typeId));
 }
예제 #2
0
 public RevitElement(RevitElement project, RevitElement model, List <History> history)
 {
     _id                = project._id;
     this.project       = project.project;
     version            = project.version;
     guid               = project.guid;
     this.history       = history;
     name               = model.name;
     elementId          = model.elementId;
     category           = model.category;
     level              = model.level;
     parameters         = model.parameters;
     geometryParameters = model.geometryParameters;
     sharedParameters   = model.sharedParameters;
     worksetId          = model.worksetId;
     location           = model.location;
     boundingBox        = model.boundingBox;
     centroid           = model.centroid;
     typeId             = model.typeId;
     volume             = model.volume;
 }