BIM VILLAGE

Version 2.5.2

SampleCreateIfcApplication

Overview

This programming manual in C# offers a practical demonstration of how to create an instance of the IfcApplication class within a model.

Sample code

For example:

Name Value
Applicationfullname BeaverComAPISample
Applicationidentifier BeaverComAPISample
Version 1.0
Applicationdeveloper 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 IfcApplication = stp.Instnaces.CreateInstance("IfcApplication"); 
IfcApplication.Attributes.AttributeAsStr("version").Value = "1.0";
IfcApplication.Attributes.AttributeAsStr("applicationfullname").Value = "BeaverComAPISample";
IfcApplication.Attributes.AttributeAsStr("applicationidentifier").Value = "BeaverComAPISample";
IfcApplication.Attributes.AttributeAsInst("applicationdeveloper").Value = stp.Instnaces.FindInstance(6);

© 2019 - 2022 BIM VILLAGE.