TEKLA API - CREATE GRID
//CREATE GRID
#region
private void btnGrid_Click(object sender, EventArgs e)
{
double diametro = Convert.ToDouble(txtDiameter.Text);
//MODIFICAR A Grelha existente
TSM.Grid myGrid = new TSM.Grid();
myGrid.Name = "Grid";
//myGrid.CoordinateX = "0 4*3000";
//myGrid.CoordinateY = "0 4*3000";
myGrid.CoordinateX = "0";
myGrid.CoordinateY = "0";
myGrid.ExtensionLeftX = diametro / 2 + 1000;
myGrid.ExtensionLeftY = diametro / 2 + 1000;
myGrid.ExtensionRightX = diametro / 2 + 1000;
myGrid.ExtensionRightY = diametro / 2 + 1000;
myGrid.Insert();
myModel.CommitChanges();
}
#endregion
Comentários
Enviar um comentário