iCAx开思网
标题:
CAA:怎么根据sketch得到MechanicalPart或 MechanicalTool ?
[打印本页]
作者:
pyzpyz
时间:
2004-8-6 11:34
标题:
CAA:怎么根据sketch得到MechanicalPart或 MechanicalTool ?
有请高手帮忙,CAA中怎么根据sketch得到它所属的MechanicalPart或 MechanicalTool ?能否给出代码。谢谢。
作者:
acoka
时间:
2004-8-6 12:08
CATIMechanicalTool_var WSHTest::GetMechTool( CATISpecObject_var ispSpecObject )
{
CATIMechanicalTool_var spMechToolFather = NULL_var;
do {
if ( !ispSpecObject ) {
break;
}
CATISpecObject_var spIFather = ispSpecObject;
for ( int iCnt = 1; iCnt<=100; iCnt++ ) {
if ( !spIFather ) {
break;
}
// Get feature's father
spIFather = spIFather->GetFather();
// is the father is not CATIGSMTool
spMechToolFather = spIFather;
if ( !spMechToolFather ) {
continue;
}
}
} while ( FALSE );
return spMechToolFather;
}
作者:
pyzpyz
时间:
2004-8-6 17:22
谢谢acoka 。
欢迎光临 iCAx开思网 (https://www.icax.org/)
Powered by Discuz! X3.3