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

mapkey to fix all the views

SOLVED
Regular Member

mapkey to fix all the 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.?

Tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: mapkey to fix all the views

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`;

View solution in original post

7 REPLIES 7

Re: mapkey to fix all the views

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

Highlighted

Re: mapkey to fix all the views

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`;

View solution in original post

Re: mapkey to fix all the views

is this first or third angle?

Re: mapkey to fix all the views

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.

Re: mapkey to fix all the views

i will test this out and see if it works. thanks.

Re: mapkey to fix all the views

works well thanks,

any chance you have one for doing iso views?

Re: mapkey to fix all the views

This does not work in Creo4.

Announcements
LiveWorx Call For Papers Happening Now!