AnsweredAssumed Answered

Macro - Delete & Set Cust Properties in a Model from the Drawing

Question asked by Dan Kelly on Aug 4, 2016
Latest reply on Aug 16, 2016 by John Stoltzfus

Hi All,


I have a marco which runs through all our drawings and changes some of the Custom Properties in the drawings.


We would also like to Delete and Set some of the Custom Properties within the model which is driving the Drawing (These models are in various different folders and will me a nightmare run through otherwise.


Currently trying

     bool = swCustProp.Set("$PRPSHEET:" + "Material", " ")

     bool = swCustProp.Delete2("$PRPSHEET:" + "Material")

     bool = swModel.DeleteCustomInfo2("", "$PRPSHEET:" + "Material")


I only seem to be able to delete the custom propertis in the drawing.  Is this possible, could anyone give me the correct code to do these commands?