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

Mapkey to open parts with cursor in search bar

SOLVED
Highlighted
Marble

Mapkey to open parts with cursor in search bar

Hello,

I would like to record a mapkey which allows me to show the file open window and click with mouse pointer in the search bar ("enter characters to dinamically filter displayed content") in the upper right corner of the windows, so that I can type directly the file I want to open:

1.png

I tried to record it, but it only opens the windows (and If I type, keystrokes appear in the File name bar below.

(an alternative to this is to type the filename in the bar below ("File name:") but the unconvienent in this is that you have to remember the exact filename to spot the part (while this is not the case, many times).

anyone has a suggestion in order to fix this? ( maybe to add some string text in the mapkeys file?) or have a workaround...

thanks

bye bye

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Mapkey to open parts with cursor in search bar

this works perfectly find for me.

I guess the ' are not the right (with the copy and paste).

try from my attachment

View solution in original post

13 REPLIES 13
Highlighted

Re: Mapkey to open parts with cursor in search bar

Hello

here what i use to go the dynamic search

mapkey fom @MAPKEY_LABELFile Open Model;~ Command `ProCmdModelOpen`; \

mapkey(continued) ~ Update `file_open` `EMBED_BROWSER_SEARCH_IP` ``;

Highlighted

Re: Mapkey to open parts with cursor in search bar

Hello John,

thanks for your suggestion.

I tried your mapkey but when I press the key this message appears:

4.png

and then if I type something in that bar ("test") and press ok, the file open windows appears with the word typed in the file name bar below:

5.png

while instead I am searching for a way to have the cursor directly in the upper right search bar:

6.PNG

because in the file name below bar you have to type the entire file name including its extension.

Does your mapkey behave this way in your Creo too?

thanks

bye

Tommaso

Highlighted

Re: Mapkey to open parts with cursor in search bar

try these.  it conditions the search to drawings, parts or assemblies

Highlighted

Re: Mapkey to open parts with cursor in search bar

Hi Ron,

thanks for your suggestion. I tried your maokeys but indeed what I am searching for is not much to filter by file type but instead a way to have the cursor directly in the upper right search bar:

6.PNG

but I find it useful to have also the distinction by file type, If I solve my inquiry I may create a combination of both (curson in the search bar and items already filtered by file type).

thanks

bye

Tommaso

Highlighted

Re: Mapkey to open parts with cursor in search bar

Hello Tommaso,

have you been able to use the suggestions from Jean-Raymond and Ron?

Thanks,

Gunter

Highlighted

Re: Mapkey to open parts with cursor in search bar

Hello,

I have been able to solve the problem by creating a mapkey which recalls an external OS script written in autohotkey. The mapkey is the following (in square brackets the custom texts):

mapkey [mapkey key sequence] @MAPKEY_NAME[mapkey description]; \

mapkey(continued) @MAPKEY_LABEL[mapkey label]; \

mapkey(continued) ~ Command `ProCmdModelOpen`

mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` `DLG_PREVIEW_POST` `file_open`;\

mapkey(continued) @SYSTEM C:\\[path to the script file]\\scriptname.ahk;

this mapkey firstly opens the File Open window, then recalls the script file "scriptname.ahk", which in turn activates the "File Open" window (necessary step since at the moment of the script launch the active window is not the Creo File Open window), and presses 3 times the Tab key.

The autohotkey script contains just the following two lines:

WinActivate File Open

Send {TAB 3}

two little unconvenients of this procedure are:

-the appearance of the black DOS command window for a fraction of second

-the process lasts 0,7 second (so not as fast as expected)

(but works fine anyway).

As an alternative, instead of the ahk script, a VB Script could be put in, with which the black DOS window can be hidden and maybe it's also faster (but I don't know how to make a VB Script ).

(Any alternative suggestion is welcome anyway).

bye

Tommaso

Highlighted

Re: Mapkey to open parts with cursor in search bar

Did you try my answer? because it does exactly what you are asking for.

Highlighted

Re: Mapkey to open parts with cursor in search bar

Hi John,

yes I had tried your mapkey and replied to you on

which in the end has two ' ' that might be read as illegal characters...now I am trying to modify them (or replace with something else) and let you know the output.

thanks

bye

Tommaso

Highlighted

Re: Mapkey to open parts with cursor in search bar

this works perfectly find for me.

I guess the ' are not the right (with the copy and paste).

try from my attachment

View solution in original post

Highlighted

Re: Mapkey to open parts with cursor in search bar

Hi Jean, yes it works now!! Great

I understood what the problem was, in the FIRST line of the mapkey you initially reported there was a space too much between the ; and the \ at the end:

1.PNG

so hence the reason Creo detected illegal characters.

Maybe, as already happened to me, when you copied it in the reply a smiley appeared instead of the ; and \ flanked, so you put a space to prevent the smiley. And me, I didn't notice it .

I ultimately report it (as screenshot) for those who will seach for it:

2.PNG

(works faster and cleaner than my workaround!).

Thanks

bye

Tommaso

Highlighted

Re: Mapkey to open parts with cursor in search bar

Nice Mapkey !

I tried to create this mapkey years ago but couldn't quite figure it out.

Thanks for sharing...

Highlighted

Re: Mapkey to open parts with cursor in search bar

Hello Tomasso,

don´t know exactly your target with this macro, but know some useful utility how to OPEN DRAWING FROM ACTIVE 3D MODEL.

See link following link:

Creo Parametric, načtení výkresu z otevřeného 3D modelu

It´s in czech language, but it´s quiete simply to understand.

Maybe it´s not useful for you, maybe yes ...

Just for your information

Regards Milan

Highlighted

Re: Mapkey to open parts with cursor in search bar

Hi Milan,

yes, thanks a lot, that's another thing I am searchin for as it would be extremely comfortable. I had read about someone who manage to do it and at a first look seemed quite complicated and long to develop, I will take a look to the video and let you know the output!

bye

Tommaso

Announcements