Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-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
Joined
Aug 4, 2015
Messages
5
Location
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
 
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.

Part and Inventory Search

Sponsor

Back
Top