Clines (non infinite guides) do not scale correctly


#1

I’ll have to post this on the bug forum, but this mainly affects developers:

If you run this:
ruby mod = Sketchup.active_model # Open model ent = mod.entities # All entities in model pt1 = Geom::Point3d.new(0,0,0) pt2 = Geom::Point3d.new(10,0,0) pt3 = Geom::Point3d.new(10,10,0) pt4 = Geom::Point3d.new(0,10,0) edges = ent.add_edges pt1, pt2, pt3, pt4, pt1 constline = ent.add_cline pt1, pt3 constline = ent.add_cline pt2, pt4
You get:

But if you select these elements and scale x times 2 to the right, you get:

The clines do not connect to their original end points(???)

I create clines frequently as stand ins for edges, faces, or bounding boxes when performing transforms and inverse transforms. That way I can transform the clines to derive untransformed geometry without worryng about secondary effects on connected entities. Then I usually delete them, but sometimes use them for user feedback.

Now that I see this bug, I’ll have to use only cpoints from now on.

If I group the 2 clines, then they scale correctly.

Am I the first to notice this??


#2

There are known inferencing issues with finite Clines, ie, inferences do not work with them, but do with infinite Clines.


#3

I played around a bit. I confirm.

Finite CLines will not stretch with either the MoveTool nor the ScaleTool.