[Integration Kit Contents] [Integration Kit What's New] [Integration Kit Function Index] [More Documentation] [PTC]

MoldDesign Inquiries

All below described functions are only available after the MoldDesign module has been activated.

Function Index Top of Page

SD-INQ-TAPER-GROUP-P  [function]

(sd-inq-taper-group-p taper-group)
Description:
Predicate to determine whether the passed object is a taper group.

Parameters:
taper-group {SEL_ITEM} - the object to inquire

Return value:
t - object is a taper group
nil - object is not a taper group

Function Index Top of Page

SD-INQ-TAPER-GROUP  [function]

(sd-inq-taper-group face)
Description:
Inquire the taper group the given face belongs to.

Parameters:
face {SEL_ITEM} - the face to inquire

Return value:
taper group {SEL_ITEM} - taper group where the face belongs to
nil - face doesn't belong to a taper group

Function Index Top of Page

SD-INQ-TAPER-GROUPS  [function]

(sd-inq-taper-groups part)
Description:
Inquire all taper groups of a part.

Parameters:
part {SEL_ITEM} - the part to inquire

Return value:
taper groups {list of SEL_ITEMs} - all taper groups which belong to the part
nil - no taper group belongs to the part

Function Index Top of Page

SD-INQ-TAPER-GROUP-FACE-P  [function]

(sd-inq-taper-group-face-p face :taper-group taper-group)
Description:
Predicate to check whether a face belongs to a taper group or not. If the parameter :taper-group is omitted then the function checks whether the face belongs to any taper group. If a taper group is specified then the function checks whether the face belongs to the specified taper group.

Parameters:
face {SEL_ITEM} - the face to inquire
taper-group {SEL_ITEM} - the taper group to check with (optional parameter)

Return value:
taper-group is not specified:
t - the face belongs to any taper group
nil - the face doesn't belong to any taper group
taper-group is specified:
t - the face belongs to the specified taper group
nil - the face doesn't belong to the specified taper group

Function Index Top of Page

SD-INQ-TAPER-GROUP-NAME  [function]

(sd-inq-taper-group-name taper-group)
Description:
Inquire the name of a taper group.

Parameters:
taper-group {SEL_ITEM} - the taper group to inquire

Return value:
name {STRING} - the name of the taper group

Function Index Top of Page

SD-INQ-TAPER-GROUP-FACES  [function]

(sd-inq-taper-group-faces taper-group)
Description:
Inquire the faces belonging to the taper group.

Parameters:
taper-group {SEL_ITEM} - the taper group to inquire

Return value:
faces {list of SEL_ITEMs} - all faces belonging to the taper group

Function Index Top of Page

SD-INQ-TAPER-GROUP-GEOMETRIC-VALUES  [function]

(sd-inq-taper-group-geometric-values taper-group :dest-space space)
Description:
Inquire the geometric values of a taper group.

Parameters:
taper-group {SEL_ITEM} - the taper group to inquire
:dest-space {KEYWORD or SEL_ITEM [:local]}
:local - Data is returned in the coordinate system of the part containing the taper group.
:global - Data is returned in the global coordinate system.
sel_item - Represents either an object or an element. Data is returned in the coordinate system of the object or the part/workplane owning the element.

Return value:
property-list {LIST} - A property list containing key/value pairs for the geometric values of the taper group
:point {GPNT3D} - the draft point
:direction {GPNT3D} - the draft direction
:angle {double} - the draft angle

Function Index Top of Page

SD-INQ-TAPER-GROUP-COLOR  [function]

(sd-inq-taper-group-color taper-group)
Description:
Inquire the color of a taper group.

Parameters:
taper-group {SEL_ITEM} - the taper group to inquire

Return value:
color {GPNT3D} - R,G,B color vector
nil - no color is assigned to a taper group

Function Index Top of Page

SD-CALCULATE-MAXIMAL-EXTENSION  [function]

(sd-calculate-maximal-extension elements direction)
Description:
Calculate the maximal extension and upper and lower point of a list of given faces/edges in the specified direction.
NOTE: All elements must belong to the same part.

Parameters:
elements {list of SEL_ITEMs} - list of faces/edges belonging to the same part
direction {GPNT3D} - the direction given in global coordinate system to calculate the extension in

Return value:
property-list {LIST} - A property list containing key/value pairs for the geometric values
:extension {double} - the maximal extension
:upper {GPNT3D} - the upper point of the elements
:lower {GPNT3D} - the lower point of the elements
See also:
MEASURE_MAX_DIST [interrupt action]
MEASURE_MAX_POINT [interrupt action]

Function Index Top of Page

SD-FILTER-SILHOUETTE-FACES  [function]

(sd-filter-silhouette-faces faces direction)
Description:
Filter out all those faces which are not in silhouette wrt to the given direction.

Parameters:
faces {list of SEL_ITEMs} - list of faces to get filtered
direction {GPNT3D} - the direction given in global coordinate system

Return value:
silhouette faces {list of SEL_ITEMs} - all faces which are in silhouette wrt to the given direction
nil - no faces are in silhouette
[Integration Kit Contents] [Integration Kit What's New] [Integration Kit Function Index] [More Documentation] [PTC]
© 2024 Parametric Technology GmbH
(a subsidiary of PTC Inc.), All Rights Reserved