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

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

mapkey to fix all the views

dgrobe
12-Amethyst

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

ACCEPTED SOLUTION

Accepted Solutions
tbraxton
22-Sapphire I
(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
14-Alexandrite
(To:dgrobe)

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

tbraxton
22-Sapphire I
(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

is this first or third angle?

tbraxton
22-Sapphire I
(To:garytinker)

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
12-Amethyst
(To:tbraxton)

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

works well thanks,

any chance you have one for doing iso views?

tcusumano
13-Aquamarine
(To:garytinker)

This does not work in Creo4.

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags