Is there a way to load multiple drw files into session at once?
Ah yes, and a script that would grab all the filenames for you and customize the trail file automatically.
One day, when I'll be bored too much...
Good point, Tom.
If all you want is to open them, an AutoIt script would handle that nicely. VBA can cover it also, but AutoIt has a smaller footprint.
AutoIt has a function to pull data from the clipboard, which could be a list copied from anywhere you would create a list.
The following takes entries copied from Excel to the clipboard and separates them into single lines. StringSplit automatically resizes the array to match the number of entries. I'm not even sure it needs a 'dim' command, but it is a good practice.
$excel = ClipGet()
Once each line is in the array, then use Send to direct commands to the ProE window to do what you want.
If you create mapkeys, that can make the process easier.
In a FOR loop you could SEND("open_file") to run the mapkey "open_file".and then SEND(excellines[$i] &@CRLF) to send the name of each file in turn. Follow with SEND("Process_drawing") and the "Process_drawing" mapkey will run to do whatever you want to do to the drawing.
Hi please vote on my idea about "Multiple file open functionality":
You know, I favor AutoHotkey. It's actually pretty similar to AutoIT.
With AHK, It's possible to search for files in a specific folder based on file type, and list an array of all the filenames. Once having that list, AHK could also generate a trail file that would handle the open and close commands of each of the Creo files listed.
Using SEND command in AHK is abit tricky with Creo, or any other app. What if the drawing is large? How long does the script has to wait? It can be done with AHK script, but these are simply the things that are better off done on app level (in Creo).
That link throws an error.
If you ask me, I have no idea how to point to an idea. These forums are just troublesome.
Well, my guess is there's no real reason to bother with getting votes for ideas anyway.
If you look at the contents of the URL when you click on the link above, it has a portion in there twice. If you click on the URL address box and remove the duplicates, you can get to the link he posted. Here is a idea from Antonius about fixing this:
(After pasting this, and typing this portion of the note, I click on the link I added and then "un-click" or "un-check the "A" with the little piece of chain next to it. When you finalize your reply, it will re-establish the link without replicating a portion of it)
AutoIt is much more capable than AutoHotKey. I would list the available base functions, but there look to be over a thousand, including direct Word and Excel controls. AutoIt can get a lot of information about its environment to tell what step things are at and mapkeys can include steps that make information easier to get. Unless you have a working alternative, try AutoIt.
From AutoIt Help:
AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys). AutoIt is also very small, self-contained and will run on all versions of Windows out-of-the-box with no annoying "runtimes" required!
AutoIt was initially designed for PC "roll out" situations to reliably automate and configure thousands of PCs. Over time it has become a powerful language that supports complex expressions, user functions, loops and everything else that veteran scripters would expect. Features:
Unclick? Uncheck? Unlink?
Thanks Dale for the reply, and trying to enlighten me, but you know I'm here to read about Pro/E, Creo and other CAD related stuff.
I'd think this problem didn't even have to go as far as to the ideas section, and yet being resolved as "FOR FUTURE CONSIDERATION". Bah.....