API 文件集 > Selection > Object ProSelbuffer > Function ProSelbufferSelectionAdd
Function ProSelbufferSelectionAdd
Description
Programmatically add an item to the buffer of the currently active selection tool.
Replacement in Object TOOLKIT:
Synopsis
#include <ProSelbuffer.h>
ProSelbufferSelectionAdd
(
/* (In)
The object to add to the buffer. This selection must reference an item that could have been selected in the current model (its owner, component path, and/or drawing view values must be properly constructed).
*/
)
Returns
The function succeeded.
The input argument was invalid.
There is no Object/Action selection tool active.
The selection does not correctly reference the current model.
The item is not currently displayed and so cannot be added to the buffer.
The selection cannot be added to the buffer in combination with one or more objects that are already in the buffer (e.g. geometry and features selected at the same time).
The function failed to add the requested item to the buffer.
Buffer modification is prohibited.
input collection is not supported in multi-body models.
Sample Code References
這是否有幫助?