Hi everyone, I’ve been running a simple script to fill some custom “instance parameters”. The script works just fine, it does what I expect it to do, but with a warning on “Element.SetParameterByName” saying it could not find any parameter by that name. And yet, it does find the parameter and fill it with the string I feed it.
If the script stopped at that point and did not fill the parameter I would assume it was a problem with the parameter name as the warning mentions but… I really don’t know where the problem is and even though the script works as intended, I would like to avoid future surprises because of this.
That was in fact the problem. Running the script to create a screenshot with bubbles pinned to upload, I saw the “SketchPlane” elements in fact output as null, and testing the script on a clean project with groups walls would show no warnings.
Mistery solved, thanks very much. I should’ve check those elements.