iCAx开思工具箱
标题:
CAA约束问题求助
[打印本页]
作者:
lanhuyigui
时间:
2009-2-12 21:36
标题:
CAA约束问题求助
约束求助(部分代码):
...
//在装配下进行第一次选择获得第一个零件的轴
CATLine * piLine1 = NULL;
pObject->QueryInterface(IID_CATLine, (void**)&piLine1);
...
//在装配下进行第二次选择获得第二个零件的轴
CATLine * piLine2 = NULL;
pObject->QueryInterface(IID_CATLine, (void**)&piLine2);
...
//定义两个Connector CATIConnector_var spConn1 = NULL_var;
CATIConnector_var spConn2 = NULL_var;
//下面不行,如何将CATLine(piLine1和piLine2)转化成CATBaseUnknown?CATBaseUnknown的话就行了 spConn1=piLine1;
spConn2=piLine2;
//约束
ConnectorList.Append(spConn1);
ConnectorList.Append(spConn2);
CreateConstraint(catCstTypeOn,ConnectorList,NULL,spRootProduct,&pCst);
作者:
NO显山露水
时间:
2012-12-10 21:52
顶起来,求解答,为什么选的CATLine就得不到CATIConnector呢?
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3