deleteCustomProperty Method

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Object Reference > DBWJComp Methods >

deleteCustomProperty Method

MechWorks MWScriptGUI Scripting Utility Object

Deletes a (configuration) specific custom property from a Solidworks file

Syntax

DBWJcompObj.deleteCustomProperty filePath as String, configuration as String, propertyName as String

Example

filename = "C:\temp\testPart01.sldprt"
config = "Default"
propname = "Myprop1"
set DBWJcompObj = CreateObject("DBWJComp.CodeObject")
DBWJcompObj.deleteCustomProperty filename, config, propname
set DBWJcompObj = nothing