Showing results 1 to 5 of 5

Thread: Project compilation from VBA

  1. #1
    Join Date
    01.12.2009
    Posts
    23

    Default Project compilation from VBA

    Hello.

    Please help.

    I have to compile my SCADA-project from VBA-macro in Editor mode.
    I tried to do this with a method described below ( I've found this method in the SCADA help).
    But it doesn't work and falls out with error 748 "Method or property is not valid in this type of project"

    The method:
    MyWorkspace.VBE.VBProjects.Item("MyProject").MakeCompiledFile

    What have I to do to?

  2. #2

    Default Re: Project compilation from VBA

    Please try with this for compiling runtime files for the currently active project in the editor:

    Sub compile()
    MyWorkspace.ActiveDocument.Build (tpIncremental)
    End Sub

    If you need to compile other projects as well, you need to access the projects via the GUID, and maybe need to load them first, if the option "keep project in memory" is not active.

  3. #3
    Join Date
    01.12.2009
    Posts
    23

    Default Re: Project compilation from VBA

    Thank you very much!!!

  4. #4
    Join Date
    24.04.2012
    Posts
    4

    Default Re: Project compilation from VBA

    I am using Zenon V6.51 and opened a workspace. It was successful until when I do create Runtime Files and there was a message:

    The simulation project of driver '3S_ARTI_NG' - '3S_Arti_NG' is not compiled. Therefore it cannot be used! Please compile the project in the Workbench.

    I tried to open the configuration of the driver 3S_Arti_NG and it did not open/work.

    (The driver 3S_Arti_NG, ArtiClient.dll, and SymArtiClient.dll has already been copied to the installation folder of my COPADATA).

    What shall I do with this problem? How to solve it?

  5. #5

    Default Re: Project compilation from VBA

    Hi,

    Unless you are actually using the programmed simulation, you can ignore the warning message in the output window during compiling zenon runtime files.

    This basically says that for this driver a program for the programmed simulation exists, but it was not compiled in the workbench.

    When you have the correct articlient.dll and symarticlient.dll, and you have put them in the same directory as the 3S_ARTI_NG.EXE, than you normally should be able to open the driver configuration!

    Best regards,
    Mark

Similar Threads

  1. how can be save the project that consist of the sub project?
    By michael_k in forum zenon Supervisor
    Replies: 1
    Last Post: 6th March 2010, 12:31

Posting Rules

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