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
This is the error message: IFC.STEPParameterMismatchException: IFC.IfcClassification's constructor expects 4 parameters but 7 parameters are provided. at STEP.STEPListener.ParseConstructor(Int32 id, ConstructorContext context, Type ifcType) at STEP.STEPListener.EnterConstructor(ConstructorContext context) at Antlr4.Runtime.Tree.ParseTreeWalker.Walk(IParseTreeListener listener, IParseTree t) at Antlr4.Runtime.Tree.ParseTreeWalker.Walk(IParseTreeListener listener, IParseTree t) at Antlr4.Runtime.Tree.ParseTreeWalker.Walk(IParseTreeListener listener, IParseTree t) at Antlr4.Runtime.Tree.ParseTreeWalker.Walk(IParseTreeListener listener, IParseTree t) at IFC.Document..ctor(String STEPfilePath, List1& errors)
at Elements.Serialization.IFC.IFCModelExtensions.FromIFC(String path, List1& constructionErrors, IList1 idsToConvert)
at IFCExtractor.Ifc.LoadIFC(String ifcName) `
Additional info:
Hypar.Elements, 2.1.0
Hypar.Elements.Serialization.IFC, 2.1.0
The same IFC file can be opened in other IFC viewers, so the file should be ok. -- - The file is directly exported from Revit.
The text was updated successfully, but these errors were encountered:
Update:
So I also tried IFC4, and looks like got different error:
System.InvalidOperationException: Sequence contains no elements at System.Linq.ThrowHelper.ThrowNoElementsException() at STEP.STEPListener.GetConstructorForType(Type required, List1& ctorChain, Type fromSTEP)
at STEP.STEPListener.ParseCollection(Type t, CollectionContext value)
at STEP.STEPListener.ParseConstructor(Int32 id, ConstructorContext context, Type ifcType)
at STEP.STEPListener.EnterConstructor(ConstructorContext context)
at Antlr4.Runtime.Tree.ParseTreeWalker.Walk(IParseTreeListener listener, IParseTree t)
at Antlr4.Runtime.Tree.ParseTreeWalker.Walk(IParseTreeListener listener, IParseTree t)
at Antlr4.Runtime.Tree.ParseTreeWalker.Walk(IParseTreeListener listener, IParseTree t)
at Antlr4.Runtime.Tree.ParseTreeWalker.Walk(IParseTreeListener listener, IParseTree t)
at IFC.Document..ctor(String STEPfilePath, List1& errors) at Elements.Serialization.IFC.IFCModelExtensions.FromIFC(String path, List1& constructionErrors, IList1 idsToConvert) at IFCExtractor.Ifc.LoadIFC(String ifcName)
I found @ikeough posted this PR for IFC4 last year, and I have had the similar parsing errors appearing in the console window. I'm guessing it's relevant to the error I'm having here?
Any idea what might cause this?
This is the error message:
IFC.STEPParameterMismatchException: IFC.IfcClassification's constructor expects 4 parameters but 7 parameters are provided. at STEP.STEPListener.ParseConstructor(Int32 id, ConstructorContext context, Type ifcType) at STEP.STEPListener.EnterConstructor(ConstructorContext context) at Antlr4.Runtime.Tree.ParseTreeWalker.Walk(IParseTreeListener listener, IParseTree t) at Antlr4.Runtime.Tree.ParseTreeWalker.Walk(IParseTreeListener listener, IParseTree t) at Antlr4.Runtime.Tree.ParseTreeWalker.Walk(IParseTreeListener listener, IParseTree t) at Antlr4.Runtime.Tree.ParseTreeWalker.Walk(IParseTreeListener listener, IParseTree t) at IFC.Document..ctor(String STEPfilePath, List
1& errors)at Elements.Serialization.IFC.IFCModelExtensions.FromIFC(String path, List
1& constructionErrors, IList
1 idsToConvert)at IFCExtractor.Ifc.LoadIFC(String ifcName) `
Additional info:
The text was updated successfully, but these errors were encountered: