TeklaAPI_图纸尺寸标注
Tekla Open API Advanced TrainingDrawing Plugins – Bolt Dimension Sample
Charles Pool – Solutions Engineer
AgendaSome Key concepts Plugin Architecture
Setup Plugin Basic Architecture TogetherCreating Actual Dimension in Drawing
HelperMethodsQuestions and Answers
[Date]
Some Key conceptsDrawing Handler
Drawing PartsViews Dimensions[Date] Tekla Open API Drawing Basic Training/ Charles Pool
Drawing Handlernew DrawingHandler(); Check if a drawing is currently open– GetActiveDrawing() check if null or Drawing
Gets Picker for getting input from user Closes, Saves, and Opens drawings– Can open drawing hidden in background – SetActiveDrawing(myDrawing, false);
Get drawings from drawing list
[Date]
Drawing objectsDrawing objects are not the same as model objects Presentation object that represents the model object in the drawing interface. E.g. Color, accuracy, symbol Can be many different types of objects including text, lines, marks
Can get model object identifier for the model part that the drawing part representsYou can not change the Model object when a drawing is open, but you can get information from it[Date]
Drawing Bolt vs. Model Bolt
Tekla.Structures.Drawing.BoltTekla.Structures.Model.BoltGroup
[Date]
Drawing Architecture (Assembly Drawing with Single Part)
Y X
Y X[Date]
Example Assembly Drawing
[Date]
Dimension Architecture
Dimension Points
[Date]
Dimension Direction VectorsSets the up position relative to the direction that is to be dimensioned, always *90 from dimension line– Horizontal, Vertical, Skew dimension – Sets the direction to where dimension is placed– Left, Right, Up, Down from object it is dimensioning
– Set using a Vector (x value, y value, z value)– Relative to DisplayCoordinateSystem
[Date]
StraightDimensionSetHandlernew StraightDimensionSetHandler(); Easiest way to create dimension set
Set is multiple dimensions grouped togetherCreateDimensionSet(View, Points, Direction, Offset);
[Date] [2011 User Meeting / Charles Pool]
Example: Create dimension to bolts
[Date]
Plugin ArchitectureGetting input from user, starting plugin >Examine Startup template architecture[Date] Tekla Open API Drawing Basic Training/ Charles Pool
Startup ClassStart new project using template “UM11_DrawingPlugin_Dimension”
Open PluginStartupClass.csThis class contains the main plugin meat”, the run() and DefineInput()
Use this to get user input and setup the initial plugin behavior
[Date] Tekla Open API Drawing Basic Training/ Charles Pool
Plugin SettingsPlugin has name – Shown in ComponentCatalog Dependancy
UI – (INP based versus WinForms)Update method Must inherit the DrawingPluginBase
[Date] Tekla Open API Drawing Basic Training/ Charles Pool
Internals and ConstructorStore attributes data, can use Property Must have public Constructor
[Date] Tekla Open API Drawing Basic Training/ Charles
Pool
…… 此处隐藏:846字,全部文档内容请下载后查看。喜欢就下载吧 ……相关推荐:
- [文秘资料]班长职务辞职报告
- [文秘资料]完美的辞职报告
- [文秘资料]经典的员工辞职报告
- [文秘资料]医院口腔医生辞职报告
- [文秘资料]总经理辞职报告范文四篇
- [文秘资料]超市职员个人辞职报告
- [文秘资料]村妇联主任的辞职报告
- [文秘资料]辞职报告书格式
- [文秘资料]酒店辞职报告简单范文
- [文秘资料]联通的辞职报告
- [文秘资料]2017最新私企员工辞职报告范文
- [文秘资料]2019年度医院基层党组织书记抓党建述职
- [文秘资料]工作时间长辞职报告
- [文秘资料]辞职报告怎么写出来
- [文秘资料]个人能力原因辞职报告
- [文秘资料]网络工程师辞职报告
- [文秘资料]项目部辞职报告
- [文秘资料]缝纫工辞职报告怎么写
- [文秘资料]XXX州委书记述职报告
- [文秘资料]抓基层党建工作述职报告
- (王虎应老师讲课记录)六爻理象思维
- 八个常见投影机故障排除法
- 质量专业综合知识(中级)第一章质量管理
- 煤矿班组建设实施意见
- 我国快餐业与肯德基经营模式的比较与分
- 汽车保险杠模具标准化模架技术工艺研究
- 汽车二级维护作业团体赛比赛规程
- 装卸搬运工安全操作规程
- 高效的工作方法-刘铁
- 依据《生产安全事故报告和调查处理条例
- 2015专业PS夜景亮化效果图制作教程
- 企业劳动定额定员浅析
- 中枢神经系统医学影像学本科五年制第五
- 长城汽车参观探营第三站:研发试验中心
- 小升初语文专项训练
- 建筑工程质量检测资质分类与等级标准
- 周燕珉-我国养老社区的发展现状与规划
- 《生命里最后的读书会》读后感
- 实验室管理评审报告
- CCNA思科网院教程精华之网络基础知识




