Showing results 1 to 2 of 2

Thread: Macro execution on current PC within multi-user project

  1. #1
    Join Date

    Default Macro execution on current PC within multi-user project


    I need to execute a VSTA-Macro linked to a button. That Macro calls a Windows Form Dialog updating user data. The project is running on a Primary/Standby Server and the Clients are synchronized to that server.
    How do I manage it that only connected Clients can execute that button (Macro function)?
    Currently, all synchronized computers are executing that Macro, whereas only the Macro-caller (HMI client) should do that work.

    Thanks in advance

  2. #2

    Default Re: Macro execution on current PC within multi-user project

    Hi Chris,

    At the function properties for executing the VSTA macro, the setting for execution is currently probably set to "current computer", which executes the macro on the system where the button is pressed.

    In the VSTA macro itself, you could check the NetType property of the Project object and check if the runtime on this computer is in fact a client or server/standby server.

    Best regards,

Similar Threads

  1. Replies: 8
    Last Post: 4th April 2022, 10:14
  2. Replies: 11
    Last Post: 4th August 2017, 12:12
  3. Current user in header section of the project
    By yolovs in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 2
    Last Post: 31st July 2013, 10:02
  4. Replies: 1
    Last Post: 3rd March 2013, 23:00
  5. Replies: 5
    Last Post: 5th October 2012, 07:34

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts