Skip to main content
8-Gravel
January 29, 2016
Question

Mapkey for "Remove Locations" not working

  • January 29, 2016
  • 2 replies
  • 5232 views

Hi!

I am struggling getting my mapkey to work. It should delete some location points but there is this "Do you accept the changes? Yes/No" window which waits for user interaction even though I recorded the "Yes-click" and it appears in the mapkey.

The example below should remove 3 location points automatically. I recognized that sometimes it will wait at this question and sometimes not.

I would like to get the mapkey run stable with standard options. However, if there is an option to turn off this safety question, that'd be also fine with me.

If you have any hint, I'd be happy.

Thanks.
David

mapkey rem_loc ~ Command `ProCmdCblDelLoc` ;#ITEMSFROMLOCS;\

mapkey(continued) ~ Command `ProCmdMdlTreeSearch`;\

mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicIDLayout.InputIDPanel` `26217`;\

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

mapkey(continued) ~ Activate `selspecdlg0` `CancelButton`;#DONE/RETURN;Yes;\

mapkey(continued) ~ Command `ProCmdCblDelLoc` ;#ITEMSFROMLOCS;\

mapkey(continued) ~ Command `ProCmdMdlTreeSearch`;\

mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicIDLayout.InputIDPanel` `31948`;\

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

mapkey(continued) ~ Activate `selspecdlg0` `CancelButton`;#DONE/RETURN;Yes;\

mapkey(continued) ~ Command `ProCmdCblDelLoc` ;#ITEMSFROMLOCS;\

mapkey(continued) ~ Command `ProCmdMdlTreeSearch`;\

mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicIDLayout.InputIDPanel` `4096`;\

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

mapkey(continued) ~ Activate `selspecdlg0` `CancelButton`;#DONE/RETURN;Yes;


    2 replies

    10-Marble
    January 29, 2016

    Hi,

    I'm not 100% sure, but you have specific ID Numbers in your Mapkey, which is related with his function only running with one specific Cable harness.

    Example Line 3:

    mapkey(continued) ~ Update `selspecdlg0` `ExtRulesLayout.ExtBasicIDLayout.InputIDPanel` `26217`\

    That's sometimes the problem of a maypkey, it collects specific Feature IDs.

    So try to record your mapkey in a "neutral" way like using the binocular for instance.

    Martin

    Spiff8-GravelAuthor
    8-Gravel
    January 29, 2016

    Hi Martin,

    thanks for your answer but the mapkey is generated dynamically by Excel after it has analyzed the model structure.

    The purpose is to search for all Location Point IDs that are frozen and the Excel macro creates and executes the mapkey with the right IDs.

    So this is not the root cause for the mapkey stopping at the query window. I guess it's something like a "hidden" @PAUSE_FOR_SCREEN_PICK.

    David

    10-Marble
    January 29, 2016

    Hi David,

    Ouhh woow, great idea!

    What's the Name of the parameter to get through the Model tree the frozen Locations (features)?

    Is it not possible to add each time a colum with Pause for screen Pick with default YES (means Screen Pick a Mapkey entry with empty Pick)

    Martin

    5-Regular Member
    January 29, 2016

    Hi

    Just out of interest what is the goal of the mapkey?  Do you want to delete the locations, do you want to review and delete the locations or did you want to retain the locations?


    I assume you are aware the using Ctrl+F you can search for all frozen locations.  You can then chose to offset the frozen location from a csys ensure the harness does not fail or lose its designed routing path


    thanks, Jim

    10-Marble
    January 29, 2016

    Jim,

    help me, where can I search in Cabling for Frozen Locations in Binocular?

    (What needs to be set up in Search tool )

    But, sure I agree, search for the frozen and convert them to Offset to global Csys is the best way, my 5 cents.

    Martin

    5-Regular Member
    January 29, 2016

    Martin

    I have attached a video showing all the steps.  Watch the message window very carefully as it provides all the prompts.  When i am prompted to select the locations i use CTRL+F and the search tool locates the frozen locations

    thanks, Jim