2 Replies Latest reply on Aug 16, 2012 11:12 AM by Hollie Johnston

    Drawing inheriting part name (via data card)

    Hollie Johnston

      Hi,

      I'm in the process of setting up a data card for drawings. I've already set up my part data card, and would like drawings created from parts to inherit the file name of that part. The part name is created as a serial number. Is it possible to do this? If so, how?

       

      Thanks,

      Hollie

        • Re: Drawing inheriting part name (via data card)
          Tim Read

          Hi Hollie,

           

          If the part already exists and has the correct filename (serial number) then when the drawing is created it should take that name as the default name for the drawing.

          This may not happen if you have some settings to the contrary like assigning the filename of the drawing - see EPDM Options in SolidWorks Addin Menu. You must let SolidWorks 'decide' what to name the drawing and not EPDM.

           

           

          If you just want to rename the drawing to match the part then that can de done as a combination of passing variables between the part and the drawing and then using a Dispatch script to rename the drawing at an appropriate time in your Workflow.

           

          Note the 1st and 3rd lines for 'sharing' the variables - understand that the variablies in the drawing are ONLY updated if it is checked out, regenerated and saved - then checked in. Meaning that your rename (if done using Dispatch) has to occur at the earliest after your first checkin of the drawing.

           

          Tim

          Capture.PNG