- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi @waynehelley. That is a good question. I do not believe that I have ever seen any built-in API method for converting a regular assembly into a weldment type assembly, that allows us to specify those settings that you see in the dialog. I know what the 'command' is that gets executed when you click that button ("AssemblyConvertToWeldmentDocCmd"), but executing that button will show that user interface dialog, which we do not have any intuitive control over by code. It might be possible to develop workaround process to accompany executing the command though. I know that we can sometimes navigate an Inventor dialog that we normally do not have any API access to, by using the System.Windows.Forms.SendKeys.SendWait() method, and 'sending' keyboard keystrokes to Inventor from the iLogic rule after launching the dialog, but that is usually not very safe or reliable. Also, I am not sure if we would be able to utilize the ThisApplication.CommandManager.PostPrivateEvent() method along with that command, to aid in inputting the needed settings by code. You could try doing some trial & error experimentation along those lines if you wanted. This would be a good question for someone at Autodesk to look into for us.
And by the way, here are the other two common conversion commands ("PartConvertToSheetMetalCmd" & "PartConvertToStandardPartCmd").
Wesley Crihfield
(Not an Autodesk Employee)