Message 1 of 2
VB.Net BOM Structure state for radio button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a small code for changing the BOM State of my .ipt but when the API is activated and the windows Form is on, I cant have the current state of the BOM on the radio buttons.
I would like to get the current state of the part ex. Part is in Normal state the radio button normal is checked.
so the radio button of normal is checked at the start of the API.
Here is my code
Private Sub compradaRADIOBTN_Checked(sender As Object, e As RoutedEventArgs) Handles compradaRADIOBTN.Checked
If compradaRADIOBTN.IsChecked Then
normalRDIOBTN.IsChecked = False
MsgBox("Purchased state on")
oPartDoc.ComponentDefinition.BOMStructure = BOMStructureEnum.kPurchasedBOMStructure
Else
MsgBox("Normal state On")
oPartDoc.ComponentDefinition.BOMStructure = BOMStructureEnum.kNormalBOMStructure
End If
End Sub
Private Sub normalRDIOBTN_Checked(sender As Object, e As RoutedEventArgs) Handles normalRDIOBTN.Checked
If normalRDIOBTN.IsChecked Then
compradaRADIOBTN.IsChecked = False
End If
End Sub
Thanks in advance