huigezrx |分类标签:C/C++, CAA, CATIA 2014-09-10
请教CATFeatureImportAgent代理类的用法
CATFeatureImportAgent代理类继承自CATFeatureAgent,在此基础上进行了扩展,那么使用该类和直接使用CATFeatureAgent有什么区别呢?使用方法有什么不同吗?
回答(1)
wustguangh 19级 2014-09-11 19:39:31
下面是API对应的英文解释:
This agent of selection is dedicated for mechanical features. In addition to the CATFeatureAgent possibilities, this agent enables you, in assembly context, to import in a Part, specified by CATFeatureAgent.SetActiveObjectPath , the selection done in another Part document. The imported object is aggregated by the "External References" feature of a Part document. However contrary to the CATFeatureAgent, you cannot prohibit the selection outside the current component (a Part or a Product of a Product document).
The CATPathElementAgent.GetValue, for this agent, returns the path of the selected object. In case of import, it is the path of the imported object.