When I run the macro I receive a translator error. When I import the same file, without the macro, the translator works fine.
// Create a list of files located in a specific folder
string LIST files = list_files("files","M:\LUTEJ1_Toolpaths\PN_103006\L00020_Build_Creo")
// Select a file from the list
INT x = INPUT CHOICE $files "Choose the desired Folder"
// Define a variable that includes the name of the file selected for import
string filename = $files[$x]
// Review file name selected, for testing only
print $filename
Macro pause $filename
// Import model
IMPORT MODEL FILEOPEN $filename
Solved! Go to Solution.
Solved by rafael.sansao. Go to Solution.
change:
IMPORT MODEL FILEOPEN $filename
by:
IMPORT MODEL $filename
Rafael Sansão
Do you know how i could modify this to select multiple files to batch import models?
Use this macro made by @Anonymous
If you get an unauthorized access error, you need to change your computer's policies to enable script execution: - Run "Windows Powershell" as administrator; - Type: Set-ExecutionPolicy Unrestricted - Press enter - Press Yes
Rafael Sansão
Can't find what you're looking for? Ask the community or share your knowledge.