On 01/02/13 14:40, Randy Jones wrote:
> On 01/02/13 13:38, Haigh, David A. wrote:
>>
>> Anyone know of another way to do this?
>>
>
> To hide/show all datums you can use this:
> mapkey af @MAPKEY_LABELAll Datums Off;\
> ~ Command `ProCmdEnvAxisDisp` 0;\
> ~ Command `ProCmdEnvPntsDisp` 0;\
> ~ Command `ProCmdEnvCsysDisp` 0;\
> ~ Command `ProCmdEnvDtmDisp` 0;
>
> mapkey ao @MAPKEY_LABELAll Datums On;\
> ~ Command `ProCmdEnvAxisDisp` 1;\
> ~ Command `ProCmdEnvPntsDisp` 1;\
> ~ Command `ProCmdEnvCsysDisp` 1;\
> ~ Command `ProCmdEnvDtmDisp` 1;
I just noticed the above mapkeys actually work as a toggle (at least in WF5 and Creo 2.0). Which may or may not be good.
>
> Which is what you get by selecting each datum type individually instead of the "Select All" checkbox.
> I would say PTC has a bug with the "Select All" mapkey recording.
>
>> Orginally I created mapkeys like this:
>>
>> mapkey af @MAPKEY_LABELAll Datums Off;\
>>
>> ~ Activate `main_dlg_cur` \
>>
>> `igToolbar_AncestorIGT_IGT_GRP_inh407412841.proe_win|.mcs29658718_mp|select_\
>>
>> all_check` 0;\
>>
>> mapkey ao @MAPKEY_LABELAll Datums On;\
>>
>> ~ Activate `main_dlg_cur` \
>>
>> `igToolbar_AncestorIGT_IGT_GRP_inh407412841.proe_win|.mcs29658718_mp|select_\
>>
>> all_check` 1;\
>>
>> You will notice hi-lited in yellow it shows the Mode that you are in when you recorded the mapkey. It will not work in other modes.
>>
>> The fix requires adding additional lines so this works in part, assy, and drawing modes. I'd prefer not to have to do this. I'd like the mapkey to work in any mode. Any ideas?
>>
>> mapkey af @MAPKEY_LABELAll Datums Off;\
>>
>> ~ Activate `main_dlg_cur` \
>>
>> `igToolbar_AncestorIGT_IGT_GRP_inh407412841.proe_win|.mcs29658718_mp|select_\
>>
>> all_check` 0;\
>>
>> ~ Activate `main_dlg_cur` \
>>
>> `igToolbar_AncestorIGT_IGT_GRP_inh396938342.proe_win|.mcs29658718_mp|select_\
>>
>> all_check` 0;\
>>
>> ~ Activate `main_dlg_cur` \
>>
>> `igToolbar_AncestorIGT_IGT_GRP_inh397369119.proe_win|.mcs29658718_mp|select_\
>>
>> all_check` 0;
>>
>> mapkey ao @MAPKEY_LABELAll Datums On;\
>>
>> ~ Activate `main_dlg_cur` \
>>
>> `igToolbar_AncestorIGT_IGT_GRP_inh407412841.proe_win|.mcs29658718_mp|select_\
>>
>> all_check` 1;\
>>
>> ~ Activate `main_dlg_cur` \
>>
>> `igToolbar_AncestorIGT_IGT_GRP_inh396938342.proe_win|.mcs29658718_mp|select_\
>>
>> all_check` 1;\
>>
>> ~ Activate `main_dlg_cur` \
>>
>> `igToolbar_AncestorIGT_IGT_GRP_inh397369119.proe_win|.mcs29658718_mp|select_\
>>
>> all_check` 1;
>>
>> David Haigh
>> Phone: 925-424-3931
>> Fax: 925-423-7496
>> Lawrence Livermore National Lab
>> 7000 East Ave, L-362
>> Livermore, CA 94550
>>
>>
>> -----End Original Message-----
>
>
> --
> ------------------------------------------------------------------------
> Randy Jones
> Systems Administrator
> Great Plains Mfg., Inc.
> 1525 E North St
> PO Box 5060
> Salina, KS USA 67401
> email:-
> Phone: 785-823-3276
> Fax: 785-667-2695
> ------------------------------------------------------------------------
>
> -----End Original Message-----
--
------------------------------------------------------------------------
Randy Jones
Systems Administrator
Great Plains Mfg., Inc.
1525 E North St
PO Box 5060
Salina, KS USA 67401
email: -
Phone: 785-823-3276
Fax: 785-667-2695
------------------------------------------------------------------------