查看单个帖子
旧 2009-05-04, 03:20 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】about grippoints... help me

about grippoints... help me....
about grippoints... help me....
hi
i think that mdi is very similar with sdi.
i'm programming activex control using odamfc(dwgdirect 2.2.0) with sdi
grippoints is activated in mdi but isn't activated in sdi.
i want to get grippoints for measurement.
is this the right solution, or is there another way?
thanks in advance for help
regards
noh
<editorobject.cpp>
if(m_pgrippoints.get())
pview->erase(m_pgrippoints);
if ( psset->numentities()>0 ) // because retrun value 0 in sdi
{
m_pgrippoints = odrxcreateobject( dd_t("grippointscloning") );
if ( m_pgrippoints.get() )
{
oddbselectionsetiteratorptr piter = psset->newiterator();
while ( !piter->done() )
{
m_pgrippoints->addentity( piter->objectid() );
piter->next();
}
pview->add(m_pgrippoints, 0);
}
}
hi,
so does it works ?
quote:
originally posted by dmitry a. novikov
hi,
so does it works ?
hi
yes!
grippoints actived in mdi
but not actived in sdi.
i want grippoints in sdi.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)