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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

required create basic view orientation mapkey

dg-2
7-Bedrock

required create basic view orientation mapkey

HI,

   required create basic view orientation mapkey

View names : FRONT, REAR, LEFT,RIGHT,TOP,BOTTOM,ISOMETRIC

 

15 REPLIES 15
MartinHanak
24-Ruby III
(To:dg-2)

Hi,

 

firstly find a way how to do it manually. When you will find manual procedure you can automate it using mapkey. It's up to you, nobody will help you.


Martin Hanák

i know the manual way. my problem is this method doing with mapkey its not working properly.

i tried to select planes via search comment and manual model tree selection while recording mapkey.

Hi,

 

OK, you know manual way.

 

Please attach example model and describe your procedure step by step (provide all its details). Add pictures if necessary.

 

Also tell us what Creo version do you use.


Martin Hanák

i tried below two ways mapkey record

 


1st way created mapkey
!----------------------------------------------------
mapkey x5 @MAPKEY_LABELset basic view;~ Command `ProCmdViewVisTool` ;\
mapkey(continued) ~ Arm `visual_dlg0` `Table` 2 `bottom` `name_column`;\
mapkey(continued) ~ Select `visual_dlg0` `Table` 2 `bottom` `name_column`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `bottom` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Activate`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `bottom` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Edit`;~ Open `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef1` 1 `Back`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node3`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node4`;\
mapkey(continued) ~ Activate `orient` `OkPB`;\
mapkey(continued) ~ Select `visual_dlg0` `Table` 2 `front` `name_column`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `front` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Activate`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `front` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Edit`;~ Open `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef1` 1 `Back`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node5`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node3`;\
mapkey(continued) ~ Activate `orient` `OkPB`;\
mapkey(continued) ~ Select `visual_dlg0` `Table` 2 `left` `name_column`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `left` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Activate`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `left` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Edit`;~ Open `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef1` 1 `Back`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node4`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node3`;\
mapkey(continued) ~ Activate `orient` `OkPB`;\
mapkey(continued) ~ Select `visual_dlg0` `Table` 2 `rear` `name_column`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `rear` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Activate`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `rear` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Edit`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node5`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node3`;\
mapkey(continued) ~ Activate `orient` `OkPB`;\
mapkey(continued) ~ Select `visual_dlg0` `Table` 2 `right` `name_column`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `right` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Activate`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `right` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Edit`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node4`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node3`;\
mapkey(continued) ~ Activate `orient` `OkPB`;\
mapkey(continued) ~ Select `visual_dlg0` `Table` 2 `top` `name_column`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `top` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Activate`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `top` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Edit`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node3`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node4`;\
mapkey(continued) ~ Activate `orient` `OkPB`;~ Activate `visual_dlg0` `CloseBtn`;
!------------------------------------------------------------------------------------------

