CREO二次开发-球标函数

The function ProDwgtableCellRegionGet() returns the ID of the repeat region. You must specify the name of the table, the column and row ID as input parameters.
The function ProBomballoonCreate() creates the BOM balloons at the specified view. The input arguments are:
• pro_drawing—Specifies the name of the drawing.
• pro_table—Specifies the name of the table that contains the repeat region and the bill of material.
• region_id—Specifies the ID of the repeat region that contains the bill of material. If the ID of the repeat region in the table is -1, use the repeat region with ID as 0 in the table.
• pro_view—Specifies the view where the balloons must be added.
The function ProBomballoonAllCreate() creates the BOM balloons to the first view of the drawing.
The function ProBomballoonByComponentCreate() creates the balloons at the specified view and on the specified component. If the view is specified as NULL, the balloons are added to the first view of the drawing. Specify the path to the component as component_memb_id_tab.
The function ProBomballoonByRecordCreate() creates the balloons for the specified record in the BOM table. The input arguments are:
• pro_drawing—Specifies the name of the drawing.
• pro_table—Specifies the name of the table that contains the repeat region and the bill of material.
• region_id—Specifies the ID of the repeat region that contains the bill of material.If the ID of the repeat region in the table is -1, use the repeat region with ID as 0 in the table.
• pro_view—Specifies the view where the balloons must be added. Specify this argument to create the balloons without a leader.
• table_record_index—Specifies the record in the BOM table. The balloons are created at the first component that matches the specified record.
• reference_memb_id_tab—Specifies the path to the component. This path is used as reference for the leader of the balloon.
• reference_id—Specifies the ID of the component. When the ID is set to K_NOT_USED, the balloons are attached without leaders.
• reference_type—Specifies the type of component using the enumerated data type ProType.
• attach_note_location—Specifies a ProArray of the attachment point for the balloons on the component.
The function ProBomballoonClean() cleans up the location and display of BOM balloons in the specified view. The input arguments are:
• pro_drawing—Specifies the name of the drawing.
• pro_view—Specifies the view where BOM balloons have been added.
• clean_pos—Specifies a boolean value to indicate if the balloon must be cleaned.
• existing_snap_lines—Specifies a boolean value to indicate if the existing snap lines must be used for the clean up.
• offset_from_view_outline—Specifies the offset distance for the balloon placement from the view outline.
• stagger—Specifies a boolean value to indicate if the balloons must be staggered at different offset distance from the view outline.
• create_stagger_snap_lines—Specifies the incremental value for the stagger distance between the snap lines.
• interballoons_distance—Specifies the distance between the BOM balloons.
• attach_to_surface—Specifies if the leaders of the balloon must point to edges or surfaces. To attach the leader to a surface specify the value as PRO_B_TRUE.
Drawing Dimensions
This section describes Creo Parametric TOOLKIT functions that give access to the types of dimension that can be created in drawing mode. They do not apply to dimensions which are created in solid mode, either those created automatically as a result of feature creation, or reference dimensions created in a solid.
The ProDimension object is introduced in the section on Dimensions; read the explanation of ProDimension at the start of that section before reading further.
Dimensions created in drawing mode are stored either in the solid or in the drawing, depending upon the setting of the config.pro option CREATE_DRAWING_DIMS_ONLY. The default is NO, meaning that the dimensions will be stored in the solid. Refer to the Creo Parametric Detailed Drawings Help for more information on the various types of created dimension, and their behavior.
The owner field in the ProDimension object always refers to the model in which the dimension is stored.
The function ProDrawingDimensionVisit(), described in the section on Dimensions, can be used to find all the dimensions stored in a drawing.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值