cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a layering mapkey on Wildfire 2

Highlighted

Creating a layering mapkey on Wildfire 2

Hi folks. This is one for all those heavy mapkey authors out there.
We've started looking at moving to Wildfire 2 from 2001 and
I'm fiddling with creating a layering mapkey which will
be run on all my models. I want said mapkey to automatically put all
datum axes on a layer called "DATUM_AXES". This was trivial to do in
older pro/e versions, but the complete reworking of the way items are
selected to be added to the layer has stumped me. Old mapkeys could
basically say #ADD ITEMS; #FEATURE; #ALL OF TYPE; #DATUM AXES;

But, now in Wildfire 2 that functionality has now apparently been finally
disabled. I can get the "Search.." tool to locate all the axes in the
model just fine, but I'm unable to get a mapkey which will actually SELECT
all of them and move them into the list to be added. The mapkey ends up
being dependant on the features being named certain names (which I cannot
guarantee) in order for them to be selected. There's no SELECT ALL button
the way I would expect in the search results area. If I'm working through
MANUALLY (not running the mapkey) I can just hit ctrl-a, but I cant find
any way of recording that INTO the mapkey.

I can't use "rules" because their are already some features which exist
from our starting template parts/assemblies. I can't make a toolkit app
because I don't have access to Pro/Toolkit (in my dreams eh?).

This mapkey for adding axes is just ONE part of a higher level mapkey that
layers off ALL the features in the model. We want it to continue to be a
single push button job that cleans up everything, and very easy for the
end users. I'll have to do this same thing with CURVES, PLANES, etc.

Any advice?
3 REPLIES 3
Highlighted

Creating a layering mapkey on Wildfire 2

Reply to Jarrod Miller

Is there a reason why you’re not using default layer in your config.pro
file to begin with. You will catch all of these items when creating them
at the start.

Example of default layer with respective layer name in the config file.

def_layer layer_assem_member ALL_COMPONENTS
def_layer layer_axis AXES
def_layer layer_csys COORD_SYS
def_layer layer_cosm_sketch COSMETIC
def_layer layer_draft_dim DRAFT_DIM
def_layer layer_draft_geom DRAFT_GEOM
def_layer layer_curve DTM_CURVE
def_layer layer_datum DTM_PLN
def_layer layer_nogeom_feat DTM_FEAT
def_layer layer_geom_feat GEOM_FEAT
def_layer layer_gtol GEO_TOLS
def_layer layer_note NOTE
def_layer layer_point POINTS
def_layer layer_refdim REF_DIM
def_layer layer_surface SURFACES
def_layer layersymbols SYMBOLS
def_layer layer_dwg_table TABLES
def_layer layer_thread_feat THREAD_FEAT

Dan
Highlighted

RE: Creating a layering mapkey on Wildfire 2

I would guess that Jarrod has the same issue we have. Not all features of
all models were created with those same settings in the config.pro file. If
we use models that came from another source, we need to update them to our
scheme. The config.pro options only affect newly created features.

I have created this mapkey (this will first delete all layers):

