Slash arrows display not correctly when draw by code


Below is my simple code to test with both SketchUp 2023 and 2024 to ensure this problem come from SketchUp 2024 or not, because it’s normal in SketchUp 2023.

p1 =, 0, 0)
p2 =, 0, 200)
model = Sketchup.active_model
entities = model.entities
vector =, 0, 0)
entities.add_dimension_linear(p1, p2, vector)

Here the screenshot from SketchUp 2024.
(1) is the dimension was created by the code only be flipped in standard views (top/bottom/front/back/left/right).
(2) is the dimension drawn by Dimension tool.

Am I missing something? Could you help me please?

No, I also see it. It also happens with both graphics engines.

Also, when orbiting, the slashes flip back and forth on both ends of the code drawn dimension. But not the manually drawn dimension.

1 Like

Thanks for helping me confirm this information.