Message 1 of 6
Access and change inventor parameters using vb.net

Not applicable
03-16-2015
02:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am using vb.net code in visual studio to use a custom form to update the inventor model. I found code on the "mod the machine" site but it is not working for me. Here is what I have:
Dim _invApp As Inventor.Application
Dim oParameter As Inventor.Parameters = _invApp.ActiveDocument.ComponentDefinition.Parameters
Private Sub WheelSize_Leave(sender As Object, e As EventArgs) Handles WheelSize.Leave
Dim oWheelSize As Inventor.Parameter = oParameter.Item("Wheel_Size1")
oWheelSize.Expression = WheelSize.Text
I get the issues with the ComponentDefinition.Parameters as it is not recognizing that as anything meaningful. Does anyone know what the issue is?