Reply

API to find Synchronous document.

[ Edited ]

 

Hello All,

 

I have a structure in which a synchronous document is present at some level.

Currenly in SolidEdge only the top document is open. The Synchounous document is

not open in SolidEdge.

 

While traversing the structure how can we find out that a synchorous document is

present in the structure ? I have the tlb's of SolidEdge V20 and not of SolidEdge ST.

 

Does Revision Manager can help in any way ? When we get the linked documents.

Is there any API which tells the document type from File Name ?

 

I got a API GetTypeInfo of RevisionManager::IDocAutoPtr, but how does it works ?

 

When the Synchronous Document is open is SolidEdge, I traverse Documents property

from Application pointer and I get a IDispatchPtr.

We can type cast this pointer to PartDocumentPtr,AssemblyDocumentPtr,DraftDocumentPtr

and see if it is typecasted then it belongs to that type.

 

Regards,

Avi

 

Posted by: rajesh panda
Post date: 6/30/2009 1:12:44 AM

1 REPLY

RE: API to find Synchronous document.

[ Edited ]

 

Hi, maybe you can get this info from file properties, or using Microsoft Structured Storage.

In every SolidEdge files is written the version of SolidEdge created the file.

There is a post of Calum (Programming Guru), with Structured Storage

http://www.jasonnewell.net/Forums/tabid/55/forumid/1/tpage/1/view/topic/postid/831/Default.aspx

Regards

Massimo

 

Posted by: Massimo Magris
Post date: 6/30/2009 11:48:38 AM