RevisionManager FindWhereUsed


I'm trying to search "*.asm" files that a given psm/par file is located in all of them.

Yet my code is missing something please advice

my code:

  RevApp = new RevisionManager.Application();
  object whereUsedFilter = "*.asm";
  object searchSubFolders = true;
  string baseSearchFolder = @"C:\SolidEdgeDev\Projects\07-Cabinet\"; //in here I have another ASM which uses the psm file.. 
  object fileToSearch = @"C:\SolidEdgeDev\Projects\07-Cabinet\ComponentBackerPlate.psm";

  RevApp.set_WhereUsedCriteria(whereUsedFilter, searchSubFolders, baseSearchFolder);
  RevisionManager.Document retUsedDocs = RevApp.FindWhereUsed(fileToSearch);


Yet when looking at returned results it finds none.

Any idea what I'm doing wrong?




Posted by: joseph polk
Post date: 5/6/2012 1:03:38 PM


Re: RevisionManager FindWhereUsed


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

is your code OK.


Posted by: JR
Post date: 5/7/2012 5:26:17 AM