cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Load multiple drawings into session at once

Highlighted
Gravel

Load multiple drawings into session at once

Is there a way to load multiple drw files into session at once?

Thank you.

23 REPLIES 23

Re: Load multiple drawings into session at once

Wouldn't that be nice!

I would think a customized trail file would solve this.

Re: Load multiple drawings 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.

Re: Load multiple drawings into session at once

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.

dim $excellines[1]

$excel = ClipGet()

$excellines=StringSplit($excel,chr(13)&chr(10),1)

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.

Re: Load multiple drawings into session at once

Hi please vote on my idea about "Multiple file open functionality":

http://communities.ptc.com/ideas/4487

Thanks!

Re: Load multiple drawings into session at once

Thanks, David.

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).

Re: Load multiple drawings into session at once

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.

Re: Load multiple drawings into session at once

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:

http://communities.ptc.com/ideas/2622

(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)

Thanks,

Dale

Re: Load multiple drawings into session at once

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:

  • Easy to learn BASIC-like syntax
  • Simulate keystrokes and mouse movements
  • Manipulate windows and processes
  • Interact with all standard windows controls
  • Scripts can be compiled into standalone executables
  • Create Graphical User Interfaces (GUIs)
  • COM support
  • Regular expressions
  • Directly call external DLL and Windows API functions
  • Scriptable RunAs functions
  • Detailed helpfile and large community-based support forums
  • Compatible with Windows XP / Server 2003 / Vista / Server 2008 / 7 / 8
  • Unicode and x64 support
  • Digitally signed for peace of mind
  • Works with Windows User Account Control (UAC)

Re: Load multiple drawings into session at once

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.....