Class Part21Writer
Inheritance
System.Object
Part21Writer
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()
Namespace: Xbim.IO.Step21
Assembly: Xbim.Common.dll
Syntax
public static class Part21Writer
Methods
| Improve this Doc View SourceWrite(IModel, TextWriter, ExpressMetaData, IDictionary<Int32, Int32>, ReportProgressDelegate)
Writes full model into output writer as STEP21 file
Declaration
public static void Write(IModel model, TextWriter output, ExpressMetaData metadata, IDictionary<int, int> map = null, ReportProgressDelegate progress = null)
Parameters
Type | Name | Description |
---|---|---|
IModel | model | Model to be serialized |
System.IO.TextWriter | output | Output writer |
ExpressMetaData | metadata | Metadata to be used for serialization |
System.Collections.Generic.IDictionary<System.Int32, System.Int32> | map | Optional map can be used to map occurrences in the file |
ReportProgressDelegate | progress | A progress delegate |
WriteEntity(IPersistEntity, TextWriter, ExpressMetaData, IDictionary<Int32, Int32>, Boolean)
Writes the entity to a TextWriter in the Part21 format
Declaration
public static void WriteEntity(IPersistEntity entity, TextWriter output, ExpressMetaData metadata, IDictionary<int, int> map = null, bool writeEntityLabelAndType = true)
Parameters
Type | Name | Description |
---|---|---|
IPersistEntity | entity | The entity to write |
System.IO.TextWriter | output | The TextWriter |
ExpressMetaData | metadata | |
System.Collections.Generic.IDictionary<System.Int32, System.Int32> | map | |
System.Boolean | writeEntityLabelAndType | Onits the #EntityLabel=IfcType part of the declaration |
WriteFooter(TextWriter)
Declaration
public static void WriteFooter(TextWriter output)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextWriter | output |
WriteHeader(IStepFileHeader, TextWriter, String)
Writes STEP21 header to the output
Declaration
public static void WriteHeader(IStepFileHeader header, TextWriter output, string overridingSchema = null)
Parameters
Type | Name | Description |
---|---|---|
IStepFileHeader | header | Header |
System.IO.TextWriter | output | Writer |
System.String | overridingSchema | Schema to be written to the header instead of the schema defined in the header. This is useful if the schema is not defined in the header. |
WriteProperty(Type, Object, TextWriter, IDictionary<Int32, Int32>, ExpressMetaData)
Writes a property of an entity to the TextWriter in the Part21 format
Declaration
public static void WriteProperty(Type propType, object propVal, TextWriter output, IDictionary<int, int> map, ExpressMetaData metadata)
Parameters
Type | Name | Description |
---|---|---|
System.Type | propType | |
System.Object | propVal | |
System.IO.TextWriter | output | |
System.Collections.Generic.IDictionary<System.Int32, System.Int32> | map | |
ExpressMetaData | metadata |