1 Reply Latest reply on Dec 28, 2016 7:14 PM by Nilesh Patel

    Add property

    Antonio Cavka

      Hi all,

      Is there a macro that i can run in a assembly and that can copy assembly properti in a different part properti in a part in that assembly when that assembly is open.

      I want that "Broj standarda/crteza" from  assembley to display as "Veza sa" in all parts and subassemblys that that assembly has, but it should affect only high level parts and subassemblys and not parts that are contained in subassembly in that assembly








        • Re: Add property
          Nilesh Patel

          Hi Antonio,


          Try attached macro. I did not have to work too hard as I already had similar macro.


          One thing I have noticed that your final assembly and top level components, both contain a custom property 'Broj standarda/crteza'. If someone accidentally runs the macro in a sub assembly, it will copy the value of sub-assembly custom property 'Broj standarda/crteza' into its top level components, I believe you don't want this to happen. If you use different names for final assembly and sub assembly then you can use these names to make sure that macro cannot be run in a sub-assembly. If you don't use a specific name for final assembly then you can use any custom property or anything that is different in the final assembly to make sure that macro can be run in final assembly only.


          The macro is created in SolidWorks 2016, so you may need to re-reference libraries if you are using different version of SolidWorks. Let me know if you run into any trouble.