Found this in the .net programmers guide:
... objProperties = ObjPropertySets.Item("Custom") ObjProperty = objProperties.Add("My String", "Hello") etc...
But this adds a custom prop, to edit the (comments)value in the summaryInfp would I use the same type of code?
And that doesnt seem to work either...
Yes. If the property name exists the Add method edits its value, else the method creates the property. But this only works with Custom Properties
With System Properties you have to assign the value to the specific property.
Dim oProps As SolidEdgeFramework.PropertySets = YourSolidEdgeDocument.Properties
.Value = "Your Comment"
or (take a look at Spy for Solid Edge for an open document)
oProps.item(1).Item(4).Value = "Your Comment"
' VERY IMPORTANT
If you are editing the properties from an assembly you have to save the assembly too in order to save the opened files.
Héctor Pelayo Izquierdo
Engineering Department, JAE Ingeniería y Desarrollos, S.L.
Solid Edge ST9 MP5 | NX 9