Context in Drawing Mode
Functions Introduced:
The functions
ProRibbonContextGet() and
ProRibbonContextSet() retrieve and set the context for the specified drawing window, respectively.
From Pro/ENGINEER Wildfire 5.0 onwards, you can specify a context for a drawing. A context presents a set of commands relevant to the type of task that you are currently performing on a drawing. The contexts in the Drawing mode are Layout, Table, Annotate, Sketch, AutobuildZ, Legacy Migration, Analysis, and Review.
|
 To set the context to AutobuildZ, you must first set the configuration option autobuildz_enabled to yes.
|
One of the arguments to the
ProRibbonContextGet() and
ProRibbonContextSet() functions is
context, which is of the type
ProRibbonContext.
ProRibbonContext is an enumerated type, which takes the following values:
• PRO_RBNCONTEXT_DWG_NONE
• PRO_RBNCONTEXT_DWG_LAYOUT
• PRO_RBNCONTEXT_DWG_TABLE
• PRO_RBNCONTEXT_DWG_ANNOTATE
• PRO_RBNCONTEXT_DWG_SKETCH
• PRO_RBNCONTEXT_DWG_AUTOBUILDZ
• PRO_RBNCONTEXT_DWG_REVIEW
• PRO_RBNCONTEXT_DWG_PUBLISH
|
 If you set context to PRO_RBNCONTEXT_DWG_NONE, all actions for the selected object are available in all contexts, except the contexts in which selection is not allowed. For example, the publish context.
|