Is it possible to create a new project without going into the Project Administrator ? (ie : CTRL Script ? Copy folder of a new project + register? Other?)
My goal is to create a new project with some default config.
I tried to use the function paCreateProjExtend() from pa.ctl but it isn't working.
Any idea/sugestion would be appreciated.
Thanks !
Create new project without UI
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Create new project without UI
If you want to register an already existing project on a machine you can
-- copy the project to the machine
-- register the project by calling WCCILpmon -config <path to the config file> -autoreg -noAutoStart
-- stop WCCILpmon
Now the project should be registered.
Best Regards
Leopold Knipp
Senior Support Specialist
-- copy the project to the machine
-- register the project by calling WCCILpmon -config <path to the config file> -autoreg -noAutoStart
-- stop WCCILpmon
Now the project should be registered.
Best Regards
Leopold Knipp
Senior Support Specialist
- uxout
- Posts:82
- Joined: Wed Jul 20, 2016 12:07 pm
Re: Create new project without UI
I want to generate a new standard project from command line. Is it possible?
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Create new project without UI
Why do you want to create a new project from command line?
What is the use case for creating a project "manually"?
Best Regards
Leopold Knipp
Senior Support Specialist
What is the use case for creating a project "manually"?
Best Regards
Leopold Knipp
Senior Support Specialist
- uxout
- Posts:82
- Joined: Wed Jul 20, 2016 12:07 pm
Re: Create new project without UI
It is needed for continuous integration purpose.
I just wanted to know if it is possible or should I just copy a sample project?
I just wanted to know if it is possible or should I just copy a sample project?
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Create new project without UI
There is no command line call available to create a new project.
Creating the project is done with a CTRL command which calls then C++ functions in WinCC OA.
Best Regards
Leopold Knipp
Senior Support Specialist
Creating the project is done with a CTRL command which calls then C++ functions in WinCC OA.
Best Regards
Leopold Knipp
Senior Support Specialist
- gschijndel
- Posts:376
- Joined: Tue Jan 15, 2019 3:12 pm
Re: Create new project without UI
You could also create a script, which creates a new project, and call this script from the command line (without event connection).
But copying a sample project would be easier. To prevent somebody from expanding the sample database and to be sure that the testing starts with an empty database, you could create a new database with 'WCCOAtoolCreateDb'.
But copying a sample project would be easier. To prevent somebody from expanding the sample database and to be sure that the testing starts with an empty database, you could create a new database with 'WCCOAtoolCreateDb'.
- uxout
- Posts:82
- Joined: Wed Jul 20, 2016 12:07 pm
Re: Create new project without UI
Copying a sample project will be the way to go then !
Thanks for the informations.
Thanks for the informations.