API 설명서 > Assembly > Object ProAsmcomp > Function ProAsmcompConstraintsSet
Function ProAsmcompConstraintsSet
Description
sets an array of constraints for a given Assembly component. This function modifies the component feature data and regenerates the assembly component.
Replacement in Object TOOLKIT:
Synopsis
#include <ProAsmcomp.h>
ProAsmcompConstraintsSet
(
ProAsmcomppath* component_path
/* (In)
The path to the owner assembly, if the contstraints have references to other members of the top level assembly. If the constraints are only with respect to the assembly owner in component, this should be NULL.
*/
ProAsmcomp* component
/* (In)
The assembly component
*/
ProAsmcompconstraint* p_constraints
/* (In)
ProArray of constraints
*/
)
Returns
The function successfully set the information.
Model is in read-only state.
The input is invalid.
The component argument is not a valid assembly component.
The p_constraints array is not a valid ProArray.
Regeneration using the specified constraints failed; the component reverted to the previous configuration.
See Also
Sample Code References
User Guide References
도움이 되셨나요?