SampleCreateIfcArbitraryClosedProfileDef
Overview
This programming manual in C# offers a practical demonstration of how to create an instance of the IfcArbitraryClosedProfileDef class within a model.
Sample code
For example:
Name | Value |
---|---|
ProfileName | A1 |
ProfileType | |
OuterCurve |
var app = new Beaver.BcadApplication();
var doc = app.ActiveDocument;
if (doc == null)
doc = app.Documents.Add();
var stp = doc.STEPDocument;
var IfcArbitraryClosedProfileDef = stp.Instnaces.CreateInstance("IfcArbitraryClosedProfileDef"); {
IfcArbitraryClosedProfileDef.Attributes.AttributeAsStr("ProfileName").Value = "A1";
IfcArbitraryClosedProfileDef.Attributes.AttributeAsEnum("ProfileType").SetValue("");
IfcArbitraryClosedProfileDef.Attributes.AttributeAsInst("OuterCurve").Value = stp.Instnaces.FindInstance(-1);
}