Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
Art,
In your top assembly, and all submodels, delete all layers named PLANES. Alternately rename them, Alternately edit these mapkeys and replace PLANES with the name you prefer.
Run these three mapkeys in the order listed. Hide the layer PLANES.
Note: This only impacts datum planes that are features. Datums that are in copy geoms will not be impacted.
You can use a modification of the techniques embodied in the second mapkey, to find the planes(entities) instead of Datum plane features. In which case the planes layers will include the planes that are copy geoms.
Luck, Glenn Beer
mapkey /resetfind @MAPKEY_NAMEReset Find;@MAPKEY_LABELReset Find;\
mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdMdlTreeSearch.edit_t`;\
mapkey(continued) ~ Update `selspecdlg0` `SelOptionRadio` `Feature`;\
mapkey(continued) ~ Activate `selspecdlg0` `SelOptionRadio`;\
mapkey(continued) ~ Update `selspecdlg0` `LookByOptionMenu` `Feature`;\
mapkey(continued) ~ Activate `selspecdlg0` `LookByOptionMenu`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTab` 1 `Attributes`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTypes` 1 `Name`
mapkey /lay_planes ~ Activate `main_dlg_cur` `ProCmdMdlTreeSearch.edit_t`;\
mapkey(continued) ~ Activate `selspecdlg0` `SelScopeCheck` ;0;\
mapkey(continued) ~ Update `selspecdlg0` `SelOptionRadio` `Feature`;\
mapkey(continued) ~ Activate `selspecdlg0` `SelOptionRadio`;\
mapkey(continued) ~ Update `selspecdlg0` `LookByOptionMenu` `Feature`;\
mapkey(continued) ~ Activate `selspecdlg0` `LookByOptionMenu`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTab` 1 `Attributes`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTypes` 1 `Type`~ Select `selspecdlg0` \
mapkey(continued) `ExtRulesLayout.ExtTyperuleLayout.TyperuleComp`1 ` == `;\
mapkey(continued) ~ Update `selspecdlg0` \
mapkey(continued) `ExtRulesLayout.ExtTyperuleLayout.TyperuleCatsList``Datum`;\
mapkey(continued) ~ Update `selspecdlg0` \
mapkey(continued) `ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList``Datum Plane`;\
mapkey(continued) ~ Activate `selspecdlg0` \
mapkey(continued) `ExtRulesLayout.ExtTyperuleLayout.TyperuleTypesList`;\
mapkey(continued) ~ Close `selspecdlg0` `CascadeButton1`;\
mapkey(continued) ~ Activate `selspecdlg0` `SaveResults`;\
mapkey(continued) ~ Update `save_rules_dlg` `LayNamePanel` `planes`;\
mapkey(continued) ~ Activate `save_rules_dlg` `OKBtn`;~ Activate `selspecdlg0` `CancelButton`;
mapkey /ext @MAPKEY_NAMEPropagate selected layers and rules to submodels;\
mapkey(continued) @MAPKEY_LABELExtend Layers;\
mapkey(continued) ~ RButtonArm `main_dlg_cur` `PHTLeft.PHLayerUI.AssyTree` `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` `ActionMenuTreeSearch`;\
mapkey(continued) ~ Activate `layertreequery` `AddBtn`;\
mapkey(continued) ~ Select `layertreequery` `ValueList`1 `PLANES`;\
mapkey(continued) ~ Activate `layertreequery` `AddBtn`;\
mapkey(continued) ~ Activate `layertreequery` `FindNextBtn`;\
mapkey(continued) ~ Activate `layertreequery` `SelectAllBtn`;\
mapkey(continued) ~ Activate `layertreequery` `layertreequery`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.PHLayerUI.LayerEditCasc`;\
mapkey(continued) ~ Close `main_dlg_cur` `PHTLeft.PHLayerUI.LayerEditCasc`;\
mapkey(continued) ~ Activate `main_dlg_cur` `PropagateBtn`;\
mapkey(continued) ~ Activate `layertreequery` `CloseBtn`;
Dave,
I find it works well to have all datum planes on one layer, including the set datums.
Then have another layer with the set datums only.
Compounded rules are not needed.
The key to making it work is to use the Hide to make all items on all layers invisible, then use Isolate to make the items on selected layers visible.
(Just know that if attention isn't paid as to what kinds of items are being put on layers the results may be surprising.)