没有合适的资源?快使用搜索试试~ 我知道了~
Creo10.0二次开发 C++接口开发使用说明书
需积分: 5 6 下载量 100 浏览量
2023-09-08
11:23:35
上传
评论 1
收藏 9.3MB PDF 举报
温馨提示
试读
2216页
Creo10.0二次开发 C++接口开发使用说明书
资源推荐
资源详情
资源评论
Creo
®
Parametric TOOLKIT
User’s Guide
10.0.0.0
Copyright © 2023 PTC Inc. and/or Its Subsidiary Companies. All Rights Reserved.
Copyright for PTC software products is with PTC Inc. and its subsidiary companies (collectively “PTC”), and
their respective licensors. This software is provided under written license or other agreement, contains
valuable trade secrets and proprietary information, and is protected by the copyright laws of the United States
and other countries. It may not be copied or distributed in any form or medium, disclosed to third parties, or
used in any manner not provided for in the applicable agreement except with written prior approval from
PTC. More information regarding third party copyrights and trademarks and a list of PTC’s registered
copyrights, trademarks, and patents can be viewed here: www.ptc.com/support/go/copyright-and-trademarks
User and training guides and related documentation from PTC are also subject to the copyright laws of the
United States and other countries and are provided under a license agreement that restricts copying,
disclosure, and use of such documentation. PTC hereby grants to the licensed software user the right to make
copies of product documentation and guides in printed form, but only for internal/personal use and in
accordance with the license agreement under which the applicable software is licensed. Any copy made shall
include the PTC copyright notice and any other proprietary notice provided by PTC. Note that training
materials may not be copied without the express written consent of PTC. This documentation may not be
disclosed, transferred, modified, or reduced to any form, including electronic media, or transmitted or made
publicly available by any means without the prior written consent of PTC and no authorization is granted to
make copies for such purposes.
UNITED STATES GOVERNMENT RIGHTS
PTC software products and software documentation are “commercial items” as that term is defined at 48 C.F.
R. 2.101. Pursuant to Federal Acquisition Regulation (FAR) 12.212 (a)-(b) (Computer Software) (MAY 2014)
for civilian agencies or the Defense Federal Acquisition Regulation Supplement (DFARS) at 227.7202-1(a)
(Policy) and 227.7202-3 (a) (Rights in commercial computer software or commercial computer software
documentation) (FEB 2014) for the Department of Defense, PTC software products and software
documentation are provided to the U.S. Government under the PTC commercial license agreement. Use,
duplication or disclosure by the U.S. Government is subject solely to the terms and conditions set forth in the
applicable PTC software license agreement.
PTC Inc., 121 Seaport Blvd, Boston, MA 02210 USA
Contents
About This Guide ......................................................................................................19
Fundamentals...........................................................................................................22
Introduction to Creo Toolkit ..................................................................................23
Online Documentation in Creo Toolkit APIWizard ..................................................23
Creo Toolkit Style................................................................................................24
Installing Creo Toolkit ..........................................................................................27
Developing a Creo Toolkit Application...................................................................34
Creo Toolkit Support for Creo Applications............................................................52
User-Supplied Main ............................................................................................52
Asynchronous Mode ...........................................................................................53
Creo Toolkit Techniques ......................................................................................53
Visit Functions ....................................................................................................60
Support for Creo Model Names and Files Paths ....................................................62
Wide Strings.......................................................................................................62
String and Widestring Functions ..........................................................................64
Support for IPv6 .................................................................................................65
Accessing LearningConnector .............................................................................65
Core: Models and Model Items ...................................................................................67
Modes ...............................................................................................................68
Models...............................................................................................................68
Model Items .......................................................................................................78
Version Stamps ..................................................................................................81
Layers ...............................................................................................................82
Notebook ...........................................................................................................87
Visiting Displayed Entities ...................................................................................88
Core: Solids, Parts, and Materials...............................................................................90
Solid Objects......................................................................................................91
Part Objects ..................................................................................................... 120
Material Objects ............................................................................................... 121
Core: Solid Body ..................................................................................................... 129
Introduction to Solid Body.................................................................................. 130
States of bodies................................................................................................ 130
Creating a Body................................................................................................ 131
Listing Features................................................................................................ 132
Multibody Operations ........................................................................................ 133
Core: Features........................................................................................................ 134
Feature Objects................................................................................................ 135
Visiting Features............................................................................................... 135
3
Feature Inquiry ................................................................................................. 135
Feature Geometry ............................................................................................ 141
Manipulating Features....................................................................................... 141
Manipulating Features based on Regeneration Flags .......................................... 144
Feature Dimensions.......................................................................................... 146
Manipulating Patterns ....................................................................................... 147
Creating Local Groups ...................................................................................... 148
Read Access to Groups .................................................................................... 149
Updating or Replacing UDFs ............................................................................. 152
Placing UDFs ................................................................................................... 153
The UDF Input Data Structure ProUdfdata.......................................................... 155
Reading UDF Properties ................................................................................... 161
Notification on UDF Library Creation .................................................................. 164
Multibody Support in a UDF and a Copy feature .................................................. 165
Core: 3D Geometry ................................................................................................. 173
Geometry Objects............................................................................................. 174
Visiting Geometry Objects ................................................................................. 175
Tessellation ...................................................................................................... 184
Evaluating Geometry ........................................................................................ 187
Geometry Equations ......................................................................................... 190
Ray Tracing...................................................................................................... 197
Measurement ................................................................................................... 198
Geometry as NURBS ........................................................................................ 201
Interference...................................................................................................... 201
Faceted Geometry............................................................................................ 205
Core: Relations ....................................................................................................... 207
Relations.......................................................................................................... 208
Adding a Customized Function to the Relations Dialog in Creo Parametric ........... 211
Core: Parameters.................................................................................................... 213
Parameter Objects............................................................................................ 214
Parameter Values ............................................................................................. 215
Accessing Parameters ...................................................................................... 215
Designating Parameters Windchill Servers ......................................................... 221
Restricted Parameters ...................................................................................... 221
Table-Restricted Parameters ............................................................................. 222
Driven Parameters............................................................................................ 223
Core: Coordinate Systems and Transformations........................................................ 225
Coordinate Systems ......................................................................................... 226
Coordinate System Transformations .................................................................. 228
Core: Family Tables................................................................................................. 233
Family Table Objects......................................................................................... 234
Family Table Utilities ......................................................................................... 234
Visiting Family Tables........................................................................................ 234
Operations on Family Table Instances ................................................................ 235
Operations on Family Table Items ...................................................................... 237
4 Creo
®
Parametric TOOLKITUser’s Guide
Core: External Data................................................................................................. 238
Introduction to External Data ............................................................................. 239
Storing External Data ........................................................................................ 240
Retrieving External Data ................................................................................... 242
Core: Cross Sections............................................................................................... 244
Listing Cross Sections....................................................................................... 245
Extracting Cross-Sectional Geometry................................................................. 245
Visiting Cross Sections...................................................................................... 249
Creating and Modifying Cross Sections .............................................................. 250
Mass Properties of Cross Sections..................................................................... 257
Line Patterns of Cross Section Components ....................................................... 257
Core: Utilities .......................................................................................................... 264
Configuration Options ....................................................................................... 265
Registry File Data ............................................................................................. 265
Trail Files ......................................................................................................... 266
License Data .................................................................................................... 266
Current Directory .............................................................................................. 266
File Handling .................................................................................................... 266
Wide Strings..................................................................................................... 270
Freeing Integer Outputs .................................................................................... 271
Running Creo ModelCHECK ............................................................................. 271
Core: Asynchronous Mode....................................................................................... 278
Overview.......................................................................................................... 279
Simple Asynchronous Mode .............................................................................. 280
Full Asynchronous Mode................................................................................... 283
User Interface: Messages ........................................................................................ 285
Writing a Message Using a Popup Dialog ........................................................... 286
Writing a Message to the Message Window ........................................................ 286
Message Classification ..................................................................................... 290
Writing a Message to an Internal Buffer .............................................................. 291
Getting Keyboard Input ..................................................................................... 291
Using Default Values......................................................................................... 292
User Interface: Ribbon Tabs, Groups, and Menu Items............................................... 294
Creating Ribbon Tabs, Groups, and Menu Items ................................................. 295
About the Ribbon Definition File ......................................................................... 297
Localizing the Ribbon User Interface Created by Creo Toolkit Applications............ 300
Tab Switching Events........................................................................................ 301
Support for Legacy Pro/TOOLKIT Applications.................................................... 301
Migration of Legacy Pro/TOOLKIT Applications................................................... 302
User Interface: Menus, Commands, and Popupmenus............................................... 303
Introduction ...................................................................................................... 304
Menu Buttons and Menus.................................................................................. 304
Designating Commands .................................................................................... 313
Popup Menus ................................................................................................... 317
Menu Manager Buttons and Menus.................................................................... 323
Contents 5
剩余2215页未读,继续阅读
资源评论
Xuan_Christine
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功