几何尺寸与公差论坛

 找回密码
 注册
查看: 232|回复: 2

Tk 104107 - Find out what it will take to prevent looped commands from creati

[复制链接]
发表于 2008-5-26 14:45:46 | 显示全部楼层 |阅读模式
Find out what it will take to prevent looped commands from creating independent FCFs
<< David Petrizze  --  03/03/08  15:12:24>>
Find out what it will take to prevent looped commands from creating independent FCFs.
Then, let's eliminate this from occuring.
<<END>>
 楼主| 发表于 2008-5-26 14:46:11 | 显示全部楼层

回复: Tk 104107 - Find out what it will take to prevent looped commands from

<< Don Turcotte  --  03/07/08  15:18:46>>
I have completed the implementation and testing.  I have attached my test program to this task.  The changes in CPCDFeatCtrlFrm::draw_element(...) ensure that only the last FCF in an iteration is drawn when executing a Loop.  The changes in CPcdmislView::Gen3DLists(...) ensure that only the last FCF in an iteration is drawn when the program is loaded.

Files inserted to server
------------------------
V43B\DIMENS\FEATCTRLFRM.CPP
V43B\INCLUDE\FEATCTRLFRM.H
V43B\MENU\PCDMIVW.CPP

V44B\DIMENS\FEATCTRLFRM.CPP
V44B\INCLUDE\FEATCTRLFRM.H
V44B\MENU\PCDMIVW.CPP

<<END>>
 楼主| 发表于 2008-5-26 14:47:27 | 显示全部楼层

回复: Tk 104107 - Find out what it will take to prevent looped commands from

void CPCDFeatCtrlFrm::draw_element(short erase)
{
  int i;
  // make this consistant with other element types - sab - 17-march-2006

  // T104107 - draw only the last instance of a loop during execution
  CPCDFeatCtrlFrm * p = (CPCDFeatCtrlFrm*)pcp_PrevInstance;
  if( p )
  {
    if (p->get_id_element() != NULL && m_pPartProgram != NULL)
    {
      m_pPartProgram->ELEMDelete (p->get_id_element());
      p->set_id_element(NULL);
    }

    HBITMAP & hBM = p->GetHBM();
    DeleteObject(hBM);
  }
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-23 05:24 , Processed in 0.037319 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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