Class IFC2x3
Inheritance
Inherited Members
Namespace: DesignData.SDS2.Model
Assembly: DesignData.SDS2.Model.dll
Syntax
public class IFC2x3
Methods
Export(MemberHandleList, ModelViewDefinition, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, String, Boolean, Boolean, Boolean, Boolean, Double, Boolean, Double, Double, Double, Double)
Export an IFC2x3 file, returned as a byte array
Declaration
public static byte[] Export(MemberHandleList members, ModelViewDefinition modelViewDefinition = ModelViewDefinition.CoordinationView2, bool withHoles = true, bool withBolts = true, bool withWelds = true, bool revitFriendly = false, bool strumisFriendly = false, bool storiesByZoneAndSequence = false, bool exportScheduling = false, string schedulingXML = "", bool withCenterOfMassLocation = true, bool withCustomProperties = true, bool withLogs = true, bool withGrids = true, double gridDistance = 0, bool compress = false, double translateX = 0, double translateY = 0, double translateZ = 0, double rotateCCWAboutZAxis = 0)
Parameters
Type | Name | Description |
---|---|---|
MemberHandleList | members | The members to include in this IFC export |
ModelViewDefinition | modelViewDefinition | Can only be CoordinationView2 or EM11SteelFabrication |
System.Boolean | withHoles | true to include holes in the IFC |
System.Boolean | withBolts | true to include bolts in the IFC |
System.Boolean | withWelds | true to include welds in the IFC |
System.Boolean | revitFriendly | if true, make modifications to the IFC to aid in importing it with revit |
System.Boolean | strumisFriendly | if true, make modifications to the IFC to aid in importing into strumis |
System.Boolean | storiesByZoneAndSequence | Export stories by zone and sequence |
System.Boolean | exportScheduling | if true, export scheduling info for Synchro. See the schedulingXML parameter to supply necessary information |
System.String | schedulingXML | if exportScheduling:true, then give a Synchro XML file here |
System.Boolean | withCenterOfMassLocation | if true, export the center of mass location. This option is will dramatically increase the time to generate an export. |
System.Boolean | withCustomProperties | if true, export custom property information |
System.Boolean | withLogs | if true, export logs found under custom properties |
System.Boolean | withGrids | if true, export grids |
System.Double | gridDistance | Grid lines, in SDS2, are infinite. This is the distance, outside of the model's bounding box, to cut off grid lines. Only applies if withGrids is true. |
System.Boolean | compress | if true, the IFC blob will be a compressed zip file with the IFC in it |
System.Double | translateX | The global translation on X axis to apply to all elements |
System.Double | translateY | The global translation on Y axis to apply to all elements |
System.Double | translateZ | The global translation on Z axis to apply to all elements |
System.Double | rotateCCWAboutZAxis | The rotation of CCW about the Z axis in radians |
Returns
Type | Description |
---|---|
System.Byte[] |
Remarks
This requires the ModelLink license feature.
This function will change the current working directory for the program temporarily. While it's being called the directory will change to SDS2's data directory and then it will be put back before it exits.
So be very careful calling this in a multi-threaded environment where you may also change the working directory.
This may print to standard error, this is due to the library SDS2 uses for outputting IFC and is outside of our control.
Exceptions
Type | Condition |
---|---|
NotLicensedException | thrown when the ModelLink license is not available or the current platform does not support IFC export. (Note, all Microsoft Windows systems support IFC export). |
Finalize()
Declaration
protected void Finalize()