Revision Files

Hi,

   We have been using VB 6.0 to invoke SolidEdge - Revision Manager to revise assembly files,but while using the object insight.Revision Files command ,we are not able to revise the particular file....

 

The Errors we getting while executing the program are...

 

1.The Server throws an Exception

 

2.Only the .asm and configuration files alone are copied ,other linked documents are not copied and revised...

 

 

Pls help me to resolve this issue..

 

Regards,

Ganesh M

 

Posted by: ganesh meganathan
Post date: 11/28/2010 10:17:18 PM

6 REPLIES

RE: Revision Files

I would imagine that this will require a PR with GTAC. It's likely that the file is corrupt in some way also.

 

Posted by: Jason Newell
Post date: 11/29/2010 4:24:45 PM

RE: Revision Files

 

Hi Jason,

       Thanks for ur reply,We arent familiar with the PR-GTAC because we are very fresh to this,so it will be grateful if you could provide any other ways to resolve this issue...

And adding to your reply about the Corrupted files,we didnt think so the files may be corrupt because

Copyfiles() function under the sameInsight classworks fine whereas only the revisefiles() function is where we are getting struct....

 

or

 

can you explain the way objdocument.revise() function works because we arent getting sufficient information from the SDK..

 

 

Pls help us to resolve this issue...

 

Thanks & Regards,

Ganesh M

 

Posted by: ganesh meganathan
Post date: 11/29/2010 5:13:25 PM

RE: Revision Files

If you can, reply with a .zip of the file in question and a snippet of the code that you're trying to use.

 

Posted by: Jason Newell
Post date: 11/29/2010 5:21:35 PM

RE: Revision Files

Jason,

Sorry..we are not authorised to send these files as this could violate the security policies of our organisation...

 

Posted by: ganesh meganathan
Post date: 11/29/2010 5:25:24 PM

RE: Revision Files

Can you at least show the code relevant to the Revise() call? Past that, there's not much we can do to help.

 

Posted by: Jason Newell
Post date: 11/29/2010 5:27:56 PM

RE: Revision Files

Private Sub Command1_Click()

Dim orev As Object

Dim oDoc As Object

Dim oInsight As Object

Dim olinkdoc As Object

Dim revision As String

Dim linkcount As Integer

 

Set orev = GetObject(, "RevisionManager.Application")

Set oDoc = orev.Open("E:\raja2\4072781B000-03.asm")

Set oInsight = orev.Insight

Set olinkdoc = oDoc.LinkedDocuments

 

Debug.Print oDoc.FullName

 

'Call oInsight.ReviseFiles("", oDoc.FullName, "E:\raja2" & "\" & "4072781B000-03.asm")

Call oDoc.Revise("E:\raja2\4072781B000-03.asm")

Call oInsight.CopyFiles("E:\raja2\4072781B000-03.asm", "E:\raja2\4072781B000-03.asm", "E:\raja2" & "\" & "4072781B000-04.asm")

'linkcount = olinkdoc.Count

'Debug.Print linkcount

 

Debug.Print oDoc.FullName

revision = oDoc.revision

Debug.Print revision

 

Set oInsight = Nothing

Set oDoc = Nothing

Set orev = Nothing

End Sub

 

this is the sample code snippet where we are able to use revisionfiles() without error..

but the object.revision gives only the previous revision number but not the updated revision.....

 

 

Posted by: ganesh meganathan
Post date: 11/29/2010 11:50:44 PM