BIM VILLAGE

Version 2.5.1

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
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(-1);

© 2019 - 2022 BIM VILLAGE.