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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Creo 2.0 query on Datum Features toggle

BrentDrysdale
7-Bedrock

Creo 2.0 query on Datum Features toggle

Hi Folks,
So here we are on Creo 2.0

We used to have a Mapkey toggle for turning all Datum Features to their
opposite state (usually all on or all off) We used F12 for this and it has
been very practical.
I know the floating toolbar sits in the model window and you can select
Datum Display Filters icon then select the checkbox for all off or again
for all on but this is a two step process for something we have dealt with
by mapkey for many many years (and did not even need to take our eyes off
the screen). As this Datum Filters command is not in the ribbon menu (and
cannot be added as far as I can test) I cannot make an equivalent mapkey.
So instantly we have a productivity decrease.
Any ideas for how to get back what we lost?


Regards,

*Brent Drysdale*
*Senior Design Engineer*
Tait Communications
4 REPLIES 4

Hi Folks,
So maybe answered my own question. I was able to make a mapkey that looks
in the View menu in the ribbon then picks each item to toggle. Maybe this
was how we made it so many years ago in any case 🙂
Text of mapkey below for anybody interested.

mapkey $F12 @MAPKEY_LABELToggle Datum Features;\
mapkey(continued) ~ Activate `main_dlg_cur` `page_View_control_btn` 1;\
mapkey(continued) ~ Command `ProCmdEnvDtmDisp` 1;~ Command
`ProCmdEnvAxisDisp` 1;\
mapkey(continued) ~ Command `ProCmdEnvPntsDisp` 1;~ Command
`ProCmdEnvCsysDisp` 1;\
mapkey(continued) ~ Command `ProCmdEnvAnnotElemDisp` 1;~ Command
`ProCmdEnvDtmPlnTagDisp` 1;\
mapkey(continued) ~ Command `ProCmdEnvAxisTagDisp` 1;~ Command
`ProCmdEnvPntsTxt` 1;\
mapkey(continued) ~ Command `ProCmdEnvCsysTagDisp` 1;;


Regards,

*Brent Drysdale*
*Senior Design Engineer*
Tait Communications

You can't control the datusm tags in the UI. If you truly want to turn everything on and off you need to load a config file to do that.

!=========================================================
!== DATUM VIEWING ==
!=========================================================
mapkey ax @MAPKEY_LABELAxes On/Off;\
~ Command `ProCmdEnvAxisDisp` 1;

mapkey cx @MAPKEY_LABELCoordinate Systems On/Off;\
~ Command `ProCmdEnvCsysDisp` 1;

mapkey dx @MAPKEY_LABELDatum Planes On/Off;\
~ Command `ProCmdEnvDtmDisp` 1;

mapkey px @MAPKEY_LABELPoints On/Off;\
~ Command `ProCmdEnvPntsDisp` 1;

mapkey af @MAPKEY_LABELAll Datums Off;\
~ Command `ProCmdRibbonOptionsDlg` ;\
~ Select `ribbon_options_dialog` `PageSwitcherPageList` 1 `ConfigLayout`;\
~ Activate `ribbon_options_dialog` `ConfigLayout.Open`;\
~ Update `file_open` `Inputname` `P:\\mapkey_configs\\datums_no.pro`;\
~ Command `ProFileSelPushOpen@context_dlg_open_cmd` ;\
~ Activate `ribbon_options_dialog` `OkPshBtn`;\
~ FocusIn `UITools Msg Dialog Future` `no`;\
~ Activate `UITools Msg Dialog Future` `no`;

mapkey ao @MAPKEY_LABELAll Datums On;\
~ Command `ProCmdRibbonOptionsDlg` ;\
~ Select `ribbon_options_dialog` `PageSwitcherPageList` 1 `ConfigLayout`;\
~ Activate `ribbon_options_dialog` `ConfigLayout.Open`;\
~ Update `file_open` `Inputname` `P:\\mapkey_configs\\datums_yes.pro`;\
~ Command `ProFileSelPushOpen@context_dlg_open_cmd` ;\
~ Activate `ribbon_options_dialog` `OkPshBtn`;\
~ FocusIn `UITools Msg Dialog Future` `no`;\
~ Activate `UITools Msg Dialog Future` `no`;

David Haigh

I liked your idea but didn't want to maintain another config.pro so decided to just do it in the mapkey.  I did not change the datum tags but this is what the mapkey looks like that I created in Creo2:

mapkey dtmoff @MAPKEY_NAMETurn off all Datums;@MAPKEY_LABELDtms Off;\

mapkey(continued) ~ Select `main_dlg_cur` `appl_casc`;~ Close `main_dlg_cur` `appl_casc`;\

mapkey(continued) ~ Command `ProCmdRibbonOptionsDlg`

mapkey(continued) ~ Select `ribbon_options_dialog` `PageSwitcherPageList` 1 `ConfigLayout`;\

mapkey(continued) ~ Activate `ribbon_options_dialog` `ConfigLayout.SearchOpt`;\

mapkey(continued) ~ Input `find` `EnterKeyword` `display_planes`;\

mapkey(continued) ~ Update `find` `EnterKeyword` `display_planes`;\

mapkey(continued) ~ Activate `find` `EnterKeyword`;~ Open `find` `Values`;\

mapkey(continued) ~ Close `find` `Values`;~ Select `find` `Values` 1 `no`;\

mapkey(continued) ~ Activate `find` `Apply`;~ Activate `find` `find`;\

mapkey(continued) ~ Input `find` `EnterKeyword` `display_axes`;\

mapkey(continued) ~ Update `find` `EnterKeyword` `display_axes`;~ Activate `find` `FindNow`;\

mapkey(continued) ~ Open `find` `Values`;~ Close `find` `Values`;\

mapkey(continued) ~ Select `find` `Values` 1 `no`;~ Activate `find` `Apply`;\

mapkey(continued) ~ Activate `find` `find`;~ Input `find` `EnterKeyword` `display_points`;\

mapkey(continued) ~ Update `find` `EnterKeyword` `display_points`;\

mapkey(continued) ~ Activate `find` `EnterKeyword`;~ Open `find` `Values`;\

mapkey(continued) ~ Close `find` `Values`;~ Select `find` `Values` 1 `no`;\

mapkey(continued) ~ Activate `find` `Apply`;~ Activate `find` `find`;\

mapkey(continued) ~ Input `find` `EnterKeyword` `display_coord_sys`;\

mapkey(continued) ~ Update `find` `EnterKeyword` `display_coord_sys`;\

mapkey(continued) ~ Activate `find` `FindNow`;~ Open `find` `Values`;~ Close `find` `Values`;\

mapkey(continued) ~ Select `find` `Values` 1 `no`;~ Activate `find` `Apply`;\

mapkey(continued) ~ Activate `find` `Close`;~ Activate `ribbon_options_dialog` `OkPshBtn`;\

mapkey(continued) ~ FocusIn `UITools Msg Dialog Future` `no`;\

mapkey(continued) ~ Activate `UITools Msg Dialog Future` `no`;~ Command `ProCmdViewRefit`;


"When you reward an activity, you get more of it!"

note that I could not get the smiley face out of there  so replace the smiley face with a semicolon and back slash ";\"


"When you reward an activity, you get more of it!"
Top Tags