Scripting with VisionPro Tool Blocks
Scripting can be utilized to interact with VisionPro Tool Blocks in two different ways: externally, through the Designer Script Editor, or internally using the VisionPro Script Editor.
The Designer Script Editor offers a simplified interface, while the VisionPro Script Editor is a more robust editor. The key difference between the two scripting mechanisms, however, is that the VisionPro Script Editor does not have access or knowledge of the Designer tags and objects, and does not support the $ Functions. Thus, the VisionPro Script Editor should only be used to create scripts inside the VisionPro Tool Block, whereas the Designer Script Editor can be used to interact internally with the Tool Block, or through other external interactions in the Task.
| Capability | VisionPro Script Editor | Designer Script Editor |
|---|---|---|
| .NET Auto Complete | YES | YES |
| Class Creation | YES | NO |
| Script Creation | NO | YES |
| Tag Handling | NO | YES |
| Tag Renaming | NO | YES |
| Tag Search Functionality | NO | YES |
| Local Find and Replace | YES | NO |
| XML Documentation Tooltip | NO | YES |