Element Trees: Ribs
This section describes how to use the include files ProRib.h, so that you can create ribs programmatically. As ribs are sketched features; we recommend you to read the sections Element Trees: Principles of Feature Creation and Element Trees: Sketched Features before referring to this section.
The Element Tree for Rib Features
The element tree for Rib features is documented in the Creo Parametric header file ProRib.h.
The following figure shows the element tree for rib features.
The Element Tree for Rib Feature
Image
The following table lists the data types for rib feature and their permissible values:
Element ID
Data Type
Description
PRO_E_FEATURE_TYPE
PRO_VALUE_TYPE_INT
Feature type: PRO_FEAT_RIB
PRO_E_FEATURE_FORM
PRO_VALUE_TYPE_INT
Mandatory= PRO_EXTRUDE
PRO_E_STD_FEATURE_NAME
PRO_VALUE_TYPE_WSTRING
Name of the rib feature. The default value is RIB.
PRO_E_BODY
Compound
Compound element that holds Body options. For more information, refer to the ProBodyOpts.h element tree.
PRO_E_BODY_USE
PRO_VALUE_TYPE_INT
Holds Body use options. The valid value is PRO_BODY_USE_SELECTED.
PRO_E_BODY_SELECT
PRO_VALUE_TYPE_SELECTION
Specifies the reference to the selected body.
Note
Only single reference is allowed.
PRO_E_RIB_SECTION_COMP
Compound Element
Holds section related elements.
PRO_E_RIB_THICKNESS
PRO_VALUE_TYPE_DOUBLE
Thickness of the rib. The value of the thickness should be positive and bigger than zero. The default value depends on part epsilon.
PRO_E_STD_SECTION
PRO_VALUE_TYPE_INT
Compound Element
PRO_E_STD_MATRLSIDE
PRO_VALUE_TYPE_INT
Material side options of the rib:
•  PRO_RIB_SEC_SIDE_ONE—Rib will be on side one of the section
•  PRO_RIB_SEC_SIDE_TWO—Rib will be on side two of the section
Note
The element PRO_E_STD_MATRLSIDE is directly dependent upon the presence of a fully defined PRO_E_STD_SECTION element tree. Any value assigned to this element before fully defining the PRO_E_STD_SECTION, will be ignored. The default value depends on the sketch under the PRO_E_STD_SECTION element.
PRO_E_RIB_SIDE_OPTS
PRO_VALUE_TYPE_INT
Side options of the rib:
•  PRO_RIB_SYMMETRIC— Rib will be symmetric to the sketch. This is the default value.
PRO_RIB_SIDE_ONE—Rib will be on Side One of the sketch.
•  PRO_RIB_SIDE_TWO—Rib will be on Side Two of the sketch.