Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
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.?
Solved! Go to Solution.
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`;
I tried with a mapkey and did not have much luck. So if you figure it out, let us know.
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`;
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.
i will test this out and see if it works. thanks.
works well thanks,
any chance you have one for doing iso views?
This does not work in Creo4.