ToolPropDataExchange#

class ansys.scade.guitools.data.ToolPropDataExchange(tool: str)#

Bases: DataExchange

Means to serialize values as project tool properties.

A tool property is a project property which name has the following syntax: @:, where is a name for discriminating homonymous properties and is the name of the property.

For example: @GENERATOR:TARGET_DIR

Parameters#

toolstr

Name of the tool to build the project property’s name: first token after @.

Initialize the tool property data exchange instance.

Overview#

display

Update the page with the properties read from the model.

validate

Update the model with the properties read from the page.

Import detail#

from ansys.scade.guitools.data import ToolPropDataExchange

Attribute detail#

ToolPropDataExchange.tool#

Method detail#

ToolPropDataExchange.display(project: scade.model.project.stdproject.Project, configuration: scade.model.project.stdproject.Configuration | None)#

Update the page with the properties read from the model.

ToolPropDataExchange.validate(project: scade.model.project.stdproject.Project, configuration: scade.model.project.stdproject.Configuration | None)#

Update the model with the properties read from the page.