@@ -145,23 +145,23 @@ public static IDictionary<string, IfcSchemaEntityNode> GetEntityDictFor(string s
145145 if ( string . IsNullOrEmpty ( loadedIfcSchemaVersion ) || ! loadedIfcSchemaVersion . Equals ( schemaFile , StringComparison . InvariantCultureIgnoreCase ) )
146146 {
147147 // Process IFCXml schema here, then search for IfcProduct and build TreeView beginning from that node. Allow checks for the tree nodes. Grey out (and Italic) the abstract entity
148- schemaFile = Path . Combine ( DirectoryUtil . RevitProgramPath , "EDM\\ " + schemaFile ) ;
149- FileInfo schemaFileInfo = new FileInfo ( schemaFile ) ;
148+ string schemaFilePath = Path . Combine ( DirectoryUtil . RevitProgramPath , "EDM\\ " + schemaFile ) ;
149+ FileInfo schemaFileInfo = new FileInfo ( schemaFilePath ) ;
150150#if IFC_OPENSOURCE
151151 if ( ! schemaFileInfo . Exists )
152152 {
153153 // For the open source code, if the schema file is not found, search also from the IfcExporter install folder
154- string schemaLoc = System . IO . Path . GetDirectoryName ( System . Reflection . Assembly . GetCallingAssembly ( ) . Location ) ;
155- schemaFile = Path . Combine ( schemaLoc , schemaFile ) ;
156- schemaFileInfo = new FileInfo ( schemaFile ) ;
154+ string schemaLoc = Path . GetDirectoryName ( System . Reflection . Assembly . GetCallingAssembly ( ) . Location ) ;
155+ schemaFilePath = Path . Combine ( schemaLoc , schemaFile ) ;
156+ schemaFileInfo = new FileInfo ( schemaFilePath ) ;
157157 }
158158#endif
159159 if ( schemaFileInfo . Exists )
160160 {
161- bool newLoad = ProcessIFCXMLSchema . ProcessIFCSchema ( schemaFileInfo ) ;
162- if ( newLoad )
163- loadedIfcSchemaVersion = Path . GetFileName ( schemaFile ) ;
164- }
161+ bool newLoad = ProcessIFCXMLSchema . ProcessIFCSchema ( schemaFileInfo ) ;
162+ if ( newLoad )
163+ loadedIfcSchemaVersion = Path . GetFileName ( schemaFile ) ;
164+ }
165165 }
166166
167167 return EntityDict ;
0 commit comments