作者: huobaiqing 时间: 2022-11-2 09:45
报错信息:
ug_curve_askarclength() failed : input is neither an edge nor a curve
rule:
[rule in body of function--source not availbale yet] 作者: huobaiqing 时间: 2022-11-2 09:46
函数: nx_askArcLength
描述: Returns the length of a given Curve/Edge
参数: curve (Any) Specify a curve
返回: (Number)- The length of a curve/edge
---
Returns the length of a given Curve/Edge作者: huobaiqing 时间: 2022-11-2 09:47
选择类:
DefClass: %ui_comp_selection (%ui_comp);
This attribute allows the addition of point creation to
this selection component. If set to true, you have the option
of either selecting an existing object and/or creating a new point.
The point created will be added to the selectedObject list.
#+
The text for label
#-
(Canonical string Parameter Modifiable) Label: "Select Objects";
#+
The text for tooltip
#-
(Canonical string Parameter Modifiable) Tooltip: "Select Objects";
#+
Scope
Controls the selection scope for the object
UF_UI_SEL_SCOPE_WORK_PART 1 Allows you to select only objects
which belong to the work part.
This includes immediate
components of the work part. If
you select an object occurrence,
the prototype is returned.
UF_UI_SEL_SCOPE_ANY_IN_ASSEMBLY 3 Allows you to select any object
or object occurrence in the
assembly. No scope restrictions
are applied.
UF_UI_SEL_SCOPE_WORK_PART_AND_OCC 4 Allows you to select objects
which belong to the work part or
its subassembly. If you select
an object occurrence, the
prototype is returned.
UF_UI_SEL_SCOPE_WORK_PART_AND_WP_OCC 5 Allows you to select objects
which belong to the work part or
its subassembly. If you select
an object occurrence, the
occurrence of the work part is returned.
#-
#+
The triple are a list of list in the format of {{type1, subtype1, feature_type1},
{type2, subtype2, feature_type2} ...}
type; - This can be one of the object types that are listed in
uf_object_types.h
subtype; - This can either be UF_all_subtype, or a proper
subtype of the object type selected
feature_type; - This is only meaningful when the object_type is
UF_solid_type. In that case, this should be set to
one of the solid feature type constants in uf_ui_types.h: