Error setting profile on existing extrude

Error setting profile on existing extrude

mediumchris
Explorer Explorer
549 Views
2 Replies
Message 1 of 3

Error setting profile on existing extrude

mediumchris
Explorer
Explorer

I'm getting a "RuntimeError: 2 : InternalValidationError : curProfile" error when I try to update an ExtrudeFeature with a new profile (locating the feature by attribute):

if len( attributes ) > 0:
        extrusion = attributes[0].parent
        extrusion.timelineObject.rollTo( True )
        extrusion.profile = profile

In fact, just retrieving the profile (before assignment) causes an "InternalValidationError : res", while accessing other properties isn't a problem.

 

I've done quite a bit of experimenting and digging for answers but have no idea what is going wrong.

0 Likes
550 Views
2 Replies
Replies (2)
Message 2 of 3

goyals
Autodesk
Autodesk

I am unable to reproduce this issue on my side and setting the new profile after rollback on the timeline on extrusion feature works fine for me. If you can share the script, it might be easy to reproduced it. Thanks



Shyam Goyal
Sr. Software Dev. Manager
0 Likes
Message 3 of 3

mediumchris
Explorer
Explorer

After more experimenting I realised the cause is that I'd invalidated the current extrusion profile by modifying the source sketch.

 

I was actually trying to propagate the changes made to the sketch to avoid manual fixing up after running the script.

 

If I make a new sketch, update the extrusion profile and then delete the original sketch I don't get the same error although it still causes downstream problems most of the time. So I think if there is a bug it's that the current profile being invalid shouldn't prevent assigning a valid one.

 

I may post a separate thread regarding the larger issue.

0 Likes