AnsweredAssumed Answered

Add and Delete custom properties in SW2018SP4

Question asked by James Smith on Sep 18, 2018
Latest reply on Sep 19, 2018 by James Smith

Hi Guys,

I have visual basic code that i used to add and delete custom properties to a part in Solidworks. It worked fine in SW2017SP3 but now doesn't work in 2018SP4.

 

Here is the method i was using to Delete

retval = Part.DeleteCustomInfo("TextBox2")

 

To Add

 

retval = Part.AddCustomInfo("TextBox2", "Text", TextBox2.Text)

 

I don't know if there is something else i need to be uisng in SW2018SP4

 

Any help is appreciated.

 

Thanks

Outcomes