I'm porting some code from VB to c#, and I'm being told the PropertySets object doesn't have an item method defined.
The Item method doesn't show up in the VS object browser.
I have a 'using Inventor;' statement, and a reference to autodesk.inventor.interop. So far everything else has worked as expected.
What should I be looking for?
Solved! Go to Solution.
Solved by WCrihfield. Go to Solution.
Hi @awatt. I am not good with C#, but since the Item property is its default one, you may be able to simply use a ["propertyset name"] right after the oDoc.PropertySets, like this:
Inventor.PropertySet statusPropertySet = oDoc.PropertySets["Design Tracking Properties"]
just a guess, based on what I've seen before.
Wesley Crihfield
@WCrihfield I think you might be right. The code formatter accepted it, but it will be a while before I can compile and fully test.
Thank you.
WCrihfield is correct.
Also try this:
https://github.com/icsharpcode/CodeConverter
I converted my VS VB template to C# with it.