xBimTeam / XbimMvdXML

This repository contains IO, functions and XplorerUI for the BuildingSMART mvdXML format. It supports validation of models.
9 stars 10 forks source link

Error Message when testing Model against created mvdXML #7

Closed TobTob-BIM closed 4 years ago

TobTob-BIM commented 4 years ago

Hello xBIMTeam!

I am currently experimenting with the IfcDoc Tool and mvdXML. All my test with the example files went well, thanks for providing them!

I now tried to create my own mvdXML using the IfcDoc Tool and it seems like I am unable to create a proper file for Xbim. At the moment when I try to run my tests the following error messages show up:

==== 14:32 ERROR XbimPlugin.MvdXML.MainWindow Error processing entity #672. Der Wert darf nicht NULL sein. Parametername: source bei System.Linq.Enumerable.Distinct[TSource](IEnumerable1 source) bei Xbim.MvdXml.TemplateRules.GetIndicators() bei Xbim.MvdXml.ConceptRootApplicability.get_DataIndicators() bei Xbim.MvdXml.ConceptRootApplicability.GetData(IPersistEntity entity) bei Xbim.MvdXml.ConceptRootApplicability.IsApplicable(IPersistEntity entity) bei Xbim.MvdXml.Concept.AppliesTo(IPersistEntity entity) bei Xbim.MvdXml.Concept.Test(IPersistEntity ent, ConceptTestMode mode) bei Xbim.MvdXml.RequirementsRequirement.Test(IPersistEntity ent) bei XbimPlugin.MvdXML.MainWindow.ReportRequirementRequirement(RequirementsRequirement requirementsRequirement, IPersistEntity entity) bei XbimPlugin.MvdXML.MainWindow.PerformReport(HashSet1 selectedConcepts, HashSet1 selectedExchReq, HashSet1 selectedIfcClasses, List1 entities, MvdEngine doc, Object sender, DoWorkEventArgs ea, ObservableCollection1 destinationResultCollection, BackgroundWorker reportingWorker, HashSet`1 requiredReportingSet)

It seems like a certain value is not allowed to be equal NULL, but as far as I know, I am following all the rules for creating an mvdXML using the IfcDoc Tool. Are there certain restrictions requirements for a mvdXML to work with xBIM? When looking at the example mvdXMLs, most of the were created by AEC3, I guess by using their database behind BIMQ. Is there a major difference between their creation process for mvdXML?

Best regards,

Tobias

CBenghi commented 4 years ago

Hi Tobias, Is there a minimal test file that you can share to reproduce the issue? Thanks, Claudio

TobTob-BIM commented 4 years ago

Hi Claudio,

thank you for your quick response. I build a very small mvdXML and was testing it against one of the provided test models, both files are included in the attached .zip

This time the error says: _==== 16:09 ERROR XbimPlugin.MvdXML.MainWindow Error processing entity #161. Der Wert darf nicht NULL sein. Parametername: source bei System.Linq.Enumerable.Distinct[TSource](IEnumerable1 source) bei Xbim.MvdXml.TemplateRules.GetIndicators() bei Xbim.MvdXml.ConceptRootApplicability.get_DataIndicators() bei Xbim.MvdXml.ConceptRootApplicability.GetData(IPersistEntity entity) bei Xbim.MvdXml.ConceptRootApplicability.IsApplicable(IPersistEntity entity) bei Xbim.MvdXml.Concept.AppliesTo(IPersistEntity entity) bei Xbim.MvdXml.Concept.Test(IPersistEntity ent, ConceptTestMode mode) bei Xbim.MvdXml.RequirementsRequirement.Test(IPersistEntity ent) bei XbimPlugin.MvdXML.MainWindow.ReportRequirementRequirement(RequirementsRequirement requirementsRequirement, IPersistEntity entity) bei XbimPlugin.MvdXML.MainWindow.PerformReport(HashSet1 selectedConcepts, HashSet1 selectedExchReq, HashSet1 selectedIfcClasses, List1 entities, MvdEngine doc, Object sender, DoWorkEventArgs ea, ObservableCollection1 destinationResultCollection, BackgroundWorker reportingWorker, HashSet`1 requiredReportingSet)_

It is pointing me to the entity #161 which is an IfcWallStandardCase in the included IFC-file. In attached mvdXML I set two requirements for the values of the attributes "Name" and "ObjectType" of IfcWall. Maybe I am missing something very basic?

mvdXML test.zip

TobTob-BIM commented 4 years ago

Hi Claudio,

it seems like I have found the reason for this error message. The IfcDoc Tool creates an "applicability" part (see screenshot). applicability By simply deleting this section, the tests can properly run (see screenshot2). Unfortunatly I do not know why IfcDoc is creating this section or how I can influence it in any way other than manually editing the mvdXML. xbim test2

Best regards

Tobias

CBenghi commented 4 years ago

Hi Tobias, I've changed the code in the library, but I've not come to deploy the plugin yet. Are you accessing it through the plugin or library?

TobTob-BIM commented 4 years ago

Hi Claudio,

Thank you for the changes. I am accessing it through the plugin.

Best regards Tobias

CBenghi commented 4 years ago

Hi Tobias, try to download the updated plugin in xplorer. It's in the development channel, see the following image:

image

Let me know if it fixes your problem. Soon the v5 version will be available too.

TobTob-BIM commented 4 years ago

Hi Claudio, this fixed my problem. I could run a check with an unedited mvdXML using the new plugin version. Thank you very much!

Best regards Tobias