关于极简工具
Tekla和AutoCAD二次开发工具,Tekla模型和图纸工具。包括自动零件标注、图纸辅助工具。前期主要一些辅助图纸编辑工具。后期将会加入自动零件图标注,以致于构件图的自动标注。
图纸工具
Tekla调图可能是大家觉得比较繁琐并且简单重复的工作,所以程序来辅助图纸编辑工具十分必要。
目前Tekla提供一些基础的API可以获取相关信息
第一步是获取图纸,得到了图纸就可以方便的处理其他事情。
以下为Tekla帮助文件里的获取当前打开的图纸,并遍历视图的代码
// Open the interface, get the current drawing and loop through all the views in the drawing.
DrawingHandler DrawingHandler = new DrawingHandler();
if(DrawingHandler.GetConnectionStatus())
{
Drawing CurrentDrawing = DrawingHandler.GetActiveDrawing();
if(CurrentDrawing != null)
{
DrawingObjectEnumerator Enum = CurrentDrawing.GetSheet().GetViews();
while(Enum.MoveNext())
{
Tekla.Structures.Drawing.View View = Enum.Current as Tekla.Structures.Drawing.View;
// Perform actions for the view here.
}
}
}
零件图自动标注
极简工具目前已经实现了零件图的自动标注
演示地址: 自动标注