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