
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am newbie for AutoCAD VB .NET programming.
I have a requirement to get a parameter value thro' VB .NET GUI and based on the value update a parameter in AutoCAD 2012 drawing (since my client is using AutoCAD 2012).
I read the post Update a parametric dimension value using .NET (C# or VB) and tried the code provided in
http://adndevblog.typepad.com/autocad/2012/03/working-with-associative-parameters-from-api.html
I converted the C# code provided in the above link to VB .NET and it works. But I am unable to enter a numeric value in the code.
I have attached my code and AutoCAD 2012 drawing file I am using.
The code seems to fail at
Dim var As AssocVariable = TryCast(Tx.GetObject(variableId, OpenMode.ForWrite), AssocVariable)
Thanks
PV Subramanian
Solved! Go to Solution.