6 Replies Latest reply on Mar 21, 2017 8:31 AM by Scott Stuart

    Macro to add "gross" area to custom properties

    Chris Pettit

      Can someone please help me with a macro that would add the following custom property to a solidworks part file?

      Property Name = "Gross Area"

      Value = "D1@sketch1" multiplied by "D2@sketch1"


      Basically I want to know the overall amount of material used to make a bracket or plate. See image.footprint.JPG


      I have downloaded the macro "FaceProperties" posted by Feroz Mahomed on Sept 8, 2015 then tried to add this myself but I cannot figure out how to pull these two dimensions into the macro. Here is the thread for that macro: https://forum.solidworks.com/message/522449


      Thank you in advance for any help you can provide.

      Chris Pettit.