- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm experimenting with vb.net and apprentice, by re-implementing existing VBA code. I'm new to this...
I have found a problem: I use select.. case to determine componentdefinition.type and do different code accordingly. The problem is a weldment type document, is being identified as a plain assembly type document
Select Case ApprenticeDoc.ComponentDefinition.Type
Case InventorApprentice.ObjectTypeEnum.kPartComponentDefinitionObject, InventorApprentice.ObjectTypeEnum.kSheetMetalComponentDefinitionObject
...
Case InventorApprentice.ObjectTypeEnum.kAssemblyComponentDefinitionObject
... Weldments go this path as well!!!
Case InventorApprentice.ObjectTypeEnum.kWeldmentComponentDefinitionObject
...
End Select
What am I doing wrong? This used to work in VBA. Can apprentice not do this?
Edit: I need the Weldbead.Material which does not seem to exist in Apprentice. So I assume it can not handle Weldments properly? That is bad.
Solved! Go to Solution.