Dim swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Sub main()
Set swApp = Application.SldWorks
Set swModel = swApp.ActiveDoc
blnretval = swModel.DeleteCustomInfo2("", "工艺路线") '清除属性栏原有的属性
blnretval = swModel.AddCustomInfo3("", "工艺路线", swCustomInfoText, "下料—折弯—电焊") '添加属性到属性栏
End Sub