Skip to main content
7-Bedrock
Solved

Mapkey: Add text at the end of existing relations

Hello together,

I am currently trying to add a mapkey which adds a enclosure volume feature to existing parts. In addition, it has to add 3 relations to the end of existing relations, but I can not make it work out unfortunately. 

So if there are for example 5 lines with existing relations, it should add a new relation to a new line 6, insert a parameter, jump into line 7, insert a parameter, jump into line 8 and insert a parameter.

Do you have a quick solution for that issue?

Thanks in advance!

    7-Bedrock

    I did find a solution now, but no matter if I use the option “increment” or “full output”, I can’t make sure that existing relations are not getting replaced or deleted, when I add something new via a mapkey.

    The only safe solution I found was to implement a manual pause which forces the user to select a new line inside the relations tab, after that I can simply add my new relations.

    2 replies

    tbraxton
    22-Sapphire II

    Study the utility of this config.pro option in the context of what you need. It might enable you to get a solution if you can standardize things in your start templates such that you can record a mapkey(s) that could work. I would work on building up simple mapkeys into a nested top level mapkey call to make debugging things easier.

     

     

    relation_tool_mapkey_behavior

    Increment * , full_output

    Controls how Creo Parametric runs mapkeys in the Relations dialog box.

    Increment - Records the text set added or removed in the text area and saves it to the mapkey. Subsequently, on running the mapkey, adds or removes text incrementally to the current text set in the text area.

    full_output - Records the original text set in the text area and saves it to the mapkey. Subsequently, on running the mapkey, the current text set in the text area is replaced with the recorded text set.

    *  

    You cannot record mapkeys if the value of relation_text_trail_output is set to no . However, you can run a mapkey that was recorded with this configuration option set to yes , regardless of this options's setting when you run the mapkey.

    Translate
    RO_94074067-BedrockAuthorAnswer
    7-Bedrock

    I did find a solution now, but no matter if I use the option “increment” or “full output”, I can’t make sure that existing relations are not getting replaced or deleted, when I add something new via a mapkey.

    The only safe solution I found was to implement a manual pause which forces the user to select a new line inside the relations tab, after that I can simply add my new relations.

    Translate