(Tekla Structures二次开发)测试螺栓组中的螺栓序号

测试代码:

            TSM.Model model = new TSM.Model();
            if(model.GetConnectionStatus())
            {
                try
                {
                    TSM.UI.Picker picker = new TSM.UI.Picker();
                    TSM.BoltArray boltArray = picker.PickObject(TSM.UI.Picker.PickObjectEnum.PICK_ONE_BOLTGROUP) as TSM.BoltArray;
                    //将ArrayList转化为PointList
                    PointList boltList = Qpoint.ConvertArrayListToPointList(boltArray.BoltPositions);

                    TSM.UI.GraphicsDrawer drawer = new TSM.UI.GraphicsDrawer();
                    for (int i = 0; i < boltList.Count; i++)
                    {
                        drawer.DrawText(boltList[i], i.ToString(), new TSM.UI.Color(1.0, 1.0, 1.0));
                    }

                }
                catch 
                {                }
            }

(Tekla Structures二次开发)测试螺栓组中的螺栓序号_第1张图片
(Tekla Structures二次开发)测试螺栓组中的螺栓序号_第2张图片
结果发现居然和螺栓头的方向有关。

你可能感兴趣的:(Tekla,TeklaStructure,TeklaOpenAPI)