BIM VILLAGE

Version 2.5.2

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 IfcPerson (#4)
Theperson IfcOrganization (#6) \X\96\S"\X\92\S\h\X\8B`
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(6);
IfcPersonAndOrganization.Attributes.AttributeAsInst("theorganization").Value = stp.Instnaces.FindInstance(4);

© 2019 - 2022 BIM VILLAGE.