Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C++ API to read the publications

Status
Not open for further replies.

kbandela

Computer
Aug 4, 2015
5
0
0
US
I am writing a plugin where I need to read the publications under a product
Publications_vxquch.jpg

I am able to read the publication names using this code.

CATIProduct_var spProductInst = GetProductInstance();
CATIPrdObjectPublisher_var piPublisher = NULL_var;
HRESULT hr = spProductInst->QueryInterface(IID_CATIPrdObjectPublisher, (void**)&piPublisher);
CATListValCATUnicodeString* pPublicationsList = NULL;
int publicationCount = piPublisher->ListPublications(pPublicationsList);


However, I need to get the actual point and plane object that was published. I tried out the GetDirectObject and GetFinalObject methods, but they are not providing the published objects.
If anyone can point me to the API that will be of great help

Thanks in advance
 
Replies continue below

Recommended for you

You can call Valuate or Valuation method of CATIAPublication and convert resulting CATIAReference to CATISpecObject with dedicated function of MECMOD framework.
 
Status
Not open for further replies.
Back
Top