API 文件集 > Drawings and detail > Object ProDtlattach > Function ProDtlattachSet
Function ProDtlattachSet
Description
Modifies the contents of a ProDtlattach. The arrow type of the existing ProDtlattach will be preserved.
Synopsis
#include <ProDtlattach.h>
ProDtlattachSet
(
ProDtlattach attachment
/* (In)
The detail attachment to be modified.
*/
/* (In)
The attachment type (FREE, PARAMETRIC or OFFSET).
*/
ProView view
/* (In)
The view. Use only if the attachment type is set to PRO_DTLATTACHTYPE_FREE, to make an attachment relative to a drawing view. Use NULL to attach to a point unconnected to a drawing view and for solid model annotations.
*/
ProVector location
/* (In)
The attachment location. Use if the attachment type is set to PRO_DTLATTACHTYPE_FREE or PRO_DTLATTACHTYPE_OFFSET. For drawing objects and symbols and surface finish on flat-to-screen annotation planes, this should be in screen coordinates. For symbols and surface finish on 3D model annotation planes, this should be in model coordinates.
*/
ProSelection attach_point
/* (In)
The attachment point. Use if the attachment type is PRO_DTLATTACHTYPE_PARAMETRIC or PRO_DTLATTACHTYPE_OFFSET. For drawing attachments, the drawing view and attachment reference must be specified as a part of this structure created using ProSelect(), or by using ProSelectionAlloc () plus ProSelectionViewSet() and ProSelectionPoint3dSet().
*/
)
Returns
The function successfully allocated memory.
Bad one or more input arguments.
Bad type.
這是否有幫助?