Skip to main content
1-Visitor
September 5, 2014
Solved

mapkey to fix all the views

  • September 5, 2014
  • 2 replies
  • 5474 views

When i was working for a different company, someone had created a mapkey, to create all of the isometric views from the front view.

what i would do, is go to front view. or, define the front view. and then type FV "mapkey for fixviews"

and the program would reorient for all of the views, front, top, back, right, left, isometric, also all the bottom right, bottom left iso..

does anyone have the coding for this? or do i have to create the mapkey myself.?

Best answer by tbraxton

Enclosed is a mapkey created for Creo 2 that will create orthographic projections relative to a front view. Orient the model in your desired front view and then run this mapkey to define 6 orthographic views. You can use this example to create Isometric, Dimetric etc.

This will prompt the user to overwrite any existing view with the same name. If you want to avoid this you can delete all view names (hint; make a mapkey and nest it in your ortho creation sequence) prior to running this mapkey.

Mapkey syntax is as follows:

!Create orthographic views

mapkey vio @MAPKEY_NAMECreate 6 ortho views wrt front orientation;\

mapkey(continued) @MAPKEY_LABELSet ortho views;\

mapkey(continued) ~ Select `main_dlg_cur` \

mapkey(continued) `igToolbar_AncestorIGT_IGT_GRP_inh396938342.proe_win:casc340798662`;\

mapkey(continued) ~ Close `main_dlg_cur` \

mapkey(continued) `igToolbar_AncestorIGT_IGT_GRP_inh396938342.proe_win:casc340798662`;\

mapkey(continued) ~ Command `ProCmdViewOrient` ;~ Activate `orient` `orient`;\

mapkey(continued) ~ Input `orient` `namedviewPH.NameVw_IP` `front`;\

mapkey(continued) ~ Update `orient` `namedviewPH.NameVw_IP` `front`;\

mapkey(continued) ~ Activate `orient` `namedviewPH.NameVw_PB_Save`;\

mapkey(continued) ~ Open `orient` `SetupOptions`;~ 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;\

mapkey(continued) ~ Activate `orient` `orient`;\

mapkey(continued) ~ Input `orient` `namedviewPH.NameVw_IP` `right`;\

mapkey(continued) ~ Update `orient` `namedviewPH.NameVw_IP` `right`;\

mapkey(continued) ~ Activate `orient` `namedviewPH.NameVw_PB_Save`;\

mapkey(continued) ~ Update `orient` `spinPH.YSpinBox` 90.000000;\

mapkey(continued) ~ Activate `orient` `spinPH.YSpinBox` 90.000000;~ Activate `orient` `orient`;\

mapkey(continued) ~ Input `orient` `namedviewPH.NameVw_IP` `left`;\

mapkey(continued) ~ Update `orient` `namedviewPH.NameVw_IP` `left`;\

mapkey(continued) ~ Activate `orient` `namedviewPH.NameVw_PB_Save`;\

mapkey(continued) ~ Activate `orient` `orient`;~ Update `orient` `spinPH.YSpinBox` 180.000000;\

mapkey(continued) ~ Activate `orient` `spinPH.YSpinBox` 180.000000;\

mapkey(continued) ~ Input `orient` `namedviewPH.NameVw_IP` `back`;\

mapkey(continued) ~ Update `orient` `namedviewPH.NameVw_IP` `back`;\

mapkey(continued) ~ Activate `orient` `namedviewPH.NameVw_PB_Save`;\

mapkey(continued) ~ Update `orient` `spinPH.YSpinBox` 0.000000;\

mapkey(continued) ~ Activate `orient` `spinPH.YSpinBox` 0.000000;\

mapkey(continued) ~ Update `orient` `spinPH.XSpinBox` 90.000000;\

mapkey(continued) ~ Activate `orient` `spinPH.XSpinBox` 90.000000;~ Activate `orient` `orient`;\

mapkey(continued) ~ Input `orient` `namedviewPH.NameVw_IP` `top`;\

mapkey(continued) ~ Update `orient` `namedviewPH.NameVw_IP` `top`;\

mapkey(continued) ~ Activate `orient` `namedviewPH.NameVw_PB_Save`;\

mapkey(continued) ~ Update `orient` `spinPH.XSpinBox` -90.000000;\

mapkey(continued) ~ Activate `orient` `spinPH.XSpinBox` -90.000000;\

mapkey(continued) ~ Activate `orient` `orient`;\

mapkey(continued) ~ Input `orient` `namedviewPH.NameVw_IP` `bottom`;\

mapkey(continued) ~ Update `orient` `namedviewPH.NameVw_IP` `bottom`;\

mapkey(continued) ~ Activate `orient` `namedviewPH.NameVw_PB_Save`;~ Activate `orient` `OkPB`;

