Skip to main content
18-Opal
August 27, 2018
Question

Can the toolkit read search_path or workspace files?

  • August 27, 2018
  • 1 reply
  • 2865 views

If you try to open a file from Creo, the file for the search path and the work path opens without specifying the location of the file.
Examples of photos

1.png2.png3.png
The toolkit requires a path to the file when using ProMdlLoad.
Can the toolkit read a file into a session without specifying a path, such as opening a file in Creo?
This should work in the background.

 

Thanks,

Warm Regards,

SeonHo

1 reply

CHASEONHO18-OpalAuthor
18-Opal
August 27, 2018

ProMdlRetrieve has a name and returns its model in memory.
ProMdlnameRetrieve is using ProMdlRetrieve because it is marked as undefined.
Is not that a problem?

1-Visitor
May 9, 2019

Did you ever figure this out?  I have the same question: how to retrieve files that are not in session, not in the current working directory, but is in one of the currently loaded search_paths.

CHASEONHO18-OpalAuthor
18-Opal
May 10, 2019

Try using ProMdlnameRetrieve.
ProMdlnameRetrieve loads the model in PDM space, working directory, search path order.


If you want to load the model only in Search Path, use ProConfigoptGet to get all lines of search_path.
Then use ProMdlLoad after all the search_path lines are followed by the name of the model.