几何尺寸与公差论坛

 找回密码
 注册
查看: 83|回复: 1

PR 260115 The Tabs in the Probe ToolBox disappear, after the use of a Dimensi

[复制链接]
发表于 2009-4-27 10:12:02 | 显示全部楼层 |阅读模式
The Tabs in the Probe ToolBox disappear, after the use of a Dimension dialog.
<< Domenico Varacalli  --  02/27/09  11:29:06>>
After the use of a Dimension dialog (in the example a Distance Dimension), the Tabs of the Probe ToolBox inside the AutoFeature dialog, disapper.
This disappearance happens on all the autofeatures. To recover the condition of normal operation, it is necessary to close the program and to reopen it.
To look inside the ZIP, all data.
<<END>>

<< Domenico Varacalli  --  03/05/09  16:16:41>>
I have verified with the version V.4.4beta (March 4, 2009). The problem it doesn't appear anymore.
<<END>>
<< Changes made by Domenico Varacalli -- 03/05/09  16:17:22>>
Status:  RESOLVED to CLOSED
<<END>>
<< Changes made by Gianni Revello -- 03/05/09  08:53:36>>
Action:  Gianni Revello to Domenico Varacalli, Status:  REVIEW to RESOLVED
<<END>>
<< Don Turcotte  --  03/03/09  08:34:21>>
Reviewed.
OK
<<END>>
<< Changes made by Don Turcotte -- 03/03/09  08:34:21>>
Action:  Don Turcotte to Gianni Revello
<<END>>
<< Alberto Piolatto  --  03/02/09  17:54:04>>
Fixed on v44b.
It was a side effect of TK#104595.
The problem arises when in the distance dialog the 2D option is selected.
The 2D section causes the command_dialog_ok() method to be exeecuted with the current dialog command set as "TRIAL COMMAND"
At the begin command_dialog_ok() calls
    m_pPartProgram->SetBlockUpdateUI(true);
With the "True" parameter SetBlockUpdateUI increases the CPCDpart_program::m_BlockUpdateUICnt counter and freezes the DRAW mode.
When SetBlockUpdateUI is called with "false" increases the CPCDpart_program::m_BlockUpdateUICnt counter and if the counter becomes 0 un freezes the DRAW mode and refreshes the UI.
If the current dialog command is marked as TRIAL the command_dialog_ok() exits without calling
  m_pPartProgram->SetBlockUpdateUI(false);
This causes the CPCDpart_program::m_BlockUpdateUICnt counter never go to 0 and DRAW mode is left frozen ad UI never updated.

Files inserted to server
------------------------
V44B\SOURCE\GLOBALS.CPP
<<END>>
<< Changes made by Alberto Piolatto -- 03/02/09  17:57:02>>
Action:  Alberto Piolatto to Don Turcotte, Status:  OPEN to REVIEW
<<END>>
<< Changes made by Alberto Piolatto -- 03/02/09  09:58:41>>
Action:  Sheetmetal Group to Alberto Piolatto
<<END>>
<< Tim Wernicke  --  02/27/09  11:47:20>>
I can reproduce this.  It only happens on create from the Dimension dialog.
<<END>>
<< Changes made by Tim Wernicke -- 02/27/09  11:47:22>>
Priority:  to Stop Rel.
<<END>>
 楼主| 发表于 2009-4-27 10:27:45 | 显示全部楼层

回复: PR 260115 The Tabs in the Probe ToolBox disappear, after the use of a D

V44B\SOURCE\GLOBALS.CPP
CPCDcommand * command_dialog_ok(CPCDpart_program *m_pPartProgram, CDialog * dlg, int* KeepDlgOpen, int* commands_deleted, BOOL bUpdateObjectsReferencing /*= TRUE*/) // PR253846 - avoid duplicate prompts "Do you want to update nominals of related dimensions?"

   // 104595 - if this is just a trial dimension to display in status window, just call read_dialog(...)
    if( pCmdPointerBeforeReadDialog && pCmdPointerBeforeReadDialog->is_dimension() )
    {
      if( ((CPCDbasic_dimension*)pCmdPointerBeforeReadDialog)->IsTrialCommand() )
      {
        // PR#260115 Alberto 02-Mar-2009
        newd = pCmdPointerBeforeReadDialog->read_dialog(dlg, &new_objects);
        m_pPartProgram->SetBlockUpdateUI(false);
        return newd;
      }
    }
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-22 18:45 , Processed in 0.038215 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表