Task button with more than one command.

I'm hoping to create a new button in OPM that will do several commands in a row once I select the items.

Similar to commands I've seen where you can Copy/Rotate items.

I am hoping to copy piping and fittings, then modify them all at once. That might be a stretch.

It's easy to create a button that will perform a task. But what is the procedure to make the command stop without de-selecting the items, then continue with another task?

I don't know what text to place to make more than one command happen. Do I separate the commands by a semi-colon or something similar?

Parents
  • Hi Richard, 

    Can you provide more input on this? Like what type of work you would like to achieve with multiple dialog box.

    -Regards | Rahul Kumar

    Regards,

    Rahul Kumar

    Product Engineer – Global Technical Support | Community Moderator

  • This question goes with my other question about changing valve numbers while copying. Tool button would perform a copy, then perform a change to the tagged item numbers.

    Currently, to copy a valve and change the number requires the user to copy the item, then perform a Modify Component to change the number. We'd like to perform both these procedures with one button without the user having to select the item twice and perform two procedures.

    If I can find the command to modify a component, I would add that to the copy command. If that is even possible. 

    Example: In OPM, we have 3 pumps in a system. Piping to all 3 pumps is identical except for tagged item numbers.

    User routes piping to pump A and includes valves, instruments, etc. that are tagged items.

    User then clicks the button to copy items within the model.

    Copied items are placed at pump B.

    Window opens that shows existing tag number of the item that was copied from, then the number the program assigned to the items, such as the valves. This dialogue allows the user to change those numbers prior to them being finally placed in the model.

    This window only needs to show the numbers assigned to tagged items. No need to show piping and fittings.

    So the user can copy piping with valves WSC-BV-A101 and WSC-BV-A102, place them on pump 2, and immediately change the numbers to WSC-BV-B206, and WSC-BV-B207. Then copy the piping again and change the numbers as needed, without manually selecting each item and using either modify component or element info to change the numbers.

    This process would eliminate the possibility that a user would miss changing the number of a tagged item if the piping is copied.

  • I'm afraid it sounds great but to be honest I don't think OPM can do what you propose at this stage. And it seems what you proposed works well if only 1 valve (or 1 tagged component) involved. What happens if user want to copy more than 1 valve at a time, or what if there are other tagged components (instruments, inline components etc.) which raises the amount of tag numbers required to be change to more than 1. 

    I think OPM does have an internal counter that increase a component tag (for each type) by 1 when a new component is created, but I haven't work how that internet counter actually works. 

    Another thing to notice is that if your piping for pump A and pump B have different line numbers, when you copy from line A to line B, the new components (piping, valves etc) is still associated with line A, so there's an extra step required to move the copied components to the correct line number, if required.

  • Hello All,

    Thanks for providing valuable observation and feedback on this thread. We have logged an Enhancement request # 923750 for this enhancement request.

    Regards | Deepak Singh 

Reply Children
No Data