Variable#

class pyedb.dotnet.database.edb_data.variables.Variable(pedb, name)#

Manages EDB methods for variable accessible from Edb.Utility.VariableServer property.

Overview#

delete

Delete this variable.

name

Get the name of this variable.

value_string

Get/Set the value of this variable.

value_object

Get/Set the value of this variable.

value

Get the value of this variable.

description

Get the description of this variable.

is_parameter

Determine whether this variable is a parameter.

Import detail#

from pyedb.dotnet.database.edb_data.variables import Variable

Property detail#

property Variable.name#

Get the name of this variable.

property Variable.value_string#

Get/Set the value of this variable.

Returns:
str
property Variable.value_object#

Get/Set the value of this variable.

Returns:
pyedb.dotnet.database.edb_data.edbvalue.EdbValue
property Variable.value#

Get the value of this variable.

Returns:
float
property Variable.description#

Get the description of this variable.

property Variable.is_parameter#

Determine whether this variable is a parameter.

Method detail#

Variable.delete()#

Delete this variable.

Returns:
bool

True when successful, False when failed.

Examples

>>> from pyedb import Edb
>>> edb = Edb()
>>> edb.design_variables["new_variable"].delete()