- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
Concerning the performance issues of my functions, I have switched the modelling environment from 'Parametric' to 'Direct' (which by the way, speeds up everything significantly). The problem with Direct design mode is that, it seems like I cannot obtain the returned object of the features. For example, I usually try to delete some faces using the feature below:
delete = rootComp.features.deleteFaceFeatures.add(faceToDelete)
After deleting the faces, depends on some criteria, I might want to undo this action (revert the deletion). I used:
delete.deleteMe()
to achieve this in 'Parametric' mode. However in 'Direct' mode, I found that the deleteFacesFeatures.add() method returned None instead of the feature.
I am not sure if this is the intended design of 'Direct' mode. Is there any workaround to undo the action (deletion of faces, in this case)?
I have tried the UndoCommand, but it seems to undo the whole thing (entire execution of my script) instead of just the deletion. Maybe I am missing something here.
Any suggestion / help is highly appreciated!
Solved! Go to Solution.