hexagon logo

Folder selection using ui_file_create

I would like to select a folder PCL methods, I have used "ui_file_create" but its selecting only the files. Please suggest a method to select the folder.
Parents
  • Yes, depending on how you start Patran the working directory may not be what you think it is. If running from an icon then setting the "Start in:" value will control that.
    I always add my libraries after explicitly setting the path to where they are with a !!PATH so for this test I have
    !!PATH ADD D:\myfoldertree\ajh_multifile_select\x64
    !!LIB ADD ajh_multifile_select.plb
     
    where the folder x64 contains the plb,
     
    As long as Patran can see the PLB it shouldn't matter where it is.
    you can check the folders in the PATH list with the directive:
    !!PATH
     
    and similarly the plbs that Patran is currently using can be shown with
    !!LIB
     
    to show the functions inside a plb you can list them with a command like:
     
    !!LIB list ajh_multifile_select.plb 
     
    this also shows Patran can find and read the plb.
     
    PS If the plb is in Patran's start in working directory then it would be found, but better to explicitly add the folder it is in to the PATH list.
Reply
  • Yes, depending on how you start Patran the working directory may not be what you think it is. If running from an icon then setting the "Start in:" value will control that.
    I always add my libraries after explicitly setting the path to where they are with a !!PATH so for this test I have
    !!PATH ADD D:\myfoldertree\ajh_multifile_select\x64
    !!LIB ADD ajh_multifile_select.plb
     
    where the folder x64 contains the plb,
     
    As long as Patran can see the PLB it shouldn't matter where it is.
    you can check the folders in the PATH list with the directive:
    !!PATH
     
    and similarly the plbs that Patran is currently using can be shown with
    !!LIB
     
    to show the functions inside a plb you can list them with a command like:
     
    !!LIB list ajh_multifile_select.plb 
     
    this also shows Patran can find and read the plb.
     
    PS If the plb is in Patran's start in working directory then it would be found, but better to explicitly add the folder it is in to the PATH list.
Children
No Data