没有合适的资源?快使用搜索试试~ 我知道了~
帮助文件上的特征部分
资源推荐
资源详情
资源评论
4 - 1
4
Core: Features
This chapter describes the Pro/TOOLKIT functions that deal with
features as a whole and the way they relate to each other.
Access to the geometry objects created by features is described in
the Core: 3D Geometry chapter.
Access to the internal structure of a feature is described in the
Element Trees: Principles of Feature Creation chapter.
Topic Page
Feature Objects 4 - 2
Visiting Features 4 - 2
Feature Inquiry 4 - 3
Feature Geometry 4 - 6
Manipulating Features 4 - 6
Feature Dimensions 4 - 11
Manipulating Patterns 4 - 11
Creating Local Groups 4 - 18
Read Access to Groups 4 - 18
Updating or Replacing UDFs 4 - 22
Placing UDFs 4 - 22
The UDF Input Data Structure—ProUdfdata 4 - 25
Reading UDF Properties 4 - 32
Notification on UDF Library Creation 4 - 35
4 - 2 Pro/TOOLKIT User’s Guide
Feature Objects
Function Introduced:
• ProFeatureInit()
Features are represented by the object ProFeature, which is
declared as a DHandle, or data handle. It shares the same
declaration as ProModelitem and ProGeomitem, and therefore
contains the type and integer identifier as fields in the structure.
Like ProGeomitem, ProFeature is an instance of ProModelitem.
ProFeature objects are contained in ProSolid objects, and contain
ProGeomitem objects.
You can create a new ProFeature handle using the function
ProFeatureInit().
Visiting Features
Function Introduced:
• ProSolidFeatVisit()
The function ProSolidFeatVisit() enables you to visit all the
features in a part or assembly. It visits not only those features
visible to the user, but also features used internally for construction
purposes. To skip over such internal, “invisible” functions, call
ProFeatureVisibilityGet().
Note that the function ProSolidFeatstatusGet() (described in the
next section) provides an array of integer identifiers for all the
features in a solid, thereby offering an alternate way of finding all
the features.
Core: Features 4 - 3
Core: Features
Feature Inquiry
Functions Introduced:
• ProFeatureTypeGet()
• ProFeatureSubtypeGet()
• ProFeatureTypenameGet()
• ProFeatureStatusGet()
• ProSolidFeatstatusGet()
• ProFeatureIsNcseq()
• ProFeatureSolidGet()
• ProFeatureIsIncomplete()
• ProFeatureChildrenGet()
• ProFeatureParentsGet()
• ProFeatureSelectionGet()
• ProFeatureHasGeomchks()
• ProFeatureIsReadonly()
• ProFeatureIsEmbedded()
• ProInsertModeIsActive()
• ProFeatureCopyinfoGet()
As described earlier, the function ProSolidFeatVisit() finds all
the features belonging to a part or an assembly. The feature inquiry
functions provide more information about a particular feature.
The function ProFeatureTypeGet() provides the type of the
feature. This feature type uses the data type ProFeattype, which is
really an integer that takes defined values such as the following:
• PRO_FEAT_FIRST_FEAT
• PRO_FEAT_HOLE
• PRO_FEAT_SHAFT
• PRO_FEAT_ROUND
See the include file ProFeatType.h for the list of defined values.
4 - 4 Pro/TOOLKIT User’s Guide
The function ProFeatureTypenameGet() returns the name of the
feature type. Given a ProFeature pointer to a specific feature, this
function returns the name of the feature type, for example,
CHAMFER, DATUM, COORDINATE SYSTEM, and so on.
Arguments to this function must not be null.
The function ProFeatureSubtypeGet() provides the subtype
(such as sheet metal) of a specified feature. Note that not all
features support subtypes. This is like viewing valid model
subtypes by opening the Pro/ENGINEER Model Tree Setup >
Column Display > View menu and then selecting Feat Subtype as
an additional display column.
The function ProFeatureStatusGet() classifies the feature
according to the following status values:
• PRO_FEAT_ACTIVE—An ordinary feature.
• PRO_FEAT_SUPPRESSED—A suppressed feature.
• PRO_FEAT_FAMTAB_SUPPRESSED—A feature suppresses
due to the family table settings.
• PRO_FEAT_SIMP_REP_SUPPRESSED—A feature suppressed
due to the simplified representation.
• PRO_FEAT_PROG_SUPPRESSED—A feature suppressed due
to Pro/PROGRAM.
• PRO_FEAT_INACTIVE—A feature that is not suppressed, but
is not currently in use for reasons other than the ones identified
above.
• PRO_FEAT_UNREGENERATED—A feature that has not yet
been regenerated. This is due to a regeneration failure or if the
status is obtained during the regeneration process.
• PRO_FEAT_INVALID—The feature status could not be
retrieved.
The function ProSolidFeatstatusGet() provides a list of the
integer identifiers and statuses of all features in the specified solid,
in the order in which they are regenerated. The integer identifier of
a feature is the value of the id field in the ProFeature object, and
also the INTERNAL ID seen in Pro/ENGINEER.
The function ProFeatureIsIncomplete() tells you whether a
specified feature is incomplete. An incomplete feature is one that
has been created by using ProFeatureCreate() from a
Pro/TOOLKIT application, but which does not yet contain all the
necessary feature elements to allow regeneration.
Core: Features 4 - 5
Core: Features
The function ProFeatureIsNcseq() determines whether a feature
is an NC sequence.
The ProFeatureSolidGet() function provides the identifier of the
solid that owns the specified feature.
The ProFeatureChildrenGet() and ProFeatureParentsGet()
functions get the children and parents of the specified feature. For
these functions, the parent of a feature means a feature it directly
depends on, and a child is a feature that directly depends on it. This
differs from the Pro/ENGINEER command Info, Feat Info, which
also shows indirect dependencies.
The function ProFeatureSelectionGet() is used for features that
were created in a part as a result of a feature in a parent assembly.
For example, if you create a hole in Assembly mode, then select a
part to be intersected by that hole, the geometry of the hole is
visible to Pro/TOOLKIT as belonging to the part, even if the
original feature is specified as being visible at the assembly level.
This geometry—a list of the surfaces forming the hole—belongs to a
feature in the part whose type is PRO_FEAT_ASSEM_CUT. The
function ProFeatureSelectionGet(), when applied to that part
feature, identifies the assembly, and the path down through it to
the part in question, which contains the original feature.
During regeneration, Pro/ENGINEER performs geometry checking
to prevent regeneration errors. The geometry check process
identifies features that could cause problems if the part or assembly
is modified, but which do not cause regeneration failure in the
model in its present state. The ProFeatureHasGeomchks()
function outputs a variable of type ProBoolean that indicates
whether a particular feature, identified as an input argument to the
function, has geometry checks.
The function ProFeatureIsReadonly() provides information
about the read status of the specified feature. Its first argument is a
pointer to the feature’s (ProFeature) handle. If the feature is read
only, the function outputs a ProBoolean with the value
PRO_B_TRUE; otherwise, the value is PRO_B_FALSE.
The feature ProFeatureIsEmbedded() identifies whether the
feature is an embedded datum. Embedded features are visible in
the model tree, but cannot be used as reference parents for features
other than the feature into which they are embedded.
剩余35页未读,继续阅读
资源评论
shengge2doudou
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功