Message 1 of 2
Creating sketch from baseFeature - aka not parametric - fail to update transform
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
def newSketch(self, plane = None): component = self.occurrence.component plane = component.xYConstructionPlane if plane is None else plane planes = component.constructionPlanes planeInput = planes.createInput() planeInput.targetBaseOrFormFeature = self.feature planeInput.setByOffset(plane, core.ValueInput.createByReal(0)) plane = planes.add(planeInput) sk = component.sketches.addToBaseOrFormFeature(plane, self.feature,True) return sk ... try: print('Sketch isParametric?',self.sketch.isParametric) self.savedTransform = self.sketch.transform self.sketch.transform = tmatrix yield self except RuntimeError as e: print('****!', e)
Sketch isParametric? False
****!: Fail in the case where the sketch is parametric