BIM VILLAGE

Version 2.5.1

SampleCreateIfcCompositeCurveSegment

Overview

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

Sample code

For example:

Name Value
ParentCurve
SameSense True
Transition discontinuous
var app = new Beaver.BcadApplication();
var doc = app.ActiveDocument;
if (doc == null)
    doc = app.Documents.Add();
var stp = doc.STEPDocument;
var IfcCompositeCurveSegment = stp.Instnaces.CreateInstance("IfcCompositeCurveSegment"); {
	IfcCompositeCurveSegment.Attributes.AttributeAsBool("SameSense").Value = True;
	IfcCompositeCurveSegment.Attributes.AttributeAsInst("ParentCurve").Value  = stp.Instnaces.FindInstance(-1);
	IfcCompositeCurveSegment.Attributes.AttributeAsEnum("TRANSITION").SetValue("discontinuous");
}

© 2019 - 2022 BIM VILLAGE.