教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 范文大全 > 文秘资料 >

TeklaAPI_图纸尺寸标注

来源:网络收集 时间:2026-08-10
导读: 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 HelperMeth

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字,全部文档内容请下载后查看。喜欢就下载吧 ……
TeklaAPI_图纸尺寸标注.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/fanwen/1995199.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)