SampleCreateIfcExtrudedAreaSolid
Overview
This programming manual in C# offers a practical demonstration of how to create an instance of the IfcExtrudedAreaSolid class within a model.
Sample code
For example:
Name | Value |
---|---|
Depth | 500 |
SweptArea | |
Position | IfcAxis2Placement3D (#40) |
var app = new Beaver.BcadApplication();
var doc = app.ActiveDocument;
if (doc == null)
doc = app.Documents.Add();
var stp = doc.STEPDocument;
var IfcExtrudedAreaSolid = stp.Instnaces.CreateInstance("IfcExtrudedAreaSolid");
IfcExtrudedAreaSolid.Attributes.AttributeAsInst("Position").Value = stp.Instnaces.FindInstance(40);
IfcExtrudedAreaSolid.Attributes.AttributeAsInst("SweptArea").Value = stp.Instnaces.FindInstance(-1);
IfcExtrudedAreaSolid.Attributes.AttributeAsReal("Depth").Value = 500;