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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

mapkey to fix all the views

dgrobe
6-Contributor

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

1 ACCEPTED SOLUTION

Accepted Solutions
tbraxton
21-Topaz II
(To:dgrobe)

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

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric

View solution in original post

7 REPLIES 7
Inoram
13-Aquamarine
(To:dgrobe)

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

tbraxton
21-Topaz II
(To:dgrobe)

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

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
garytinker
5-Regular Member
(To:tbraxton)

is this first or third angle?

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.

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
dgrobe
6-Contributor
(To:tbraxton)

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

garytinker
5-Regular Member
(To:tbraxton)

works well thanks,

any chance you have one for doing iso views?

This does not work in Creo4.

Top Tags