Open Eneroth3 opened 4 years ago
@ackarkka - thoughts on this?
This would be helpful for one of my clients too. In one project i need to add dimensions to the boundingbox.
The boundingbox is a good use case! Mine is a little more obscure as you might think the point should be on a vertex, but for Eneroth Viewport Resizer it is important the point stays in space even if any such vertex is moved.
In the LayOut Ruby API you can utilize the ConnectionPoint to connect a label or dimension to a point in a SketchUp model inside of a viewport, and have it stay connected when the viewport or its camera is moved.
However, if you set up the ConnectionPoint to connect to only a Point3d, without providing a PID, it will be shown as unconnected in LayOut with the sinister red background. Sometimes you don't want to connect to an entity (e.g. a vertex) but just a point in space.
I think the red styling should only be applied if the ConnectionPoint has a PID that couldn't be found in the model, not if the PID is nil.