Scripting ConnectorStop() with grounded connector detailed tutorial.

I would like to constrain several parts so that they can only rotate a certain angle, say +/- 10 degrees, with respect to a coordinate system that includes the part's axis and a common plane.

It is also acceptable if they rotate +/-10 degrees with respect to the global X-axis, as all of their axes will EVENTUALLY align with that axis, but initially their axes are pointing different directions.

It seems like a rotational connector stop is what I need, but I'm having a hard time finding all the information I need in the scripting and other reference manuals. The details are kind of obscure.

I'm going to muddle through it eventually with a minimal model, but it would be very helpful if someone has a python script example that made an assembly-level wire connecting a part to ground through a rotation connector with angular stop.

Even just the proper syntax for a WirePolyLine(...) to ground at the assembly level would be helpful.

Thanks,

Dan