2 replies

14-Alexandrite
September 8, 2014

I tried with a mapkey and did not have much luck. So if you figure it out, let us know.

tbraxton
22-Sapphire II
tbraxton22-Sapphire IIAnswer
22-Sapphire II
October 27, 2014

Enclosed is a mapkey created for Creo 2 that will create orthographic projections relative to a front view. Orient the model in your desired front view and then run this mapkey to define 6 orthographic views. You can use this example to create Isometric, Dimetric etc.

This will prompt the user to overwrite any existing view with the same name. If you want to avoid this you can delete all view names (hint; make a mapkey and nest it in your ortho creation sequence) prior to running this mapkey.

Mapkey syntax is as follows:

!Create orthographic views

mapkey vio @MAPKEY_NAMECreate 6 ortho views wrt front orientation;\

mapkey(continued) @MAPKEY_LABELSet ortho views;\

mapkey(continued) ~ Select `main_dlg_cur` \

mapkey(continued) `igToolbar_AncestorIGT_IGT_GRP_inh396938342.proe_win:casc340798662`;\

mapkey(continued) ~ Close `main_dlg_cur` \

mapkey(continued) `igToolbar_AncestorIGT_IGT_GRP_inh396938342.proe_win:casc340798662`;\

mapkey(continued) ~ Command `ProCmdViewOrient` ;~ Activate `orient` `orient`;\

mapkey(continued) ~ Input `orient` `namedviewPH.NameVw_IP` `front`;\

mapkey(continued) ~ Update `orient` `namedviewPH.NameVw_IP` `front`;\

mapkey(continued) ~ Activate `orient` `namedviewPH.NameVw_PB_Save`;\

mapkey(continued) ~ Open `orient` `SetupOptions`;~ 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;\

mapkey(continued) ~ Activate `orient` `orient`;\

mapkey(continued) ~ Input `orient` `namedviewPH.NameVw_IP` `right`;\

mapkey(continued) ~ Update `orient` `namedviewPH.NameVw_IP` `right`;\

mapkey(continued) ~ Activate `orient` `namedviewPH.NameVw_PB_Save`;\

mapkey(continued) ~ Update `orient` `spinPH.YSpinBox` 90.000000;\

mapkey(continued) ~ Activate `orient` `spinPH.YSpinBox` 90.000000;~ Activate `orient` `orient`;\

mapkey(continued) ~ Input `orient` `namedviewPH.NameVw_IP` `left`;\

mapkey(continued) ~ Update `orient` `namedviewPH.NameVw_IP` `left`;\

mapkey(continued) ~ Activate `orient` `namedviewPH.NameVw_PB_Save`;\

mapkey(continued) ~ Activate `orient` `orient`;~ Update `orient` `spinPH.YSpinBox` 180.000000;\

mapkey(continued) ~ Activate `orient` `spinPH.YSpinBox` 180.000000;\

mapkey(continued) ~ Input `orient` `namedviewPH.NameVw_IP` `back`;\

mapkey(continued) ~ Update `orient` `namedviewPH.NameVw_IP` `back`;\

mapkey(continued) ~ Activate `orient` `namedviewPH.NameVw_PB_Save`;\

mapkey(continued) ~ Update `orient` `spinPH.YSpinBox` 0.000000;\

mapkey(continued) ~ Activate `orient` `spinPH.YSpinBox` 0.000000;\

mapkey(continued) ~ Update `orient` `spinPH.XSpinBox` 90.000000;\

mapkey(continued) ~ Activate `orient` `spinPH.XSpinBox` 90.000000;~ Activate `orient` `orient`;\

mapkey(continued) ~ Input `orient` `namedviewPH.NameVw_IP` `top`;\

mapkey(continued) ~ Update `orient` `namedviewPH.NameVw_IP` `top`;\

mapkey(continued) ~ Activate `orient` `namedviewPH.NameVw_PB_Save`;\

mapkey(continued) ~ Update `orient` `spinPH.XSpinBox` -90.000000;\

mapkey(continued) ~ Activate `orient` `spinPH.XSpinBox` -90.000000;\

mapkey(continued) ~ Activate `orient` `orient`;\

mapkey(continued) ~ Input `orient` `namedviewPH.NameVw_IP` `bottom`;\

mapkey(continued) ~ Update `orient` `namedviewPH.NameVw_IP` `bottom`;\

mapkey(continued) ~ Activate `orient` `namedviewPH.NameVw_PB_Save`;~ Activate `orient` `OkPB`;

1-Visitor
October 28, 2014

is this first or third angle?

tbraxton
22-Sapphire II
22-Sapphire II
October 28, 2014

That would be detrmined by the arrangement of the views on a drawing. You have all 6 ortho views available and can arrange them as desired in a drawing.