3 Replies Latest reply on Jan 14, 2013 5:44 AM by Artem Taturevych

    Change Custom Property template via API

    Mika Malo



      I have built few different custom property templates with Property Tab -builder. Each suites for different purpose parts and assemblies.

      I am looking a way to apply and change proper template via macro but can't find any info of the matter.







        • Re: Change Custom Property template via API
          Artem Taturevych

          The template is nothing but XML files. Something like the following:


          <?xml version="1.0" encoding="UTF-8"?>



              <GroupBox Label="Groupbox" PropName="Groupbox2" DefaultState="Expanded">

                <Control Label="Textbox" PropName="CheckedBy" ApplyTo="Config" Type="TextBox" DefaultValue="Admin" Mode="Text" />




          So you can easily create your templates. Then just place it into a template location: File Locations->Custom Property Files. In order to refresh the task pane just switch the pages via the SldWorks::ActivateTaskPane.


          So the combination of SolidWorks API and XML readers/writers will do the job.



          Artem Taturevych

          Application Engineer at Intercad


          Tel: +61 2 9454 4444