2nd mapkey created
!----------------------------------------------------------------------------------------
mapkey /+gx5 ~ Activate `visual_dlg0` `ZoneNmCreate`;\
mapkey(continued) ~ Input `visual_dlg0` `Table_INPUT` `front`;\
mapkey(continued) ~ Update `visual_dlg0` `Table_INPUT` `front`;\
mapkey(continued) ~ Activate `visual_dlg0` `Table_INPUT`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `front` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Edit`;\
mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` `PREVIEW_POPUP_TIMER` \
mapkey(continued) `main_dlg_w4:PHTLeft.AssyTree:<NULL>`;\
mapkey(continued) ~ Open `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef1` 1 `Back`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node6`;\
mapkey(continued) ~ Open `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef2` 1 `Top`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node4`;\
mapkey(continued) ~ Open `orient` `SetupOptions`;~ Close `orient` `SetupOptions`;\
mapkey(continued) ~ Select `orient` `SetupOptions` 1 `dynorient`;\
mapkey(continued) ~ Move `orient` `orient` 2 28.907531 3.630124;\
mapkey(continued) ~ Activate `orient` `panzoomPH.ZoomFitPB`;~ Activate `orient` `OkPB`;\
mapkey(continued) ~ Activate `visual_dlg0` `ZoneNmCreate`;\
mapkey(continued) ~ Input `visual_dlg0` `Table_INPUT` `rear`;\
mapkey(continued) ~ Update `visual_dlg0` `Table_INPUT` `rear`;\
mapkey(continued) ~ Activate `visual_dlg0` `Table_INPUT`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `rear` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Edit`;~ Open `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef1` 1 `Front`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node6`;\
mapkey(continued) ~ Open `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef2` 1 `Top`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node4`;\
mapkey(continued) ~ Activate `orient` `OkPB`;~ Activate `visual_dlg0` `ZoneNmCreate`;\
mapkey(continued) ~ Input `visual_dlg0` `Table_INPUT` `left`;\
mapkey(continued) ~ Update `visual_dlg0` `Table_INPUT` `left`;\
mapkey(continued) ~ Activate `visual_dlg0` `Table_INPUT`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `left` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Edit`;~ Open `orient` `SetupOptions`;\
mapkey(continued) ~ Close `orient` `SetupOptions`;~ Open `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef1` 1 `Back`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node5`;\
mapkey(continued) ~ Open `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef2` 1 `Top`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node4`;\
mapkey(continued) ~ Open `orient` `SetupOptions`;~ Close `orient` `SetupOptions`;\
mapkey(continued) ~ Select `orient` `SetupOptions` 1 `dynorient`;\
mapkey(continued) ~ Activate `orient` `panzoomPH.ZoomFitPB`;~ Activate `orient` `OkPB`;\
mapkey(continued) ~ Activate `visual_dlg0` `ZoneNmCreate`;\
mapkey(continued) ~ Input `visual_dlg0` `Table_INPUT` `right`;\
mapkey(continued) ~ Update `visual_dlg0` `Table_INPUT` `right`;\
mapkey(continued) ~ Activate `visual_dlg0` `Table_INPUT`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `right` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Edit`;~ Open `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef1` 1 `Front`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node5`;\
mapkey(continued) ~ Open `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef2` 1 `Top`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node4`;\
mapkey(continued) ~ Open `orient` `SetupOptions`;~ Close `orient` `SetupOptions`;\
mapkey(continued) ~ Select `orient` `SetupOptions` 1 `dynorient`;\
mapkey(continued) ~ Activate `orient` `panzoomPH.ZoomFitPB`;~ Activate `orient` `OkPB`;\
mapkey(continued) ~ Activate `visual_dlg0` `ZoneNmCreate`;\
mapkey(continued) ~ Input `visual_dlg0` `Table_INPUT` `top`;\
mapkey(continued) ~ Update `visual_dlg0` `Table_INPUT` `top`;\
mapkey(continued) ~ Activate `visual_dlg0` `Table_INPUT`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `top` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Edit`;~ Open `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef1` 1 `Front`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node4`;\
mapkey(continued) ~ Open `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef2` 1 `Top`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node5`;\
mapkey(continued) ~ Open `orient` `SetupOptions`;~ Close `orient` `SetupOptions`;\
mapkey(continued) ~ Select `orient` `SetupOptions` 1 `dynorient`;\
mapkey(continued) ~ Activate `orient` `panzoomPH.ZoomFitPB`;~ Activate `orient` `OkPB`;\
mapkey(continued) ~ Activate `visual_dlg0` `ZoneNmCreate`;\
mapkey(continued) ~ Input `visual_dlg0` `Table_INPUT` `bottom`;\
mapkey(continued) ~ Update `visual_dlg0` `Table_INPUT` `bottom`;\
mapkey(continued) ~ Activate `visual_dlg0` `Table_INPUT`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `bottom` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Edit`;~ Open `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef1` 1 `Back`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node4`;\
mapkey(continued) ~ Select `main_dlg_cur` `PHTLeft.AssyTree` 1 `node5`;\
mapkey(continued) ~ Open `orient` `SetupOptions`;~ Close `orient` `SetupOptions`;\
mapkey(continued) ~ Select `orient` `SetupOptions` 1 `dynorient`;\
mapkey(continued) ~ Activate `orient` `panzoomPH.ZoomFitPB`;~ Activate `orient` `OkPB`;\
mapkey(continued) ~ Arm `visual_dlg0` `Table` 2 `front` `name_column`;\
mapkey(continued) ~ Select `visual_dlg0` `Table` 2 `front` `name_column`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `front` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Activate`;~ Activate `visual_dlg0` `ZoneNmCreate`;\
mapkey(continued) ~ Input `visual_dlg0` `Table_INPUT` `isometric`;\
mapkey(continued) ~ Update `visual_dlg0` `Table_INPUT` `isometric`;\
mapkey(continued) ~ Activate `visual_dlg0` `Table_INPUT`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `isometric` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Edit`;~ Open `orient` `SetupOptions`;\
mapkey(continued) ~ Close `orient` `SetupOptions`;\
mapkey(continued) ~ Select `orient` `SetupOptions` 1 `dynorient`;\
mapkey(continued) ~ Update `orient` `spinPH.XSpinBox` 30.000000;\
mapkey(continued) ~ Update `orient` `spinPH.YSpinBox` -30.000000;\
mapkey(continued) ~ Update `orient` `spinPH.ZSpinBox` -16.100000;\
mapkey(continued) ~ Activate `orient` `spinPH.ZSpinBox` -16.100000;\
mapkey(continued) ~ Open `orient` `SetupOptions`;~ Close `orient` `SetupOptions`;\
mapkey(continued) ~ Activate `orient` `panzoomPH.ZoomFitPB`;~ Activate `orient` `OkPB`;\
mapkey(continued) ~ Arm `visual_dlg0` `Table` 2 `left` `name_column`;\
mapkey(continued) ~ Select `visual_dlg0` `Table` 2 `left` `name_column`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `left` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Activate`;\
mapkey(continued) ~ Select `visual_dlg0` `Table` 2 `isometric` `name_column`;\
mapkey(continued) ~ RButtonArm `visual_dlg0` `Table` 2 `isometric` `name_column`;\
mapkey(continued) ~ PopupOver `visual_dlg0` `EditPanel` 1 `Table`;\
mapkey(continued) ~ Open `visual_dlg0` `EditPanel`;~ Close `visual_dlg0` `EditPanel`;\
mapkey(continued) ~ Activate `visual_dlg0` `Activate`;

find the attached image i required this reference as per view orientation.

MartinHanak
24-Ruby III
(To:dg-2)

Hi,

 

please attach example Creo model.

 

Also tell me what Creo version do you use.


Martin Hanák

Creo 2.0 version 31m200

 

sorry i cant able to upload my creo model. 

MartinHanak
24-Ruby III
(To:dg-2)

Hi,

 

I understand you cannot upload your real model. But I am sure you can prepare some simple example model and upload it.


Martin Hanák

i require this for my office purpose here some policies restricted to online upload.

 

MartinHanak
24-Ruby III
(To:dg-2)

Hi,

 

  • download trail_6views.zip
  • unzip trail_6views.zip to get trail_6views.txt
  • open Creo part
  • run trail file ... File > Manage Session > Play Trail File > select trail_6views.txt > click Open
  • when trail file is finished your model will contain following views:
    MH_FRONT
    MH_REAR
    MH_LEFT
    MH_RIGHT
    MH_TOP
    MH_BOTTOM
  • you can modify these names in trail_6views.txt files to get requested view names

 


Martin Hanák

thank you.

i required mapkey for update my existing models

MartinHanak
24-Ruby III
(To:dg-2)

Hi,

 

  1. run my trail file manually to check whether it creates views in your model
  2. create mapkey that represents sequence ... File > Manage Session > Play Trail File > select trail_6views.txt > click Open

 


Martin Hanák
dnordin
16-Pearl
(To:dg-2)

Here are mapkeys for FRONT, BACK, LEFT, RIGHT, BOTTOM, TOP, and ISO.

Run the "add_all_views" mapkey to add them all at the same time. The ISO view isn't a true isometric view. It's a fairly random orientation.

You will need to have the 3 datums called FRONT, TOP, RIGHT for these to work.


Regards,

Dan N.

DATUMS.PNG 

 

!========== Add Standard Views mapkeys ==========

mapkey set_view_std @MAPKEY_NAMESet View to Standard Orientation;\
mapkey(continued) @MAPKEY_LABELSet View to Standard;~ Command `ProCmdViewNamePick` 1 ;\
mapkey(continued) ~ Select `nameviewlist` `nv_list`1  `Standard Orientation`;

mapkey add_views_start @MAPKEY_NAMEEnter into the windows to add new view \
mapkey(continued) names.;@MAPKEY_LABELstart to add std views;~ Command `ProCmdViewVisTool` ;\
mapkey(continued) ~ Select `visual_dlg0` `RadioSelApplMgr`1  `orientation`;

mapkey add_view_front @MAPKEY_NAMEAdd the front view based on the default \
mapkey(continued) datms.;@MAPKEY_LABELAdd view - Front;\
mapkey(continued) ~ Activate `visual_dlg0` `ZoneNmCreate`1 ;\
mapkey(continued) ~ Input `visual_dlg0` `Table_INPUT` `Front`;\
mapkey(continued) ~ Update `visual_dlg0` `Table_INPUT` `Front`;\
mapkey(continued) ~ Activate `visual_dlg0` `Table_INPUT`;~ Close `visual_dlg0` `EditCascBtn`;\
mapkey(continued) ~ Activate `visual_dlg0` `RedefineBtn`;\
mapkey(continued) ~ Open `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef1`1  `Front`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdMdlTreeSearch.edit_t`;\
mapkey(continued) ~ Open `selspecdlg0` `SelOptionRadio`;~ Close `selspecdlg0` `SelOptionRadio`;\
mapkey(continued) ~ Select `selspecdlg0` `SelOptionRadio`1  `Datum`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTab`1  `Misc`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTypes`1  `#`;\
mapkey(continued) ~ Input `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `3`;\
mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `3`;~ Activate `selspecdlg0` `EvaluateBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;~ Activate `selspecdlg0` `CancelButton`;\
mapkey(continued) ~ Open `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef2`1  `Top`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdMdlTreeSearch.edit_t`;\
mapkey(continued) ~ Input `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `2`;\
mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `2`;~ Activate `selspecdlg0` `EvaluateBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;~ Activate `selspecdlg0` `CancelButton`;\
mapkey(continued) ~ Command `ProCmdViewRefit` ;~ Activate `orient` `OkPB`;

mapkey add_view_back @MAPKEY_NAMEAdd the back view based on the default \
mapkey(continued) datms.;@MAPKEY_LABELAdd view - Back;\
mapkey(continued) ~ Activate `visual_dlg0` `ZoneNmCreate`1 ;\
mapkey(continued) ~ Input `visual_dlg0` `Table_INPUT` `Back`;\
mapkey(continued) ~ Update `visual_dlg0` `Table_INPUT` `Back`;\
mapkey(continued) ~ Activate `visual_dlg0` `Table_INPUT`;~ Close `visual_dlg0` `EditCascBtn`;\
mapkey(continued) ~ Activate `visual_dlg0` `RedefineBtn`;\
mapkey(continued) ~ Open `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef1`1  `Back`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdMdlTreeSearch.edit_t`;\
mapkey(continued) ~ Open `selspecdlg0` `SelOptionRadio`;~ Close `selspecdlg0` `SelOptionRadio`;\
mapkey(continued) ~ Select `selspecdlg0` `SelOptionRadio`1  `Datum`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTab`1  `Misc`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTypes`1  `#`;\
mapkey(continued) ~ Input `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `3`;\
mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `3`;~ Activate `selspecdlg0` `EvaluateBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;~ Activate `selspecdlg0` `CancelButton`;\
mapkey(continued) ~ Open `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef2`1  `Top`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdMdlTreeSearch.edit_t`;\
mapkey(continued) ~ Input `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `2`;\
mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `2`;~ Activate `selspecdlg0` `EvaluateBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;~ Activate `selspecdlg0` `CancelButton`;\
mapkey(continued) ~ Command `ProCmdViewRefit` ;~ Activate `orient` `OkPB`;

mapkey add_view_top @MAPKEY_NAMEAdd the top view based on the default datms.;\
mapkey(continued) @MAPKEY_LABELAdd view - Top;~ Activate `visual_dlg0` `ZoneNmCreate`1 ;\
mapkey(continued) ~ Input `visual_dlg0` `Table_INPUT` `Top`;\
mapkey(continued) ~ Update `visual_dlg0` `Table_INPUT` `Top`;\
mapkey(continued) ~ Activate `visual_dlg0` `Table_INPUT`;~ Close `visual_dlg0` `EditCascBtn`;\
mapkey(continued) ~ Activate `visual_dlg0` `RedefineBtn`;\
mapkey(continued) ~ Open `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef1`1  `Front`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdMdlTreeSearch.edit_t`;\
mapkey(continued) ~ Open `selspecdlg0` `SelOptionRadio`;~ Close `selspecdlg0` `SelOptionRadio`;\
mapkey(continued) ~ Select `selspecdlg0` `SelOptionRadio`1  `Datum`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTab`1  `Misc`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTypes`1  `#`;\
mapkey(continued) ~ Input `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `2`;\
mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `2`;~ Activate `selspecdlg0` `EvaluateBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;~ Activate `selspecdlg0` `CancelButton`;\
mapkey(continued) ~ Open `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef2`1  `Right`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdMdlTreeSearch.edit_t`;\
mapkey(continued) ~ Input `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `1`;\
mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `1`;~ Activate `selspecdlg0` `EvaluateBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;~ Activate `selspecdlg0` `CancelButton`;\
mapkey(continued) ~ Command `ProCmdViewRefit` ;~ Activate `orient` `OkPB`;

mapkey add_view_bottom @MAPKEY_NAMEAdd the bottom view based on the default \
mapkey(continued) datms.;@MAPKEY_LABELAdd view - Bottom;\
mapkey(continued) ~ Activate `visual_dlg0` `ZoneNmCreate`1 ;\
mapkey(continued) ~ Input `visual_dlg0` `Table_INPUT` `Bottom`;\
mapkey(continued) ~ Update `visual_dlg0` `Table_INPUT` `Bottom`;\
mapkey(continued) ~ Activate `visual_dlg0` `Table_INPUT`;~ Close `visual_dlg0` `EditCascBtn`;\
mapkey(continued) ~ Activate `visual_dlg0` `RedefineBtn`;\
mapkey(continued) ~ Open `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef1`1  `Back`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdMdlTreeSearch.edit_t`;\
mapkey(continued) ~ Open `selspecdlg0` `SelOptionRadio`;~ Close `selspecdlg0` `SelOptionRadio`;\
mapkey(continued) ~ Select `selspecdlg0` `SelOptionRadio`1  `Datum`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTab`1  `Misc`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTypes`1  `#`;\
mapkey(continued) ~ Input `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `2`;\
mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `2`;~ Activate `selspecdlg0` `EvaluateBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;~ Activate `selspecdlg0` `CancelButton`;\
mapkey(continued) ~ Open `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef2`1  `Right`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdMdlTreeSearch.edit_t`;\
mapkey(continued) ~ Input `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `1`;\
mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `1`;~ Activate `selspecdlg0` `EvaluateBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;~ Activate `selspecdlg0` `CancelButton`;\
mapkey(continued) ~ Command `ProCmdViewRefit` ;~ Activate `orient` `OkPB`;

mapkey add_view_right @MAPKEY_NAMEAdd the right view based on the default \
mapkey(continued) datms.;@MAPKEY_LABELAdd view - Right;\
mapkey(continued) ~ Activate `visual_dlg0` `ZoneNmCreate`1 ;\
mapkey(continued) ~ Input `visual_dlg0` `Table_INPUT` `Right`;\
mapkey(continued) ~ Update `visual_dlg0` `Table_INPUT` `Right`;\
mapkey(continued) ~ Activate `visual_dlg0` `Table_INPUT`;~ Close `visual_dlg0` `EditCascBtn`;\
mapkey(continued) ~ Activate `visual_dlg0` `RedefineBtn`;\
mapkey(continued) ~ Open `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef1`1  `Front`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdMdlTreeSearch.edit_t`;\
mapkey(continued) ~ Open `selspecdlg0` `SelOptionRadio`;~ Close `selspecdlg0` `SelOptionRadio`;\
mapkey(continued) ~ Select `selspecdlg0` `SelOptionRadio`1  `Datum`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTab`1  `Misc`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTypes`1  `#`;\
mapkey(continued) ~ Input `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `1`;\
mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `1`;~ Activate `selspecdlg0` `EvaluateBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;~ Activate `selspecdlg0` `CancelButton`;\
mapkey(continued) ~ Open `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef2`1  `Top`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdMdlTreeSearch.edit_t`;\
mapkey(continued) ~ Input `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `2`;\
mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `2`;~ Activate `selspecdlg0` `EvaluateBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;~ Activate `selspecdlg0` `CancelButton`;\
mapkey(continued) ~ Command `ProCmdViewRefit` ;~ Activate `orient` `OkPB`;

mapkey add_view_left @MAPKEY_NAMEAdd the left view based on the default \
mapkey(continued) datms.;@MAPKEY_LABELAdd view - Left;\
mapkey(continued) ~ Activate `visual_dlg0` `ZoneNmCreate`1 ;\
mapkey(continued) ~ Input `visual_dlg0` `Table_INPUT` `Left`;\
mapkey(continued) ~ Update `visual_dlg0` `Table_INPUT` `Left`;\
mapkey(continued) ~ Activate `visual_dlg0` `Table_INPUT`;~ Close `visual_dlg0` `EditCascBtn`;\
mapkey(continued) ~ Activate `visual_dlg0` `RedefineBtn`;\
mapkey(continued) ~ Open `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef1`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef1`1  `Back`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdMdlTreeSearch.edit_t`;\
mapkey(continued) ~ Open `selspecdlg0` `SelOptionRadio`;~ Close `selspecdlg0` `SelOptionRadio`;\
mapkey(continued) ~ Select `selspecdlg0` `SelOptionRadio`1  `Datum`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTab`1  `Misc`;\
mapkey(continued) ~ Select `selspecdlg0` `RuleTypes`1  `#`;\
mapkey(continued) ~ Input `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `1`;\
mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `1`;~ Activate `selspecdlg0` `EvaluateBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;~ Activate `selspecdlg0` `CancelButton`;\
mapkey(continued) ~ Open `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Close `orient` `orientsurfPH.OrientRef2`;\
mapkey(continued) ~ Select `orient` `orientsurfPH.OrientRef2`1  `Top`;\
mapkey(continued) ~ Activate `main_dlg_cur` `ProCmdMdlTreeSearch.edit_t`;\
mapkey(continued) ~ Input `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `2`;\
mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicNumbLayout.BasicNumberStart` \
mapkey(continued) `2`;~ Activate `selspecdlg0` `EvaluateBtn`;\
mapkey(continued) ~ Activate `selspecdlg0` `ApplyBtn`;~ Activate `selspecdlg0` `CancelButton`;\
mapkey(continued) ~ Command `ProCmdViewRefit` ;~ Activate `orient` `OkPB`;

mapkey add_view_iso @MAPKEY_NAMEAdd the standard ISO view.;\
mapkey(continued) @MAPKEY_LABELAdd View Iso;\
mapkey(continued) ~ Select `visual_dlg0` `Table`2  `right` `name_column`;\
mapkey(continued) ~ Close `visual_dlg0` `DisplayCascadeBtn`;~ Activate `visual_dlg0` `SetBtn`;\
mapkey(continued) ~ Activate `visual_dlg0` `ZoneNmCreate`1 ;\
mapkey(continued) ~ Input `visual_dlg0` `Table_INPUT` `i`;\
mapkey(continued) ~ Input `visual_dlg0` `Table_INPUT` `is`;\
mapkey(continued) ~ Input `visual_dlg0` `Table_INPUT` `iso`;\
mapkey(continued) ~ Update `visual_dlg0` `Table_INPUT` `iso`;\
mapkey(continued) ~ Activate `visual_dlg0` `Table_INPUT`;~ Close `visual_dlg0` `EditCascBtn`;\
mapkey(continued) ~ Activate `visual_dlg0` `RedefineBtn`;~ Open `orient` `SetupOptions`;\
mapkey(continued) ~ Close `orient` `SetupOptions`;\
mapkey(continued) ~ Select `orient` `SetupOptions`1  `dynorient`;\
mapkey(continued) ~ Update `orient` `spinPH.ZSpinBox`180.000000 ;\
mapkey(continued) ~ Activate `orient` `spinPH.ZSpinBox`180.000000 ;\
mapkey(continued) ~ Update `orient` `spinPH.YSpinBox`-30.000000 ;\
mapkey(continued) ~ Activate `orient` `spinPH.YSpinBox`-30.000000 ;\
mapkey(continued) ~ Update `orient` `spinPH.XSpinBox`-30.000000 ;\
mapkey(continued) ~ Activate `orient` `spinPH.XSpinBox`-30.000000 ;\
mapkey(continued) ~ Activate `orient` `panzoomPH.ZoomFitPB`;~ Activate `orient` `OkPB`;

mapkey add_all_views @MAPKEY_NAMEAdd all standard views using the default \
mapkey(continued) datms.;@MAPKEY_LABELAdd all std views;%add_all_views_1;%add_all_views_2;

mapkey add_all_views_1 @MAPKEY_NAMEAdd all standard views using the default \
mapkey(continued) datms.;@MAPKEY_LABELAdd all std views 1;%add_views_start;%add_view_front;\
mapkey(continued) %add_view_back;%add_view_top;%add_view_bottom;

mapkey add_all_views_2 @MAPKEY_NAMEAdd all standard views using the default \
mapkey(continued) datms.;@MAPKEY_LABELAdd all std views 2;%add_view_right;\%add_view_left;\
mapkey(continued) %add_view_iso;%set_view_std;~ Activate `visual_dlg0` `CloseBtn`;

StephenW
23-Emerald III
(To:dg-2)

You need to be using a start part (or start assembly) that includes the basic views defined.

If your company doesn't have one, you can create the start part and then set your config.pro to use it.

If you are importing models, make sure you use the option to use the start part.

pausob
18-Opal
(To:dg-2)

Well, have you searched this forum?  Search for "mapkey view".  There are multiple articles that contain the mapkey code.  Perhaps you can use this one and extend it to suit your needs:

 

mapkey to fix all the views

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags