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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Problems with Keep & Repeat

cpalmer1
7-Bedrock

Problems with Keep & Repeat

I'm having a bit of trouble upgrading from 18.1 to 19.0 v3 while keeping my customization.The only problems I'm having are the functions FUI_MOD_KEEP and FUI_MOD_REPEAT. I have both applications running off of the same  meDir/customize.m, meDir/StartUp.m, meDir/fluientui/layout.xml and customization folder. but for some reason the check boxes don't work the same.

 

===Example===     

Keep + move_2pts

===Version 18.1 Trace ===

FUI_MOD_KEEP

MODIFY Wui_keep_repeat 'MOVE TWO_PTS'

INQ_ENV 10

LET Pelook ( INQ 6 ) 4

IF ( Pelook 4 = 4 ) 1

LET Chekeep ( FUI_MODIFY_KEEP ) 1

LET Cherepeat ( FUI_MODIFY_REPEAT ) 0

ELSE Assistance

LET Dummy 0

IF ( UA_GET_COPILOT ) 1 ASSIST

END_IF

IF ( ( Chekeep 1 ) AND ( Cherepeat 0 ) ) 0 ( ( Chekeep 1 ) AND ( NOT

  Cherepeat 0 ) ) 1 COPY

ELSE_IF

EXECUTE_STRING Action_string 'MOVE TWO_PTS' MOVE TWO_PTS

 

===Version 19.0 Trace===

FUI_MOD_KEEP

MODIFY Wui_keep_repeat 'MOVE TWO_PTS'

TRAP_ERROR

INQ_TOOLBAR_ITEM 'che_ModKeep'  { display error occurred Toolbar Item 'che_ModKeep' doesn't exist }

 

LET Chekeep ( ( NOT CHECK_ERROR ) AND ( ( INQ 15 ) = 1 ) ) 0

TRAP_ERROR

INQ_TOOLBAR_ITEM 'che_Repeat'  { display error occurred Toolbar Item 'che_Repeat' doesn't exist }

 

LET Cherepeat ( ( NOT CHECK_ERROR ) AND ( ( INQ 15 ) = 1 ) ) 0 Assistance

LET Dummy 0

IF ( UA_GET_COPILOT ) 1 ASSIST

END_IF

IF ( ( Chekeep 0 ) AND ( Cherepeat 0 ) ) 0 ( ( Chekeep 0 ) AND ( NOT

  Cherepeat 0 ) ) 0 ( ( NOT Chekeep 0 ) AND ( Cherepeat 0 ) ) 0 ( ( NOT

  Chekeep 0 ) AND ( NOT Cherepeat 0 ) ) 1 DEL_OLD

END_IF

EXECUTE_STRING Action_string 'MOVE TWO_PTS' MOVE TWO_PTS

 

============================================

Any Ideas how to correct this?


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
2 REPLIES 2
MaxR.Kublin
13-Aquamarine
(To:cpalmer1)

Posting TRACE files qualifies you as expert user.

I don't have a OOTB answer, but some hints how to proceed:

- SAVE_MACRO ALL DEL_OLD "all_mac.txt"

-.do this in V18.1 and V19

- Use Tools of your choice to find the differences of the Macro "sets"

- or edit "all_mac.txt" with a Editor program of your choice

Hope this helps.

Rgds, Max

well, after comparing the two versions of the keep command I made a FUI_MOD_KEEP2 version, as follows.

DEFINE FUI_MOD_KEEP2

{================================================================================}

  IF (FUI_MOD_KEEP_STATUS = 0)

    TOOLBAR_ITEM OVER_WRITE 'che_ModKeep'  SET_VALUE 1 CONFIRM END

    LET FUI_MOD_KEEP_STATUS 1

  ELSE_IF (FUI_MOD_KEEP_STATUS = 1)

    TOOLBAR_ITEM OVER_WRITE 'che_ModKeep'  SET_VALUE 0 CONFIRM END

    LET FUI_MOD_KEEP_STATUS 0

  END_IF

  FUI_MOD_KEEP

END_DEFINE

It seems to do the job okay, but we'll see.

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags