-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The group BoundingBox bug caused by undoing after face.pushpull #798
Comments
@thomthom The group needs to be formed in three dimensions in order to be reproducible, for example, I have used a box here |
Can you share complete snippet (or model) that reproduce this please? |
@thomthom There are three steps in total, which I have written as code. model = Sketchup.active_model
ents = model.active_entities
group = nil
# First step: create a box
model.start_operation "CreateBox", true
group = ents.add_group
rect_pts = [
ORIGIN,
Geom::Point3d.new(100.mm, 0, 0),
Geom::Point3d.new(100.mm, 100.mm, 0),
Geom::Point3d.new(0, 100.mm, 0),
]
face = group.entities.add_face(rect_pts)
face.pushpull(100.mm)
model.commit_operation
# Second step: pushpull face in group
model.start_operation "PushpullAFace", true
face = group.entities.find do |e|
e.is_a?(Sketchup::Face)
end
face.pushpull(1000.mm)
model.commit_operation
# Third step: sketchup undo (or press ctrl + z)
Sketchup.undo
model.selection.clear
model.selection.add(group) Result |
@thomthom I confirm. I can see this also on 2021. The second step can be a manual pushpull inside the group open for edit. It might be a core issue, ...
However, saving the file and cycling through a new empty model, then upon reopening the bounding box is corrected. It also happens if only the group and face are created with code. The 1st and second pushpulls can be manual. Whilst the bounding box is incorrect, it's |
Logged as: SKEXT-3511 |
Bug Reports
Operation steps
Step 1: Operation of the code
Perform a face.pushpull on a face inside the group
Step 2: User's operation
User presses Ctrl + Z to undo
Result
Try to solve with code
But it doesn't work.
Try to solve manually
Double click into the group, exit, can solve
Conclusion
There is a bug with face.pushpull via ruby, hope it can be solved, thanks!
The text was updated successfully, but these errors were encountered: