Reply

SolidEdgeFramework and RevisionManager API errors

[ Edited ]

 

 

I wrote a few error in the Solid Edge API:

 

 

SolidEdgeFramework Namespace

 

objInsightSE.GetCachePath(numberOfFilesToGetPathFor, aListOfFilePaths, _

NumberOfFilesReturned, aListOfFilesContainingCachePaths)

 

               Don’t work.

               NumberOfFilesReturned receives values, but aListOfFilesContainingCachePaths not.

 

objInsightSE.GetOutOfDateDocuments(NumberOfOutOfDateDocuments, _

aListOfOutOfDateDocuments)

 

               Don’t work.

               NumberOfOutOfDateDocuments receives values, but aListOfOutOfDateDocuments not.

 

RevisionManager Namespace

 

RetVal = objInsightRM.DownloadDocumentFromServer(DestinationPathsOfRenamedFiles, _

                  RevisionManager.DocumentAccess.igReadOnly, sLocalPath, _

                  GetLatestDocuments:=False, ProcessIndirectDocuments:=False, _

                  RevisionRuleOption:=RevisionManager.RevisionRuleType.LastSavedType, _

                  StopFileOpenIfRevisionRuleNotApplicable:=False)

 

               Don’t work.

 

RetVal = objInsightRM.GetCachePath(numberOfFilesToGetPathFor, aListOfFilePaths, _

NumberOfFilesReturned, aListOfFilesContainingCachePaths)

 

               Don’t work.

               NumberOfFilesReturned and aListOfFilesContainingCachePaths receives no values.

               RetVal remainsill unchangedSharePoint server mber) unchanged.

 

RetVal = objInsightRM.GetOutOfDateDocuments(NumberOfOutOfDateDocuments, _

aListOfOutOfDateDocuments)

 

               Don’t work.

               RetVal remainsill unchangedSharePoint server mber) unchanged.

 

objInsightRM.SynchronizeDocumentsInCache(NumberOfOutOfDateDocuments, _

aListOfOutOfDateDocuments)

 

               Don’t work (Example in Solid Edge ST SDK also not work).

 

 

 

SolidEdgeFramework Namespace GetOpenFileName method

 

Dim sOpenFile AsString = ""

Dim tmpString AsString = ""

Dim sFilter AsString

Dim oDocRelationAutoServer AsObject = Nothing

Dim nFilterIndex As Int16 = 1 Don’t work

'sFilter work, when *.asm and *.pwd appear at the same time

’otherwise only asm can be selected

'sFilter = "Solid Edge models (*.asm; *.par; *.dft; *.psm),*.asm;*.par; *.dft; *.psm "  ’Don’t work

sFilter = "Solid Edge models (*.asm; *.par; *.psm; *.pwd),*.asm;*.par; *.psm; *.pwd"    ’This work

sFilter &= ", Assembly (*.asm), *.asm"

sFilter &= ", Draft (*.dft), *.dft"

sFilter &= ", Part (*.par), *.par"

sFilter &= ", SheetMetal (*.psm), *.psm"

sFilter &= ", Weldment (*.pwd), *.pwd"

 

sOpenFile = objAppSE.GetOpenFileName(LinksUpdateOption.igNoLinksUpdate, _

AltLinkPath:=tmpString, DocAccess:=RevisionManager.DocumentAccess.igReadWrite, _

DocRelationAutoServer:=oDocRelationAutoServer, _

FileFilter:=sFilter, FilterIndex:=nFilterIndex, _

OptNotify:=NotifyOption.igNoNotify, Title:="Open", IgnoreWarnings:=False)

 

When selected file is a managed document and not FamilyOfAssembly:

 

                              sOpenFile = URL location on a SharePoint server of the selected file

 

When selected file is a managed document and FamilyOfAssembly:

 

                              sOpenFile = local user’s CachePath of selected file (with FamilyMember)  ’Error

 

When selected file is a unmanaged local document and not FamilyOfAssembly:

 

                              sOpenFile = filename of the selected file with FullPath

 

When selected file is a unmanaged local document and FamilyOfAssembly:

 

                              sOpenFile = filename of the selected file with FullPath (with FamilyMember)

 

 

SolidEdgeFramework Namespace, working with Properties

 

objProperties = objPropertySets.Item("ProjectInformation")

objProperty = objProperties.Item("Document Number")

objProperty.Value = "Document Nr."           ’Property is saving here

objPropertySets.Save()     ’Not needed, property is already saved

 

SolidEdgeAssembly Namespace, Occurrence.Replace method (replacing an Occurrence in Assembly)

 

objOcc.Replace(NewOccurrenceFileName, ReplaceAll, NewFamilyMemberName)

 

               When objOcc is a FamilyOfAssembly with broken link, this method throws a

System.IO.DirectoryNotFoundException (HRESULT 0x80030003).

 

RevisionManager Namespace, DocumentClass.Rename method

 

RetVal = objDoc.Rename(NewFileName)

 

Renaming objDoc (after successfully renaming), objDoc.Fullname remain the old Fullname.

 

SolidEdgeAssembly Namespace, AssemblyFamilyMembers.GlobalEditMode property

 

               Changing edit mode with this property, the FamilyMember Tab in AssemblyHistory Panel in Solid

Edge is not refreshing.

 

SolidEdgeAssembly Namespace, AssemblyFamilyMembers.ActivateMember method

 

               Changing FamilyMember with this method, the FamilyMember Tab in AssemblyHistory Panel in Solid

Edge is not refreshing (but the UserWindow and the AssemblyPathfinder is refreshing).

 

****************************

Insufficiency in Solid Edge ST API:

 

There are no GetOpenFileName and GetSaveAsFileName methods in RevisionManager namespace.

 

Insufficiency in Solid Edge ST SDK:

 

               There are not ReturnValues (ErrorCodes, Err.Nomber of Exceptions) of the methods in SDK.

               There are not CommandID for StartCommand method in SDK (only 6 SolidEdgeCommandConstants).

 

 

P.S.

 

We have Solid Edge ST2 MP7 installed (Hungarian version). Sorry for the bad English.

 

Peter

 

 

Posted by: Peter Caderas
Post date: 9/17/2010 11:52:00 AM

3 REPLIES

RE: SolidEdgeFramework and RevisionManager API errors

[ Edited ]

 

Peter,

Thank you for the post.  If you want to get these issues addressed, you'll need to contact GTAC and submit problem reports (PR's) for each one of these.  You can typically go through your VAR to submit PR's.

 

Posted by: Jason Newell
Post date: 9/19/2010 2:51:54 AM

RE: SolidEdgeFramework and RevisionManager API errors

[ Edited ]

Hello,

 

I can't contact GTAC, because I am only User. User can't report problem at the UGS (therefore errors will remain unpatched through many versions in Solid Edge).

 

Peter

 

Posted by: Peter Caderas
Post date: 9/19/2010 8:08:55 PM

RE: SolidEdgeFramework and RevisionManager API errors

[ Edited ]

I'm working on getting you an answer. Hopefully you will be contacted by someone at Siemens soon.

 

Posted by: Jason Newell
Post date: 9/19/2010 8:23:24 PM