- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
Inventor 2022
VB.NET API with Visual Studio
I try to Convert Solid Modell to Sheet Metall
The Goal is, we are in Part Document and we make a Autmation to Convert Solid do Sheet Metall, with declaration of Thickness of material.
I have a half of this.
I need manually:
- click Convert to SheetMetall
- Set the Material Thickess
then i use the CODE:
Imports System.Runtime.InteropServices
Imports Inventor
Imports Microsoft.Win32
Module CommandFunctionButton_07
Public Sub CommandFunctionfweButton_07()
Dim oPartDoc As PartDocument = g_inventorApplication.ActiveDocument
Dim oCompDef As PartComponentDefinition = oPartDoc.ComponentDefinition
Dim oTO As TransientObjects = g_inventorApplication.TransientObjects
Dim oTG As TransientGeometry = g_inventorApplication.TransientGeometry
Dim oFaceCurved As Face = CType(g_inventorApplication.CommandManager.Pick(SelectionFilterEnum.kPartFaceFilter, "Pick a Face"), Face)
Dim oSheetCompDef As SheetMetalComponentDefinition
oSheetCompDef = oPartDoc.ComponentDefinition
Dim oSheetMetallFeatures As SheetMetalFeatures
oSheetMetallFeatures = oSheetCompDef.Features
Call oSheetMetallFeatures.UnfoldFeatures.Add(oFaceCurved, , )
End Sub
End Module
How to make the Convert to SheetMetal?
I was looking in help.Autodesk.Inventor
in:
SheetFeatures
PartFeatures
PartDocument.SubType Property
SheetMetalCheckGUID = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}"
DocumentTypeEnum Enumerator
etc...
but i was Find Nothing.
Thanks for any Sugestion.
Solved! Go to Solution.