13 Replies Latest reply on Aug 16, 2016 8:16 AM by John Stoltzfus

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

    Dan Kelly

      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?