Skip to Content
0
Aug 13, 2020 at 07:38 PM

How to retrive document description?

156 Views Last edit Aug 13, 2020 at 07:39 PM 2 rev

Hello,

I am currently working on program which search and open document from ECTR based on document number. How can I also retrieve document description in this code?

//Code
DocSearch docSearch = new DocSearch();  
docSearch.DocNumber = "40000169574";

IPlmConnector connector = PlmConnectorFactory.GetPlmConnector(config);
IPlmResponse plmResponse =connector.SearchDocument(ListParts, docSearch, Com.Dscsag.Plm.Comm.SelectionMode.DEFAULT);            
string strFileName = plmResponse.Parts[0].Filename;
string strDocumentDescription= ???

acDoc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.Open(strFileName, false);
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument = acDoc;

Thank you for your time.

MD