C# Codigo para inserir detalhe CAD em desenho Tekla
public static void InsertDWGDetail()
{
TSD.DrawingHandler dh = new TSD.DrawingHandler();
TSD.ViewBase view = dh.GetActiveDrawing().GetSheet() as TSD.ViewBase;
view.Origin = new Tekla.Structures.Geometry3d.Point(0, 0);
TSD.EmbeddedObjectAttributes attributes = new Tekla.Structures.Drawing.EmbeddedObjectAttributes();
attributes.XScale = .35;
attributes.YScale = .35;
attributes.Frame.Color = TSD.DrawingColors.Invisible;
TSD.DwgObject dwf = new TSD.DwgObject(view, new Tekla.Structures.Geometry3d.Point(10, 70),
@".\drawings\Details\BridgeBeamDetailsGeo_Y8.dwg", attributes);
dwf.Insert();
dh.SaveActiveDrawing();
}
Comentários
Enviar um comentário