- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi @filippo.costantin3HZMT. I can't read what the error message says, because it is not in English, but it kind of looks like "Unspecified Error", which would not be that helpful anyways. The second tab of the error message dialog sometimes has more useful information somewhere within it, but not always. Are you sure it is that 'oOcc.Delete' line causing the error? I don't know if it would be any different functionality, but the first alternative I might have tried would be oOcc.Delete2(True). The 'True' there tells it to skip saving the source document of the component. Another thing that comes to mind is that the assembly may need to be updated, because maybe it is trying to delete a component that no longer exists or something like that, though it seems a bit unlikely. It was rather difficult to follow along with your code, due to the language difference, and the amount of commented out stuff remaining within it, but it kind of looks like you may be adding an assembly type component to the 'active' assembly, then almost immediately deleting it again, without any document update of any sort in between the two. If that is true, what is the purpose...just curiosity.
Wesley Crihfield
(Not an Autodesk Employee)