API 文件集 > Drawings and detail > Object ProDrawing > Function ProDrawingDtlentityVisit
Function ProDrawingDtlentityVisit
Description
Visits all draft entities stored in the specified drawing and sheet.
Note : The function cannot access symbol definitions for special symbols, such as, datum targets or parametric connector symbols.
Replacement in Object TOOLKIT:
Synopsis
#include <ProDtlentity.h>
ProDrawingDtlentityVisit
(
ProDrawing drawing
/* (In)
The drawing
*/
ProDtlsymdef* symbol
/* (In)
If you are collecting a detail item in the drawing, set the parent to NULL. If you are collecting draft entity in a symbol definition, set the parent to be that symbol definition.
*/
int sheet
/* (In)
The sheet number. If the value is PRO_VALUE_UNUSED, the function uses the current sheet.
*/
/* (In)
the function that gets called for each draft entities being visited.
*/
/* (In)
the function that gets called for each draft entities. This function decides whether the entities should be visited or skipped. If NULL, all entities are visited using the action function.
*/
ProAppData appdata
/* (In)
caller-specified data that gets passed to the action and filter functions.
*/
)
Returns
The function successfully visited all the draft entities.
One or more arguments was invalid.
The function failed.
No entities were found.
Other
Return value passed by the caller's visit function.
這是否有幫助?