API 文档 > Dimensions > Object ProDimension > Function ProDimensionArrowtypeSet
Function ProDimensionArrowtypeSet
Description
Set the type of one of a dimension's arrows.
Replacement in Object TOOLKIT:
Synopsis
#include <ProDimension.h>
ProDimensionArrowtypeSet
(
ProDimension* dimension
/* (In)
The dimension for which we wish to set an arrow type.
*/
ProDrawing drawing
/* (In)
A drawing in which the dimension is shown, in which to set the arrow type. May be NULL to set the arrow type in the dimension's owner model.
*/
int arrow_index
/* (In)
Either 1 or 2. For ordinate and radius dimensions, this value is ignored. For diameter dimensions, this determines which of the two arrows to change. For other dimensions, a value of 1 indicates the arrow on the first witness line, and a value of 2 indicates the arrow on the second.
*/
ProLeaderType arrow_type
/* (In)
The type to which the arrow is set.
*/
)
Returns
The function succeeded.
One or more of the input arguments are invalid.
The dimension does not exist.
The dimension owner is invalid.
The dimension cannot be modified.
这对您有帮助吗?