# Access ViDi Data from a ViDi Tool Block

Additional data from a ViDi tool block can be accessed through the use of a Script Block and a ViDi Sub Task. By linking a Script block to the Marking output pin of a ViDi tool block, you can access the properties of the tool, as you would through the API.

Note:

- A Script block can be used to access the Marking data of a ViDi tool block either inside a ViDi Sub Task block, or in the Task containing the ViDi Sub Task block. For additional usage clarity, the examples in this topic illustrate the use of the Script block outside of the ViDi Sub Task block, in the Task containing the ViDi Sub Task block.
- These topics refer to the potential of the Script block to access the same ViDi tool properties that can be accessed via the API. For more information about additional properties and the ViDi API, please refer to the Cognex ViDi Suite .NET Library help file.