iCAx开思论坛's Archiver

zhangbanglei 发表于 2010-6-13 13:01

求助sw二次开发中布尔运算命令的应用问题

VC对sw二次开发布尔运算命令IInsertCombineFeature
对第四个参数的解释不理解,
(LPBODY2*) 是什么类型 toolsArr 怎么定义  如何初始化

status = FeatureManager->IInsertCombineFeature ( operationType, mainBody, toolsCount, toolsArr, &retval )

[table=98%][tr][td=1,1,84]Input:
[/td][td=1,1,192](long) operationType
[/td][td=1,1,451]One of the following body operations:
[list]SWBODYADD
SWBODYCUT
[*]SWBODYINTERSECT
[/list][/td][/tr][tr][td=1,1,84]Input:
[/td][td=1,1,192](LPBODY2) mainBody
[/td][td=1,1,451]For subtract and cut operations, this is the target body; for other operations, this is NULL
[/td][/tr][tr][td=1,1,84]Input:
[/td][td=1,1,192](long) toolsCount
[/td][td=1,1,451]Number of bodies to combine
[/td][/tr][tr][td=1,1,84]Input:
[/td][td=1,1,192](LPBODY2*) toolsArr
[/td][td=1,1,451]Array of bodies to combine of size toolsCount
[/td][/tr][tr][td=1,1,84]Output:
[/td][td=1,1,192](LPFEATURE) retval
[/td][td=1,1,451]Pointer to the [url=mk:@MSITStore:C:\Program%20Files\SolidWorks\api\sldworksAPI.chm::/Feature/Feature.htm][color=#810081]Feature[/color][/url] object
[/td][/tr][tr][td=1,1,84]Return:
[/td][td=1,1,192](HRESULT) status
[/td][td=1,1,451]S_OK if successful
[/td][/tr][/table]

页: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Comsenz Inc.