Reply

PartCopy varaible reading

[ Edited ]

 

Hi All,

I need to read the part copy variable programmatically. I am using VB.NET. Please guide me..

 

Posted by: Nudrat Hassan
Post date: 12/16/2008 6:03:55 PM

1 REPLY

RE: PartCopy varaible reading

[ Edited ]

Here is a snippet from a code I wrote in C# that works:

 

m_document = (SolidEdgeFramework.SolidEdgeDocument)m_application.ActiveDocument;

 

RevisionManager.Application revisionManagerApplication = new RevisionManager.Application();

RevisionManager.Document revisionManagerDocument = (RevisionManager.Document)revisionManagerApplication.Open(m_document.FullName, RevisionManager.RevisionRuleType.LatestRevision, true);

RevisionManager.LinkedDocuments linkedDocuments = (RevisionManager.LinkedDocuments)revisionManagerDocument.get_LinkedDocuments(RevisionManager.LinkTypeConstants.seLinkTypeAll);

if (linkedDocuments.Count > 0)

{

RevisionManager.Document linkedDocument = (RevisionManager.Document)linkedDocuments.get_Item(1);

string linkedPartFullName = linkedDocument.FullName;

}

 

I hope it will help you

Adar

 

Posted by: Adar Shtainhart
Post date: 2/15/2009 9:57:40 PM