TEKLA API - INSERT CUSTOM PART
How to insert a Custom component in a model
//CONE GENERATOR
#region
private void CONE()
{
//TSG.Point Point1= new TSG.Point(0, 0, 0);
CustomPart Cone = new CustomPart();
Cone.Name = "CONE";
Cone.Number = BaseComponent.CUSTOM_OBJECT_NUMBER;
Cone.Position.Plane = Position.PlaneEnum.MIDDLE;
Cone.Position.PlaneOffset = 10;
Cone.Position.Depth = Position.DepthEnum.MIDDLE;
Cone.Position.DepthOffset = 30;
Cone.Position.RotationOffset = 45;
Cone.Position.Rotation = Position.RotationEnum.TOP;
Cone.SetInputPositions(new TSG.Point(0, 0, 0), new TSG.Point(0, 0, 300));
Cone.SetAttribute("Cone_std01", "Cone_std01"); ;
Cone.Insert();
}
#endregion
Comentários
Enviar um comentário