Share

AcEditorReactor::xrefSubcommandDetachItem

C++

void xrefSubcommandDetachItem(
    AcDbDatabase*, 
    int, 
    AcDbObjectId
) override;

Description

This callback indicates that the XREF subcommand DETACH is invoked. The DETACH is carried out on all dependents in the XREF as well. The DETACH subcommand is interactive, and will trigger multiple calls to xrefSubcommandDetachItem. The value of activity indicates the reason for the call.

The activity values are as follows:

kStart DETACH subcommand invoked (blockId holds no meaningful value at this point)
kStartItem XREF with the objectIdblockId is to be detached. This occurs for the initial XREF and any dependents it has
kEndItem XREF with the objectIdblockId was successfully detached. This occurs for the initial XREF and any dependents it has
kEnd DETACH subcommand has completed
kAbort DETACH operation was either terminated or failed to complete on the specified blockId

Parameters

Parameters Description
pHost Input pointer to the host database
activity Passed in activity that the DETACH is carrying out; possible values are kStart, kEnd, kAbort, kStartItem, kEndItem
blockId Passed in object ID of the xref being bound

Links

AcEditorReactor Class

Was this information helpful?