BIM VILLAGE

Version 2.5.1

SampleCreateIfcDirection_3

Overview

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

Sample code

For example:

Name Value
X 111
Y 222
Z 333
var app = new Beaver.BcadApplication();
var doc = app.ActiveDocument;
if (doc == null)
    doc = app.Documents.Add();
var stp = doc.STEPDocument;
var IfcDirection = stp.Instnaces.CreateInstance("IfcDirection");
double []values={111.000000, 222.000000, 333.000000};
IfcDirection.Attributes.AttributeAsAggregate("directionratios").values = values;

© 2019 - 2022 BIM VILLAGE.