macro commande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
macro commande
How to stop a macro when you select a value with the right click, then resume the progress of the macro. Example: select a value in the layer tree.
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
following mapkey works according your needs in Creo 4.0 English.
mapkey lp @MAPKEY_NAMEOpens Layer Properties dialog box;\
mapkey(continued) @MAPKEY_LABELLayer Properties;~ Command `ProCmdLayer_ShowMdlTree` ;\
mapkey(continued) ~ Command `ProCmdMdlTreeShowLyrs` ;@MANUAL_PAUSESelect layer using LMB;\
mapkey(continued) ~ Timer `UI Desktop` `UI Desktop` `popupMenuRMBTimerCB`;\
mapkey(continued) ~ Close `rmb_popup` `PopupMenu`;\
mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` `UIT_TRANSLUCENT` `NEED_TO_CLOSE`;\
mapkey(continued) ~ RButtonArm `main_dlg_cur` `PHTLeft.PHLayerUI.AssyTree` `node0:ANY_LAYER_NAME`;\
mapkey(continued) ~ Command `ProCmdLayer_LayProps` ;\
mapkey(continued) ~ FocusOut `newlayerprops` `LayerNameInput`;
Martin Hanák
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
While recording mapkey select Pause to allow for a manual operation/input. You can then type in a prompt to tell the user what to do before resuming the mapkey. Press Resume to continue recording.
There is always more to learn in Creo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Bonjour
Fonctionne pour une boite de dialogue (Exemple: Esquisse) mais pas pour une sélection clic gauche sur un nom dans l'arbre des couches.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello
Works for a dialog box (Example: Sketch) but not for a left click selection on a name in the layer tree.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@ddubost wrote:
Hello
Works for a dialog box (Example: Sketch) but not for a left click selection on a name in the layer tree.
Hi,
please describe in detail what your macro should do.
Martin Hanák
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Attached in detail what wishes to achieve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Attached in detail what wishes to achieve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
following mapkey works according your needs in Creo 4.0 English.
mapkey lp @MAPKEY_NAMEOpens Layer Properties dialog box;\
mapkey(continued) @MAPKEY_LABELLayer Properties;~ Command `ProCmdLayer_ShowMdlTree` ;\
mapkey(continued) ~ Command `ProCmdMdlTreeShowLyrs` ;@MANUAL_PAUSESelect layer using LMB;\
mapkey(continued) ~ Timer `UI Desktop` `UI Desktop` `popupMenuRMBTimerCB`;\
mapkey(continued) ~ Close `rmb_popup` `PopupMenu`;\
mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` `UIT_TRANSLUCENT` `NEED_TO_CLOSE`;\
mapkey(continued) ~ RButtonArm `main_dlg_cur` `PHTLeft.PHLayerUI.AssyTree` `node0:ANY_LAYER_NAME`;\
mapkey(continued) ~ Command `ProCmdLayer_LayProps` ;\
mapkey(continued) ~ FocusOut `newlayerprops` `LayerNameInput`;
Martin Hanák
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
thank you so much It works perfectly.
Practical question. do you have a solution for a direct recovery with left click selection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@ddubost wrote:
thank you so much It works perfectly.
Practical question. do you have a solution for a direct recovery with left click selection
Hi,
I am sorry I do not understand term direct recovery with left click selection. Please explain it in detail.
Martin Hanák
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
thank you for your help and understanding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Do you have a solution for this topic
Sketch dialog box
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@ddubost wrote:
thank you for your help and understanding
Hi,
I do not understand what you mean with the picture
Martin Hanák
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
1) I launch the macro
2) I select the layer
3) I click resume
4) The property window is displayed
Possible
1) I launch the macro
- The macro stops without opening a window -
2) I select the layer
3) The property window is displayed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@ddubost wrote:
1) I launch the macro 2) I select the layer 3) I click resume 4) The property window is displayed
Possible
1) I launch the macro - The macro stops without opening a window - 2) I select the layer 3) The property window is displayed
Hi,
it looks like you do not want to select layer name, press RMB and click Layer Properties command from context menu.
Try following procedure:
1.] select layer name
2.] run following macro
mapkey lp ~ RButtonArm `main_dlg_cur` `PHTLeft.PHLayerUI.AssyTree` \
mapkey(continued) `node0:ANY_LAYER_NAME`;~ Command `ProCmdLayer_LayProps` ;\
mapkey(continued) ~ FocusOut `newlayerprops` `LayerNameInput`;
Martin Hanák
