Class MemoryModel
Inheritance
System.Object
MemoryModel
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Xbim.IO.MemoryModel.dll
Syntax
public class MemoryModel : StepModel, IModel, IDisposable
Constructors
|
Improve this Doc
View Source
MemoryModel(IEntityFactory)
Declaration
public MemoryModel(IEntityFactory entityFactory)
Parameters
|
Improve this Doc
View Source
MemoryModel(IEntityFactory, ILogger, Int32)
Declaration
public MemoryModel(IEntityFactory entityFactory, ILogger logger = null, int labelFrom = 0)
Parameters
Type |
Name |
Description |
IEntityFactory |
entityFactory |
|
Microsoft.Extensions.Logging.ILogger |
logger |
|
System.Int32 |
labelFrom |
|
|
Improve this Doc
View Source
MemoryModel(IEntityFactory, Int32)
Declaration
public MemoryModel(IEntityFactory entityFactory, int labelFrom)
Parameters
Type |
Name |
Description |
IEntityFactory |
entityFactory |
|
System.Int32 |
labelFrom |
|
|
Improve this Doc
View Source
Declaration
public MemoryModel(IEntityFactory entityFactory, IStepFileHeader header)
Parameters
Methods
|
Improve this Doc
View Source
CalculateModelFactors(IModel)
Declaration
public static void CalculateModelFactors(IModel model)
Parameters
Type |
Name |
Description |
IModel |
model |
|
|
Improve this Doc
View Source
GetFactory(XbimSchemaVersion)
Declaration
public static IEntityFactory GetFactory(XbimSchemaVersion schema)
Parameters
Returns
|
Improve this Doc
View Source
GetSchemaVersion(String)
Declaration
public static XbimSchemaVersion GetSchemaVersion(string fileName)
Parameters
Type |
Name |
Description |
System.String |
fileName |
|
Returns
|
Improve this Doc
View Source
GetStepFileXbimSchemaVersion(IEnumerable<String>)
Declaration
public static XbimSchemaVersion GetStepFileXbimSchemaVersion(IEnumerable<string> schemas)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
schemas |
|
Returns
|
Improve this Doc
View Source
GetStepFileXbimSchemaVersion(Stream)
Declaration
public static XbimSchemaVersion GetStepFileXbimSchemaVersion(Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
|
Improve this Doc
View Source
LoadStep21(XbimP21Scanner)
Core function which loads Step21 data. This override is schema aware
and loads model factors based on the data.
Declaration
protected override int LoadStep21(XbimP21Scanner parser)
Parameters
Returns
Type |
Description |
System.Int32 |
Number of errors
|
Overrides
|
Improve this Doc
View Source
LoadXml(Stream, Int64, ReportProgressDelegate)
Declaration
public virtual void LoadXml(Stream stream, long streamSize, ReportProgressDelegate progDelegate = null)
Parameters
|
Improve this Doc
View Source
LoadXml(String, ReportProgressDelegate)
Declaration
public virtual void LoadXml(string path, ReportProgressDelegate progDelegate = null)
Parameters
|
Improve this Doc
View Source
LoadZip(Stream, ReportProgressDelegate)
Loads the content of the model from ZIP archive. If the actual model file inside the archive is XML
it is supposed to have an extension containing 'XML' like '.ifcxml', '.stpxml' or similar.
Declaration
public virtual void LoadZip(Stream stream, ReportProgressDelegate progDelegate = null)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
Input stream of the ZIP archive
|
ReportProgressDelegate |
progDelegate |
|
|
Improve this Doc
View Source
LoadZip(String, ReportProgressDelegate)
Declaration
public virtual void LoadZip(string file, ReportProgressDelegate progDelegate = null)
Parameters
|
Improve this Doc
View Source
OpenRead(String)
Declaration
public static MemoryModel OpenRead(string fileName)
Parameters
Type |
Name |
Description |
System.String |
fileName |
|
Returns
|
Improve this Doc
View Source
OpenRead(String, ILogger, ReportProgressDelegate)
Declaration
public static MemoryModel OpenRead(string fileName, ILogger logger, ReportProgressDelegate progressDel = null)
Parameters
Type |
Name |
Description |
System.String |
fileName |
|
Microsoft.Extensions.Logging.ILogger |
logger |
|
ReportProgressDelegate |
progressDel |
|
Returns
|
Improve this Doc
View Source
OpenRead(String, ReportProgressDelegate)
Declaration
public static MemoryModel OpenRead(string fileName, ReportProgressDelegate progressDel)
Parameters
Returns
|
Improve this Doc
View Source
OpenReadStep21(Stream, ILogger, ReportProgressDelegate, IEnumerable<String>, Boolean, Boolean)
Reads schema version from the stream on the fly inside the parser so it doesn't need to
access the file twice.
Declaration
public static MemoryModel OpenReadStep21(Stream stream, ILogger logger = null, ReportProgressDelegate progressDel = null, IEnumerable<string> ignoreTypes = null, bool allowMissingReferences = false, bool keepOrder = true)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
Input stream for step21 text file
|
Microsoft.Extensions.Logging.ILogger |
logger |
Logger
|
ReportProgressDelegate |
progressDel |
Progress delegate
|
System.Collections.Generic.IEnumerable<System.String> |
ignoreTypes |
A list of ifc types to skip
|
System.Boolean |
allowMissingReferences |
Allow referenced entities that are not in the model, default false
|
System.Boolean |
keepOrder |
When true, serialised file will maintain order of entities from the original file (or order of creation)
|
Returns
|
Improve this Doc
View Source
OpenReadStep21(String, ILogger, ReportProgressDelegate)
Reads schema version fron the file on the fly inside the parser so it doesn't need to
access the file twice.
Declaration
public static MemoryModel OpenReadStep21(string file, ILogger logger = null, ReportProgressDelegate progressDel = null)
Parameters
Type |
Name |
Description |
System.String |
file |
Input step21 text file
|
Microsoft.Extensions.Logging.ILogger |
logger |
Logger
|
ReportProgressDelegate |
progressDel |
Progress delegate
|
Returns
|
Improve this Doc
View Source
SaveAsStep21Zip(Stream, ReportProgressDelegate)
Declaration
public virtual void SaveAsStep21Zip(Stream stream, ReportProgressDelegate progress = null)
Parameters
|
Improve this Doc
View Source
SaveAsXml(Stream, XmlWriterSettings, XbimXmlSettings, configuration, ReportProgressDelegate)
Declaration
public virtual void SaveAsXml(Stream stream, XmlWriterSettings xmlSettings, XbimXmlSettings xbimSettings = null, configuration configuration = null, ReportProgressDelegate progress = null)
Parameters
|
Improve this Doc
View Source
SaveAsXMLZip(Stream, XmlWriterSettings, XbimXmlSettings, configuration, ReportProgressDelegate)
Declaration
public virtual void SaveAsXMLZip(Stream stream, XmlWriterSettings xmlSettings, XbimXmlSettings xbimSettings = null, configuration configuration = null, ReportProgressDelegate progress = null)
Parameters
|
Improve this Doc
View Source
Code to determine model specific workarounds (BIM tool IFC exporter quirks)
Declaration
public static void SetWorkArounds(IStepFileHeader header, XbimModelFactors modelFactors)
Parameters
Implements
System.IDisposable