Facility Control

 View Only
  • 1.  Global Constraints-

    Posted 12-09-2018 21:50
    Hey folks! Question about global constraints. Is it possible to update global constraint values based on a text parameter?

    I've seen other posts that use "params.replaceConstraint()", but that doesn't seem to work on Global Constraints. I could go down that path, but it seems wasteful, since I have 6 parameters that need the same constraints to be updated.

    What am I missing? Thanks!


    Bo


  • 2.  RE: Global Constraints-

    Posted 12-10-2018 15:34
    I don't know much about "global constraints". I know there is a command called replaceIdentifiedConstraint, which is probably what you are looking for.

    If you give me an example of how you define your constraints in your panel (and how you refer to them in your parameters), I can probably whip up an example of how to programmatically change them.
    #DashBoard


  • 3.  RE: Global Constraints-

    Posted 12-16-2018 21:28
    I tried several different versions of replaceConstraint and replaceIdentifiedConstraint with Global Constraints to no avail. I ended up just building the constraints into each parameter using params.replaceConstraint() as shown in attached link.

    So, for now I won't waste your time with the particulars. Thanks!
    #DashBoard