Search Results for

    Show / Hide Table of Contents

    Class MemoryModel

    Inheritance
    System.Object
    StepModel
    MemoryModel
    Implements
    IModel
    System.IDisposable
    Inherited Members
    StepModel.GetStepFileSchemaVersion(Stream)
    StepModel.IModel.Activate(IPersistEntity)
    StepModel.Delete(IPersistEntity)
    StepModel.Delete(IPersistEntity[], Boolean)
    StepModel.DiscardNaturalOrder()
    StepModel.BeginTransaction(String)
    StepModel.ForEach<TSource>(IEnumerable<TSource>, Action<TSource>)
    StepModel.BeginInverseCaching()
    StepModel.StopCaching()
    StepModel.LoadStep21Part(Stream)
    StepModel.LoadStep21Part(String)
    StepModel.LoadStep21Header(Stream)
    StepModel.LoadStep21(Stream, Int64, ReportProgressDelegate, IEnumerable<String>)
    StepModel.LoadStep21(String, ReportProgressDelegate)
    StepModel.SaveAsStep21(Stream, ReportProgressDelegate)
    StepModel.SaveAsStep21(TextWriter, ReportProgressDelegate)
    StepModel.Dispose(Boolean)
    StepModel.Dispose()
    StepModel.InsertCopy<T>(T, XbimInstanceHandleMap, PropertyTranformDelegate, Boolean, Boolean)
    StepModel.InsertCopy<T>(T, XbimInstanceHandleMap, PropertyTranformDelegate, Boolean, Boolean, Boolean)
    StepModel.BeginEntityCaching()
    StepModel.AddEntityInternal(IPersistEntity)
    StepModel.Logger
    StepModel.EntityFactory
    StepModel.AllowMissingReferences
    StepModel.Tag
    StepModel.UserDefinedId
    StepModel.Instances
    StepModel.Header
    StepModel.IsTransactional
    StepModel.CurrentTransaction
    StepModel.ModelFactors
    StepModel.Metadata
    StepModel.InverseCache
    StepModel.GeometryStore
    StepModel.InstanceHandles
    StepModel.SchemaVersion
    StepModel.EntityCache
    StepModel.EntityNew
    StepModel.EntityModified
    StepModel.EntityDeleted
    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()
    Namespace: Xbim.IO.Memory
    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
    Type Name Description
    IEntityFactory entityFactory
    | 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

    MemoryModel(IEntityFactory, IStepFileHeader)

    Declaration
    public MemoryModel(IEntityFactory entityFactory, IStepFileHeader header)
    Parameters
    Type Name Description
    IEntityFactory entityFactory
    IStepFileHeader header

    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
    Type Name Description
    XbimSchemaVersion schema
    Returns
    Type Description
    IEntityFactory
    | Improve this Doc View Source

    GetSchemaVersion(String)

    Declaration
    public static XbimSchemaVersion GetSchemaVersion(string fileName)
    Parameters
    Type Name Description
    System.String fileName
    Returns
    Type Description
    XbimSchemaVersion
    | 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
    Type Description
    XbimSchemaVersion
    | Improve this Doc View Source

    GetStepFileXbimSchemaVersion(Stream)

    Declaration
    public static XbimSchemaVersion GetStepFileXbimSchemaVersion(Stream stream)
    Parameters
    Type Name Description
    System.IO.Stream stream
    Returns
    Type Description
    XbimSchemaVersion
    | 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
    Type Name Description
    XbimP21Scanner parser

    Parser/Scanner

    Returns
    Type Description
    System.Int32

    Number of errors

    Overrides
    StepModel.LoadStep21(XbimP21Scanner)
    | Improve this Doc View Source

    LoadXml(Stream, Int64, ReportProgressDelegate)

    Declaration
    public virtual void LoadXml(Stream stream, long streamSize, ReportProgressDelegate progDelegate = null)
    Parameters
    Type Name Description
    System.IO.Stream stream
    System.Int64 streamSize
    ReportProgressDelegate progDelegate
    | Improve this Doc View Source

    LoadXml(String, ReportProgressDelegate)

    Declaration
    public virtual void LoadXml(string path, ReportProgressDelegate progDelegate = null)
    Parameters
    Type Name Description
    System.String path
    ReportProgressDelegate progDelegate
    | 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
    Type Name Description
    System.String file
    ReportProgressDelegate progDelegate
    | Improve this Doc View Source

    OpenRead(String)

    Declaration
    public static MemoryModel OpenRead(string fileName)
    Parameters
    Type Name Description
    System.String fileName
    Returns
    Type Description
    MemoryModel
    | 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
    Type Description
    MemoryModel
    | Improve this Doc View Source

    OpenRead(String, ReportProgressDelegate)

    Declaration
    public static MemoryModel OpenRead(string fileName, ReportProgressDelegate progressDel)
    Parameters
    Type Name Description
    System.String fileName
    ReportProgressDelegate progressDel
    Returns
    Type Description
    MemoryModel
    | 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
    Type Description
    MemoryModel

    New memory model

    | 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
    Type Description
    MemoryModel

    New memory model

    | Improve this Doc View Source

    SaveAsStep21Zip(Stream, ReportProgressDelegate)

    Declaration
    public virtual void SaveAsStep21Zip(Stream stream, ReportProgressDelegate progress = null)
    Parameters
    Type Name Description
    System.IO.Stream stream
    ReportProgressDelegate progress
    | 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
    Type Name Description
    System.IO.Stream stream
    System.Xml.XmlWriterSettings xmlSettings
    XbimXmlSettings xbimSettings
    configuration configuration
    ReportProgressDelegate progress
    | 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
    Type Name Description
    System.IO.Stream stream
    System.Xml.XmlWriterSettings xmlSettings
    XbimXmlSettings xbimSettings
    configuration configuration
    ReportProgressDelegate progress
    | Improve this Doc View Source

    SetWorkArounds(IStepFileHeader, XbimModelFactors)

    Code to determine model specific workarounds (BIM tool IFC exporter quirks)

    Declaration
    public static void SetWorkArounds(IStepFileHeader header, XbimModelFactors modelFactors)
    Parameters
    Type Name Description
    IStepFileHeader header
    XbimModelFactors modelFactors

    Implements

    IModel
    System.IDisposable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 xbim