Transmit parameter introduce cyclic dependency
Hello everyone!
I want to apply "user defined remeshing" to realize the remesh function in CFX, when I run the script file(which suffix is wbjn) which including the part of transmiting the parameter P4 of Result to the P1 of the Geometry,the error message of "Trying to define derived expression "P4" for parameter "P1" will introduce cyclic dependency" is appearing. my code as following. Who have encountered this problem, how did you resolve it? thank you!!! # encoding: utf-8 SetScriptVersion(Version="14.0") Open(FilePath="E:/lizi/rotation.wbpj") system1 = GetSystem(Name="CFX") # set parameter and update the geometry designPoint1 = Parameters.GetDesignPoint(Name="0") parameter1 = Parameters.GetParameter(Name="P1") designPoint1.SetParameterExpression( Parameter=parameter1, Expression="P4") Refresh() # update mesh system2 = GetSystem(Name="SYS") component1 = system2.GetComponent(Name="Mesh") component1.Update(AllDependencies=True) |
All times are GMT -4. The time now is 17:14. |