Message 1 of 7
Sketch.boundingBox is not reporting correctly current sketch boundary box
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
an excerpt from my script:
splineCurves = ag.project(sketch2)
offsetSplineCurves = do_offset(splineCurves, self.inputs.basic.thickness.value) # local function calls sketch2.offset
bbox = sketch2.boundingBox
p0,p1 = bbox.minPoint,bbox.maxPoint
print((p0.x,p0.y,p0.z),(p1.x,p1.y,p1.z))
print(sketch2.healthState, sketch2.isParametric, sketch2.isValid, sketch2.isComputeDeferred)
Returns:
(-1e+30, -1e+30, -1e+30) (1e+30, 1e+30, 1e+30)
0 True True False
Curiously, if I run another script right after this, that takes the same sketch object as selection, it reports correctly.
I'll try to create an stand alone version of this issue if you cannot repro it.
Attached screenshot.
