Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Creating sketch from baseFeature - aka not parametric - fail to update transform

1 REPLY 1
Reply
Message 1 of 2
gscotti
176 Views, 1 Reply

Creating sketch from baseFeature - aka not parametric - fail to update transform

    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

 

1 REPLY 1
Message 2 of 2
liujac
in reply to: gscotti

Hi,

 

It's a defect. The sketch under a base feature should can be transformed. I logged a defect (UP-30724) in our internal system. We will fix it soon. Thanks for reporting this issue.

 

Jack

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report