I am new to PTC Creo (company currently using Creo 3.0) and was wondering there is a way to create a keyboard shortcut to snap a model to a stand orientation (front, back, right, etc.)? I was formerly on SolidWorks and you could hit CTRL+1 for front view, CTRL+2 for back, etc. Is it possible to create these shortcuts in PTS creo 3.0? Thanks.
It's possible, but not exactly for the "Solidworks" versions - namely CTRL+1, CTRL+2 aren't available.
I use mapkeys: F5 for FRONT view, F6 for TOP and F7 for RIGHT view...
Define your own by adding and modifying these lines to your config.pro:
mapkey $F5 @MAPKEY_LABELFront View (F5);\
~ Command `ProCmdNamedViewsGalSelect` `FRONT`;
mapkey $F6 @MAPKEY_LABELTop View (F6);\
~ Command `ProCmdNamedViewsGalSelect` `TOP`;
mapkey $F7 @MAPKEY_LABELRight View (F7);\
~ Command `ProCmdNamedViewsGalSelect` `RIGHT`;
Now, all this requires that your model already contains the views called "FRONT", "TOP", etc...
What if you are dealing with a model that does not have such named views defined? Well, use this mapkey (F8) to quickly generate them:
mapkey $F8 @MAPKEY_NAMESave 6 named views (current view will become FRONT);\
@MAPKEY_LABELCreate Orthographic Views (F8);\
~ Command `ProCmdViewOrient` ;\
~ Activate `orient` `NmViewCheckBtn` 1;\
~ Activate `orient` `orient`;\
~ Input `orient` `namedviewPH.NameVw_IP` `front`;\
~ Update `orient` `namedviewPH.NameVw_IP` `front`;\
~ Activate `orient` `namedviewPH.NameVw_PB_Save`;Yes;\
~ Open `orient` `SetupOptions`;~ Close `orient` `SetupOptions`;\
~ Select `orient` `SetupOptions` 1 `dynorient`;\
~ Update `orient` `spinPH.YSpinBox` -90.000000;\
~ Activate `orient` `spinPH.YSpinBox` -90.000000;\
~ Activate `orient` `orient`;\
~ Input `orient` `namedviewPH.NameVw_IP` `right`;\
~ Update `orient` `namedviewPH.NameVw_IP` `right`;\
~ Activate `orient` `namedviewPH.NameVw_PB_Save`;Yes;\
~ Update `orient` `spinPH.YSpinBox` 90.000000;\
~ Activate `orient` `spinPH.YSpinBox` 90.000000;~ Activate `orient` `orient`;\
~ Input `orient` `namedviewPH.NameVw_IP` `left`;\
~ Update `orient` `namedviewPH.NameVw_IP` `left`;\
~ Activate `orient` `namedviewPH.NameVw_PB_Save`;Yes;\
~ Activate `orient` `orient`;~ Update `orient` `spinPH.YSpinBox` 180.000000;\
~ Activate `orient` `spinPH.YSpinBox` 180.000000;\
~ Input `orient` `namedviewPH.NameVw_IP` `back`;\
~ Update `orient` `namedviewPH.NameVw_IP` `back`;\
~ Activate `orient` `namedviewPH.NameVw_PB_Save`;Yes;\
~ Update `orient` `spinPH.YSpinBox` 0.000000;\
~ Activate `orient` `spinPH.YSpinBox` 0.000000;\
~ Update `orient` `spinPH.XSpinBox` 90.000000;\
~ Activate `orient` `spinPH.XSpinBox` 90.000000;~ Activate `orient` `orient`;\
~ Input `orient` `namedviewPH.NameVw_IP` `top`;\
~ Update `orient` `namedviewPH.NameVw_IP` `top`;\
~ Activate `orient` `namedviewPH.NameVw_PB_Save`;Yes;\
~ Update `orient` `spinPH.XSpinBox` -90.000000;\
~ Activate `orient` `spinPH.XSpinBox` -90.000000;\
~ Activate `orient` `orient`;\
~ Input `orient` `namedviewPH.NameVw_IP` `bottom`;\
~ Update `orient` `namedviewPH.NameVw_IP` `bottom`;\
~ Activate `orient` `namedviewPH.NameVw_PB_Save`;Yes;~ Activate `orient` `OkPB`;
Awesome!!!
Thank you!!!
You can use "MAP KEYS" to perform the above things.
You can use alphabetical keys for the following orientation,
F FRONT
T TOP
R RIGHT
L LEFT
B BOTTOM
By this you will be able to create short cut for the orientation.
Thanks and Regards,
VIJAY
Just a warning, if you use single letter mapkeys, you can not use a mapkey that has any letter after that single letter.
For example, if you use R for a mapkey, you can not us a mapkey with 2 letters, for instance, RP for repaint.
If you only have a few mapkeys, single letters work fine, if you want to use a lot of mapkeys, single letter mapkeys limit the number you can use to 26 letter mapkeys.
Keep in mind that Creo 4 has hijacked a bunch of single letters for hotkey as well which means all mapkeys that start with these letters are no longer valid either.
Tom,
Is there a list on which ones they have hijacked? I was going to start updating mapkeys soon and that information would be helpful.
Thanks, Dale
Here are the ones I'm aware of:
A Assemble
X Extrude
P Plane
R Round
S Sketch
These are all "single character keyboard shortcuts"
Thanks Tom,
I am going to have to rename at least one of our mapkeys. Good thing they were not more helpful and created like 26 or more single key shortcuts .
In the help, it looks like you can change/remove the shortcut. I'm all for options to make things faster as long as they don't infringe on how I currently work to make things faster.
Thanks stephen,
It was very useful for me ...
My mapkey for rotate model from current orientation on 90 deg about vertical axis.
mapkey $F8 @MAPKEY_NAMERotate current view 90deg;@MAPKEY_LABELRotate 90deg;\
mapkey(continued) ~ Command `ProCmdViewOrient` ;~ Open `orient` `SetupOptions`;\
mapkey(continued) ~ Close `orient` `SetupOptions`;\
mapkey(continued) ~ Select `orient` `SetupOptions` 1 `dynorient`;\
mapkey(continued) ~ Update `orient` `spinPH.YSpinBox` 90.000000;\
mapkey(continued) ~ Activate `orient` `spinPH.YSpinBox` 90.000000;~ Activate `orient` `OkPB`;\
mapkey(continued) e `orient` `OkPB`;