API 文件集 > Assembly > Object ProAsmcomp > Function ProAsmcompConstrRemove
Function ProAsmcompConstrRemove
Description
Removes a component constraint, given a handle to the assembly component and the index of the constraint to remove. Intrfc constraint remains intact since main intrfc plin couldn't be removed whence all plins will be restored upon regen.
Replacement in Object TOOLKIT:
Synopsis
#include <ProAsmcomp.h>
ProAsmcompConstrRemove
(
ProAsmcomp* p_feat_handle
/* (In)
The handle to the assembly component.
*/
int index
/* (In)
The index of component to be removed. Indexing begins with 0 and continues to (number of constraints-1). An index of -1 removes all the constraints.
*/
)
Returns
The function successfully removed the constraint.
The specified feature is not a valid component feature.
The specified constraint does not exist.
Sample Code References
這是否有幫助?