Vb.Net - Show Extrusion Dialog Box
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can anybody help?
Using Vb.Net, I am trying to show Inventor's "Extrusion Dialog Box".
Basically, I am checking the extrusion size against standard steel plate material thicknesses. If the extrusion size does not match standard steel metal plate thicknesses I want to show the "Extrusion Dialog Box" so that the user can easily make the change required.
I have the following code, but I cannot get it to work.
Dim oCMD As ControlDefinition
oCMD = m_inventorApplication.CommandManager.ControlDefinitions("SheetMetalStylesCmd")
Dim InvApp As Inventor.Application = ThisApplication
oCMD = m_inventorApplication.CommandManager.ControlDefinitions("PartDMExtrudeCmd")
Dim oDoc As Inventor.PartDocument
oDoc = m_inventorApplication.ActiveEditDocument
Dim oFeature As Inventor.PartFeature
oFeature = oDoc.ComponentDefinition.Features.ExtrudeFeatures(1)
oDoc.SelectSet.Clear
oDoc.SelectSet.Select oFeature
Dim oControlDef As Inventor.ControlDefinition
oCMD = m_inventorApplication.CommandManager.ControlDefinitions("PartNGxExtrudeEditCtxCmd")
oCMD.Execute
Does anybody know what is wrong with the code and rectify it for me?
Many thanks in advance!
Darren