Message 1 of 7
API Iproperties populate trough textbox
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Fellow inventor enthusiasts
I have been seraching for a guide to know the way to populate Iproperties from a form in VB.net .
I have not been able to find a proper map to the iproperties.
Here is a code snipet of what I am looking for.
Private Sub btnADDDATA_Click(sender As Object, e As EventArgs) Handles btnADDDATA.Click
Dim vendor As String = txtVendor.Text
Dim estimatedCost As String = txtCost.Text
Dim partNumber As String = txtPartNO.Text
Dim website As String = txtWEB.Text
' Update the iProperties.
Try
oDoc.PropertySets.Item("Inventor User Defined Properties").Item("Vendor").Value = vendor
oDoc.PropertySets.Item("Inventor User Defined Properties").Item("EstimatedCost").Value = estimatedCost
oDoc.PropertySets.Item("Inventor Summary Information").Item("Part Number").Value = partNumber
oDoc.PropertySets.Item("Inventor Summary Information").Item("Web Link").Value = website
MsgBox("iProperties updated successfully.")
Catch ex As Exception
MsgBox("Error updating iProperties: " & ex.Message)
End Try
End Sub
thasnks in advance