SampleCreateIfcLocalPlacement
Overview
This programming manual in C# offers a practical demonstration of how to create an instance of the IfcLocalPlacement class within a model.
Sample code
For example:
Name | Value |
---|---|
PlacementRelTo | |
Relativeplacement |
var app = new Beaver.BcadApplication();
var doc = app.ActiveDocument;
if (doc == null)
doc = app.Documents.Add();
var stp = doc.STEPDocument;
var IfcLocalPlacement = stp.Instnaces.CreateInstance("IfcLocalPlacement");
IfcLocalPlacement.Attributes.AttributeAsInst("PlacementRelTo").Value = stp.Instnaces.FindInstance(-1);
IfcLocalPlacement.Attributes.AttributeAsSelect("Relativeplacement").SetValueAsInst(stp.Instnaces.FindInstance(-1));