Skip to main content
1-Visitor
June 12, 2014
Question

Any how (like macro) to repeat last command?

  • June 12, 2014
  • 3 replies
  • 5412 views

Hello All,

Is it there any command or any way to (like macro) to repeat last command?

Please help.

Manish

3 replies

1-Visitor
June 12, 2014
mgupta-41-VisitorAuthor
1-Visitor
June 12, 2014

Dear Marco,

Attached site has some unexpected error ,showing on my system.

Thanks,

Manish

24-Ruby III
June 12, 2014

Manish,

try this one http://communities.ptc.com/ideas/2337

Martin Hanak

12-Amethyst
June 12, 2014

When you finish a feature, the feature keeps selected in the modeltree. What I usually do is copy paste with Ctrl+C and Ctrl+V. It´s pretty fast and intuitive for me.

I only have a mapkey for paste special since there´s no straight shortcut.

You can make a mapkey for that if you want:

mapkey \ ~ Command `ProCmdEditCopy` ;~ Command `ProCmdEditPaste`;

Another option is to use the find tool to select the last feature and copy paste it:

mapkey q @MAPKEY_NAMERepeat with find;@MAPKEY_LABELRepeat;\

mapkey(continued) ~ Command `ProCmdMdlTreeSearch` ;~ Open `selspecdlg0` `SelOptionRadio`;\

mapkey(continued) ~ Close `selspecdlg0` `SelOptionRadio`;\

mapkey(continued) ~ Select `selspecdlg0` `SelOptionRadio` 1 `Feature`;\

mapkey(continued) ~ Open `selspecdlg0` `LookByOptionMenu`;\

mapkey(continued) ~ Close `selspecdlg0` `LookByOptionMenu`;\

mapkey(continued) ~ Select `selspecdlg0` `LookByOptionMenu` 1 `Feature`;\

mapkey(continued) ~ Select `selspecdlg0` `RuleTab` 1 `Misc`;\

mapkey(continued) ~ Select `selspecdlg0` `RuleTypes` 1 `Last Feat`;\

mapkey(continued) ~ Activate `selspecdlg0` `EvaluateBtn`;~ Activate `selspecdlg0` `ApplyBtn`;\

mapkey(continued) ~ Activate `selspecdlg0` `CancelButton`;~ Command `ProCmdEditCopy` ;\

mapkey(continued) ~ Command `ProCmdEditPaste`;

And no, I think you can´t use the space bar for mapkeys

Jose

mgupta-41-VisitorAuthor
1-Visitor
July 11, 2014

hello Jose,

Sorry for the late reply.

I tried the text file copy it and then paste at the mapkey OS script ,but its not working.

Please help.

Manish

12-Amethyst
July 11, 2014

You have to paste it into your Config.pro and reload it or restart Creo.

Jose

1-Visitor
June 20, 2014

Hi Manish,

Let us know if you are still working on this or mark one of the user posts as "Correct Answer" if applicable.

mgupta-41-VisitorAuthor
1-Visitor
July 11, 2014

Hello Clint ,

I am still searching for something to repeat last command.

Manish

5-Regular Member
August 13, 2014

Good day Manish,

Have you been able to resolve your issue?

Please indicate if one of the suggestions above helped you or if you solved things another way.

Best,

Toby