DGK macro

DGK macro

jsweatherbie
Advocate Advocate
524 Views
1 Reply
Message 1 of 2

DGK macro

jsweatherbie
Advocate
Advocate

Hello im trying to look into a directory thats specified like for example " Y:\CNC\TOOLS\HOLDERS\HSK-100\" 
im trying to get a list of the DGK files directories. 

would i use .... string list $holders = dirname("Y:\CNC\TOOLS\HOLDERS\HSK-100\",Name)

0 Likes
Accepted solutions (1)
525 Views
1 Reply
Reply (1)
Message 2 of 2

Sean571
Advocate
Advocate
Accepted solution

 

string folderPath = "Y:\CNC\TOOLS\HOLDERS\HSK-100\"

//Gets all dgk files as a list
string list files = list_files("files", $folderPath, "dgk")

// You can then do something like have a user select a model from the list
INT selection = INPUT CHOICE $files "Select Model"
string filePath = $folderPath + "\" + $files[$selection]

 

Sean Wroblewski
Applications Engineer

0 Likes