Community
I've been haing some issues getting the PropertySets.Item to work in C#
I've been trying to follow the VB examples in the SDK folder but I'm still scratching me head.
If you have any idea what I'm missing I would be much obliged!
Thanks,
James
Using Visual Studio 2012 with Inventer 2014 SP1
Error:
'InventorApprentice.PropertySets' does not contain a definition for 'Item' and no extension method 'Item' accepting a first argument of type 'InventorApprentice.PropertySets' could be found.
Try this style:
//Get "Inventor Summary Information" PropertySet PropertySet oPropertySet = oApprenticeDoc.PropertySets["{F29F85E0-4FF9-1068-AB91-08002B27B3D9}"]; //Get Author property InventorApprentice.Property oProperty = oPropertySet["Author"]; oProperty.Value = author;
Cheers,
That worked out great.
Working Solution added as text file below.