I am after some code to enable the switching of parameter name's
I need the following if i could have some help
basically i want them to swap over and i will be running this as a external rule.
Any help will be appreciated
Go to Solution.
This code can do the job for you:
'create a temporary variable and assign names to themSharedVariable("OrigG_W") = Parameter.Param("G_W").NameSharedVariable("OrigG_T") = Parameter.Param("G_T").Name'rename the current parameters with a temporary nameParameter.Param("G_W").Name = "OrigG_W"Parameter.Param("G_T").Name = "OrigG_T"'rename the temporary parameter name to the one from the sharedvariableParameter.Param("OrigG_W").Name = SharedVariable("OrigG_T")Parameter.Param("OrigG_T").Name = SharedVariable("OrigG_W")'remove all the sharedvariableSharedVariable.RemoveAll()
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.