mapkey ul @MAPKEY_LABELUpdate Layers;\
mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdViewLyrs.view`1 ;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.PHLayerUI.LayerShowBtn`;\
mapkey(continued) ~ Close `main_dlg_cur` `PHTLeft.PHLayerUI.LayerShowBtn`;\
mapkey(continued) ~ Select `main_dlg_cur` `DispInTreeCasc`;\
mapkey(continued) ~ Close `main_dlg_cur` `DispInTreeCasc`;\
mapkey(continued) ~ Select `main_dlg_cur` `rad_list_layers_for`1
`act_obj_and_lays`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.PHLayerUI.AssyTree`1
`node0`;\
mapkey(continued) ~ PopupOver `main_dlg_cur` `LayerActionMenu`1
`PHTLeft.PHLayerUI.AssyTree`;\
mapkey(continued) ~ Open `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Close `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ActionMenuSelectLayers`;\
mapkey(continued) ~ PopupOver `main_dlg_cur` `LayerActionMenu`1
`PHTLeft.PHLayerUI.AssyTree`;\
mapkey(continued) ~ Open `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Close `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ActionMenuLayerDelete`;\
mapkey(continued) ~ FocusIn `UI Message Dialog` `yes`;~ Activate `UI Message
Dialog` `yes`;\
mapkey(continued) ~ PopupOver `main_dlg_cur` `LayerActionMenu`1
`PHTLeft.PHLayerUI.AssyTree`;\
mapkey(continued) ~ Open `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Close `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ActionMenuLayerNew`;\
mapkey(continued) ~ Input `newlayerprops` `LayerNameInput` `AXIS`;\
mapkey(continued) ~ Update `newlayerprops` `LayerNameInput` `AXIS`;\
mapkey(continued) ~ Select `newlayerprops` `PropTab`1
`RulesDefsettingsLay`;\
mapkey(continued) ~ Activate `newlayerprops` `EditRulesBtn`;\
mapkey(continued) ~ Select `selspecdlg0` `CascadeButton1`;\
mapkey(continued) ~ Close `selspecdlg0` `CascadeButton1`;\
mapkey(continued) ~ Activate `selspecdlg0` `CondBuilderCheck`1 ;\
mapkey(continued) ~ Open `selspecdlg0` `SelOptionRadio`;~ Close
`selspecdlg0` `SelOptionRadio`;\
mapkey(continued) ~ Select `selspecdlg0` `SelOptionRadio`1 `Feature`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTypes`1 `Type`;\
mapkey(continued) ~ Open `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Close `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Select `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`1 \
mapkey(continued) ` Datum Axis#1, 926`;~ Activate `selspecdlg0`
`AddRuleBtn`;\
mapkey(continued) ~ Select `selspecdlg0` `CondBuildTable`2 `0` `oper`;\
mapkey(continued) ~ Open `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleCatsList`;\
mapkey(continued) ~ Close `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleCatsList`;\
mapkey(continued) ~ Select `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleCatsList`1 \
mapkey(continued) `Misc`;\
mapkey(continued) ~ Open `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Close `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Select `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`1 \
mapkey(continued) `has axes#4, 92`;~ Activate `selspecdlg0` `AddRuleBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `SelectButton`;~ Activate
`newlayerprops` `OkBtn`;\
mapkey(continued) ~ PopupOver `main_dlg_cur` `LayerActionMenu`1
`PHTLeft.PHLayerUI.AssyTree`;\
mapkey(continued) ~ Open `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Close `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ActionMenuLayerNew`;\
mapkey(continued) ~ Input `newlayerprops` `LayerNameInput` `CURVE`;\
mapkey(continued) ~ Update `newlayerprops` `LayerNameInput` `CURVE`;\
mapkey(continued) ~ Select `newlayerprops` `PropTab`1
`RulesDefsettingsLay`;\
mapkey(continued) ~ Activate `newlayerprops` `EditRulesBtn`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTypes`1 `Type`;\
mapkey(continued) ~ Open `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Close `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Select `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`1 \
mapkey(continued) ` Curve#1, 949`;~ Activate `selspecdlg0` `AddRuleBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `SelectButton`;~ Activate
`newlayerprops` `OkBtn`;\
mapkey(continued) ~ PopupOver `main_dlg_cur` `LayerActionMenu`1
`PHTLeft.PHLayerUI.AssyTree`;\
mapkey(continued) ~ Open `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Close `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ActionMenuLayerNew`;\
mapkey(continued) ~ Input `newlayerprops` `LayerNameInput` `DATUM_PLANE`;\
mapkey(continued) ~ Update `newlayerprops` `LayerNameInput` `DATUM_PLANE`;\
mapkey(continued) ~ Select `newlayerprops` `PropTab`1
`RulesDefsettingsLay`;\
mapkey(continued) ~ Activate `newlayerprops` `EditRulesBtn`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTypes`1 `Type`;\
mapkey(continued) ~ Open `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Close `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Select `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`1 \
mapkey(continued) ` Datum#1, 923`;~ Activate `selspecdlg0` `AddRuleBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `SelectButton`;~ Activate
`newlayerprops` `OkBtn`;\
mapkey(continued) ~ PopupOver `main_dlg_cur` `LayerActionMenu`1
`PHTLeft.PHLayerUI.AssyTree`;\
mapkey(continued) ~ Open `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Close `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ActionMenuLayerNew`;\
mapkey(continued) ~ Input `newlayerprops` `LayerNameInput` `DATUM_POINT`;\
mapkey(continued) ~ Update `newlayerprops` `LayerNameInput` `DATUM_POINT`;\
mapkey(continued) ~ Select `newlayerprops` `PropTab`1
`RulesDefsettingsLay`;\
mapkey(continued) ~ Activate `newlayerprops` `EditRulesBtn`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTypes`1 `Type`;\
mapkey(continued) ~ Open `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Close `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Select `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`1 \
mapkey(continued) ` Datum Point#1, 931`;~ Activate `selspecdlg0`
`AddRuleBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `SelectButton`;~ Activate
`newlayerprops` `OkBtn`;\
mapkey(continued) ~ PopupOver `main_dlg_cur` `LayerActionMenu`1
`PHTLeft.PHLayerUI.AssyTree`;\
mapkey(continued) ~ Open `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Close `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ActionMenuLayerNew`;\
mapkey(continued) ~ Input `newlayerprops` `LayerNameInput` `GTOL`;\
mapkey(continued) ~ Update `newlayerprops` `LayerNameInput` `GTOL`;\
mapkey(continued) ~ Select `newlayerprops` `PropTab`1
`RulesDefsettingsLay`;\
mapkey(continued) ~ Activate `newlayerprops` `EditRulesBtn`;\
mapkey(continued) ~ Open `selspecdlg0` `SelOptionRadio`;~ Close
`selspecdlg0` `SelOptionRadio`;\
mapkey(continued) ~ Select `selspecdlg0` `SelOptionRadio`1 `Gtol`;\
mapkey(continued) ~ Activate `selspecdlg0` `AddRuleBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `SelectButton`;~ Activate
`newlayerprops` `OkBtn`;\
mapkey(continued) ~ PopupOver `main_dlg_cur` `LayerActionMenu`1
`PHTLeft.PHLayerUI.AssyTree`;\
mapkey(continued) ~ Open `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Close `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ActionMenuLayerNew`;\
mapkey(continued) ~ Input `newlayerprops` `LayerNameInput` `NOTE`;\
mapkey(continued) ~ Update `newlayerprops` `LayerNameInput` `NOTE`;\
mapkey(continued) ~ Select `newlayerprops` `PropTab`1
`RulesDefsettingsLay`;\
mapkey(continued) ~ Activate `newlayerprops` `EditRulesBtn`;\
mapkey(continued) ~ Open `selspecdlg0` `SelOptionRadio`;~ Close
`selspecdlg0` `SelOptionRadio`;\
mapkey(continued) ~ Select `selspecdlg0` `SelOptionRadio`1 `Note`;\
mapkey(continued) ~ Activate `selspecdlg0` `AddRuleBtn`;~ Open `selspecdlg0`
`SelOptionRadio`;\
mapkey(continued) ~ Close `selspecdlg0` `SelOptionRadio`;\
mapkey(continued) ~ Select `selspecdlg0` `SelOptionRadio`1 `Feature`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTypes`1 `Type`;\
mapkey(continued) ~ Open `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Close `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Open `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleCatsList`;\
mapkey(continued) ~ Close `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleCatsList`;\
mapkey(continued) ~ Select `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleCatsList`1 \
mapkey(continued) `Misc`;\
mapkey(continued) ~ Open `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Close `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Activate `selspecdlg0` `SelectButton`;~ Activate
`newlayerprops` `OkBtn`;\
mapkey(continued) ~ PopupOver `main_dlg_cur` `LayerActionMenu`1
`PHTLeft.PHLayerUI.AssyTree`;\
mapkey(continued) ~ Open `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Close `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ActionMenuLayerNew`;\
mapkey(continued) ~ Input `newlayerprops` `LayerNameInput` `SURFACE`;\
mapkey(continued) ~ Update `newlayerprops` `LayerNameInput` `SURFACE`;\
mapkey(continued) ~ Select `newlayerprops` `PropTab`1
`RulesDefsettingsLay`;\
mapkey(continued) ~ Activate `newlayerprops` `EditRulesBtn`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTypes`1 `Type`;\
mapkey(continued) ~ Open `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Close `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Select `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`1 \
mapkey(continued) ` Surface#1, 942`;~ Activate `selspecdlg0` `AddRuleBtn`;\
mapkey(continued) ~ Select `selspecdlg0` `CondBuildTable`2 `0` `oper`;\
mapkey(continued) ~ Open `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleCatsList`;\
mapkey(continued) ~ Close `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleCatsList`;\
mapkey(continued) ~ Select `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleCatsList`1 \
mapkey(continued) `Misc`;\
mapkey(continued) ~ Open `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Close `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Select `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`1 \
mapkey(continued) `has quilts#4, 91`;~ Activate `selspecdlg0`
`AddRuleBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `SelectButton`;~ Activate
`newlayerprops` `OkBtn`;\
mapkey(continued) ~ PopupOver `main_dlg_cur` `LayerActionMenu`1
`PHTLeft.PHLayerUI.AssyTree`;\
mapkey(continued) ~ Open `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Close `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ActionMenuLayerNew`;\
mapkey(continued) ~ Input `newlayerprops` `LayerNameInput` `THREAD`;\
mapkey(continued) ~ Update `newlayerprops` `LayerNameInput` `THREAD`;\
mapkey(continued) ~ Select `newlayerprops` `PropTab`1
`RulesDefsettingsLay`;\
mapkey(continued) ~ Activate `newlayerprops` `EditRulesBtn`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTypes`1 `Type`;\
mapkey(continued) ~ Open `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Close `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Open `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleCatsList`;\
mapkey(continued) ~ Close `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleCatsList`;\
mapkey(continued) ~ Select `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleCatsList`1 \
mapkey(continued) `Misc`;\
mapkey(continued) ~ Open `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Close `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Select `selspecdlg0`
`ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`1 \
mapkey(continued) `is thread#4, 93`;~ Activate `selspecdlg0` `AddRuleBtn`;\
mapkey(continued) ~ Select `selspecdlg0` `CondBuildTable`2 `0` `oper`;\
mapkey(continued) ~ Open `selspecdlg0` `SelOptionRadio`;~ Close
`selspecdlg0` `SelOptionRadio`;\
mapkey(continued) ~ Activate `selspecdlg0` `SelectButton`;~ Activate
`newlayerprops` `OkBtn`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.PHLayerUI.AssyTree`2
`node0:THREAD` \
mapkey(continued) `node0:GTOL`;\
mapkey(continued) ~ PopupOver `main_dlg_cur` `LayerActionMenu`1
`PHTLeft.PHLayerUI.AssyTree`;\
mapkey(continued) ~ Open `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Close `main_dlg_cur` `LayerActionMenu`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ActionMenuLayerBlank`;\
mapkey(continued) ~ Select `main_dlg_cur`
`PHTLeft.PHLayerUI.LayerEditCasc`;\
mapkey(continued) ~ Close `main_dlg_cur` `PHTLeft.PHLayerUI.LayerEditCasc`;\
mapkey(continued) ~ Activate `main_dlg_cur` `SaveStatusBtn`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.PHLayerUI.LayerShowBtn`;\
mapkey(continued) ~ Close `main_dlg_cur` `PHTLeft.PHLayerUI.LayerShowBtn`;\
mapkey(continued) ~ Select `main_dlg_cur` `DispInTreeCasc`;\
mapkey(continued) ~ Close `main_dlg_cur` `DispInTreeCasc`;\
mapkey(continued) ~ Select `main_dlg_cur` `rad_list_layers_for`1
`all_objs_and_lays`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdViewLyrs.view`0;


Kevin J. Brault
Sharp Technologies and Design Group
Mechanical Engineering and CAD Administrative Services
410 East Crescent Place
Chandler, Arizona 85249
Highlighted

RE: Creating a layering mapkey on Wildfire 2

Hi
I do use a default setup for all of my layers in my config.pro and stuff
that our group creates is not a problem. My problem comes when I recieve
parts from other groups that get incorporated in our products. Prior to
wildfire I had a mapkey that worked very well to get everything on the
layers I like to see them on. All attempts to create a wildfire enabled
mapkey to do this fall short. One mapkey set I had would work fine on the
first model and not so well on the second model and downhill from there. If
you come up with a solution please post a summary.
Thanks
Paul
Announcements