Integrating Scripting
Scenario: You want to integrate the scripting functionality into a Desigo CC project.
Reference: For background information, see the reference section.
Workflow diagram:
Steps:
1 – Install or Upgrade the Scripts Extension
- Exit both Desigo CC and SMC.
- From where you have the full Desigo CC installation package stored, navigate to the InstallFiles directory, right-click the installer setup file, and select Run as administrator.
- The Install Wizard displays.
- Click Next.
- An Upgrade Selection screen displays only when the installation package contains updated versions of already-installed extensions:
a. If the Scripts extension is listed here, leave it selected to update it.
b. Deselect any other extensions you do not want to update.
c. Click Next to continue.
- The Setup Type Selection screen displays.
- Click Modify alongside Feature Selection.
- In the Feature Selection screen:
a. Expand the Standard Modules extension suite.
b. Select the Scripts extension check box.
c. Click OK.
- Click Next and follow the on-screen prompts to finish installing or updating the Scripts extension.
- When the installation is complete, the Installation Complete dialog box displays.
- Click Close.
2 – Add the Scripts Extension to a Project
Perform this step to check whether the Scripts extension is present in a project, and to add it if needed.
NOTE: Once you have added an extension to a project you cannot remove it. Only add the necessary extensions to a project.
- You are logged into Windows with admin rights.
- The Scripts extension is installed.
- Exit Desigo CC.
- Launch the System Management Console (SMC).
- In the SMC tree, select Projects > [project].
- In the Project Settings tab, open the Extension Information expander and look for Scripts in the list of the project extension modules.
- If Scripts is included in the list and its status is
Updated
, then the project already includes the necessary extension, skip to the end of this procedure. Otherwise, continue with the steps below.
- If the Project status in the Server Project Information expander is
Started
, stop the project as follows:
a. Click Stop .
b. Click OK.
- The status bar at the bottom of the screen displays
Project is Stopping
. Once finished, the Project status changes toStopped
.
- If Scripts is listed in the Extension Information expander but its status is
Outdated
, click Upgrade .
- The extension changes are applied to the project. This may take several minutes. Check the progress bar at the bottom of the screen. Once finished,
Upgrade successful
displays.
- If Scripts is not listed in the Extension Information expander, add it to the project as follows:
a. Click (+) Add to project.
b. In the Select Project Extensions dialog box, expand Standard Modules.
c. Select the Scripts check box.
d. Click OK.
e. Click Save Project .
- The extension is added. Once finished,
extensions added successfully
displays.
3 – Check Scripts Application Rights
When you install or add the Scripts extension, the application rights for scripts are disabled by default. You must complete this procedure to enable them.
- The Scripts extension was added to the project.
- System Manager is in Engineering mode.
- In System Browser, select Management View.
- Select Project > System Settings > Security.
- In the Security tab, select the user group that you want to authorize to work with scripts.
- In the Application Rights expander, open the Script Editor expander and select the check boxes for the rights (Show, Configure, and Change Script Credentials) that you want to allow. For details on parameters, see Scripts Application Rights.
- Click Save.
- The selected script rights are enabled for this user group. For example, if you enabled Show, when a group member selects Applications > Logics > Scripts, the Script Editor tab displays.