PolyCurves are branching

In this post @Aparajit_Pratap explains how to avoid errors in your script giving this error.

QUESTION. Can we set the Dynamo Working Range with a node? in a script with a Data-shapes UI for instance?

Thanks in advance
Marcel