C++
Acad::ErrorStatus acdbGetHostDwgXrefGraph( AcDbDatabase* pHostDb, AcDbXrefGraph& graph, Adesk::Boolean includeGhosts = Adesk::kFalse );
File
acdbxref.h
Description
This function fills in graph with a completed graph of xrefs in the database pointed to by pHostDb.
Ghost references appear when there are unresolved xrefs in a drawing. Ghosts are the unresolved xref's last known outgoing references (that is, its nested xrefs.) To determine outgoing references of a node, see the AcDbGraphNode::numOut() and AcDbGraphNode::out() methods.
There is no distinction between ghost references and non-ghost references in the graph. However, any outgoing edge of a node whose status is not AcDb::kResolved is a ghost reference. Use the AcDbXrefGraphNode::xrefStatus() function to query a node's status.
Returns Acad::eOk if successful.
Parameters
Parameters | Description |
---|---|
pHostDb | Input pointer to host AcDbDatabase |
graph | Input AcDbXrefGraph object to be filled in |
includeGhosts | Input Boolean indicating whether to include ghosts in the graph |