Combining Add / delete properties in a macro.

I have two macro's...  

  1. Add Properties - (wich adds a certain amount of properties to the "custom properties tab" in the properties manager)
  2. Delete Properties - (wich removes all properties from the "custom properties tab" in the properties manager)

Now i want to combine these two, so that they will interact with the contens of a part file.

For instance:

- if the part only contains a straight forward feature it wil add predefined properties to the "custom properties tab"

- if the part has a weldment or sheet metal feature it will delete any property from the "custom properties tab"

Where do i start?

SolidworksApi macros