Allow a Project object to have a 'variables' node, so any device/wg in that project can locate variables in the project.
Something like Project.set_variable_node( 'Variables 1' ) where 'Variables 1' is the name of the Fimmwave Node in the fwProject.
requires a get/set_variable() function as well.
So after the Variables Node is set, then can do:
br = MyPrj.get_variable( 'BendRadius' )
or, relevant to #70 , can internally do within a Device object:
length = self.parent.get_variable( 'VarName' )
for resolving variables easily.
To address #70
Allow a
Project
object to have a 'variables' node, so any device/wg in that project can locate variables in the project. Something likeProject.set_variable_node( 'Variables 1' )
where 'Variables 1' is the name of the Fimmwave Node in the fwProject.requires a
get/set_variable()
function as well. So after the Variables Node is set, then can do:br = MyPrj.get_variable( 'BendRadius' )
or, relevant to #70 , can internally do within aDevice
object:length = self.parent.get_variable( 'VarName' )
for resolving variables easily.