I want to insert an existing document to the current document. What I expect is the gemetric model in the inserted document will be displayed and it also will be list in the OCAF tree inn the current document.
I tried the function TDocStd_XLinkTool as indicated in the application framework user's guide:
// open the document in the current application
CDF_RetrievableStatus RS = m_App->Open(TPath,DocRef);
Handle(TDocStd_Document) DocCur = GetDocument()->GetOCAFDoc();
TDF_Label source = DocCur->Main();
TDF_Label target = DocRef->Main();
And I haven't got what I want. Does anyone know how to implement it?
I appreciate your help very much!