tekla api create column
To create a column in Tekla using the API, you can use the following code snippet:
using Tekla.Structures.Model;
public class ColumnCreator
{
public static void CreateColumn(double x, double y, double z, double width, double depth, double height)
{
Model model = new Model();
Beam column = new Beam(new Point(x, y, z), new Point(x, y, z + height));
column.Profile.ProfileString = $"RECT {width} {depth}";
column.Name = "Column";
model.CommitChanges();
}
}
This code creates a rectangular column with the specified dimensions and position in the Tekla model. You can call this method with the desired parameters to create a column with the API
原文地址: https://www.cveoy.top/t/topic/deZq 著作权归作者所有。请勿转载和采集!