4 Replies Latest reply on Jul 9, 2015 3:34 PM by Adrian Velazquez

    Drawing Custom Properites, Calling Part Custom Properties

    Derek Eldridge

      I've been searching for an answer to this for years, and now have spent hours again, looking for a solution. Every instance of this quesion that I have found in the forums does not answer the true question.

       

      Drawing Custom Properties can call Specific File Properties from a part shown on the drawing, such as: "SW-Mass" , "SW-Density" , "SW-Material". This is done by placing the following syntax "SW-Material@Part1.sldprt" into a Drawing Custom Property Field. (The "Part1.sldprt" needs to be replaced with the Part file name. I have not found a way to set this in a template where the Part File Name updates. That's a secondary question here.)

       

      The primary question is, how can I call other Part Custom Properties such as "Description@Part1.SLDPRT"? It doesn't seem to pull other properties the same.

       

      Before you give me the wrong answer. The Wrong answer has to do with calling the Part Custom Properties ON THE DRAWING. This is done using the following syntax: $PRPSHEET:"Description"  . This I know works to import the Description from the "Model in view specified in sheet properties". While this is a great way to populate the Drawing title block, it does not populate the Drawing Custom Property that is then used when checking the part into the PDMWorks Vault.

       

      The end game, is to populate the Drawing Custom Property with the Part Custom Property "Description" in order to populate as a searchable field within the PDMWorks Vault.

      Has anyone figured this out yet?

       

      PS: Yes, Material is messed up in the sample pictures, because "SW-Material@Part1.SLDPRT" was replaced with the B18.3.4M - 3 x 0.5 x 6 SBHCS --N 18-8 SS and the "Part1.SLDPRT" does not update to the new part in the drawing template. That has to do with the secondary question. Material on the Sheet is looking at $PRP:"Material" to import from "Current document". It's a little wired, considering Part1 does not show up in the Find References.

        • Re: Drawing Custom Properites, Calling Part Custom Properties
          Jamil Snead

          You may need a macro to accomplish what you are after. I don't do that exact same thing but I use a macro to pull info from the drawing file name and assign it to the drawing custom properties. I don't know for sure but I think a macro could probably also pull the info from the "Model in view specified in sheet properties" and then assign it to drawing custom properties. You would need to manually run the macro, so it isn't as automatic as you may want, but you could actually make the macro do all that and save, and then assign the shortcut ctrl+s to run the macro, so it will update the drawing custom properties based off of the model in it every time you save.

          • Re: Drawing Custom Properites, Calling Part Custom Properties
            VENKATESH S.

            YOU CAN ACHIEVE IT THROUGH "PROPERTY TAB BUILDER"

            LOCATION:

            START > ALL PROGRAMS > SOLIDWORKS 2015 > SOLIDWORKS TOOLS > PROPERTY TAB BUILDER

             

            NOTE:

            YOU'VE TO CREATE FOR BOTH PART AS WELL AS DRAWING. IF THE SAME PROPERTIES FOR BOTH PART AND DRAWING. FIRST CREATE PART PROPERTTIES AND SAVE THE FILE(.prtprp). ONCE AGAIN OPEN THE SAME FILE IN PROPERTY TAB BUILDER AND CHOOSE THE TYPE AS DRAWING AND SAVE THE FILE(.drwprp)

            Untitled.png

            THEN PUT THOSE TWO FILES LOCATION IN

            OPEN "SOLIDWORKS" > "OPTION" > "FILE LOCATION" > "CUSTOM PROPERTY FILES" > CLICK "ADD"> SET THE FILE LOCATION OF CUSTOM PROPERTY FILES.

            Untitled2.png

            • Re: Drawing Custom Properites, Calling Part Custom Properties
              Kevin Chandler

              Hello,

               

              Not at work right now, so no SW in front of me to test my theory, but it's simple enough for you to try, if you wish.

               

              In your drawing's properties dialog box, for "Description", try entering $PRPSHEET:"Description" in the Value column.

              I'm thinking this will force the drawing to go get the referenced part/assembly's Description value and assigned to the drawing's Description.

              Plus, it's dynamically updated and it's not hard-coded to any particular part/assembly name.

               

              I believe this method works for the "SW-" type properties, so I'm hoping it will work for your situation as well.

               

              Cheers,

               

              Kevin

               

              P.S.:

              If my suggestion fails, try putting an equal sign before the "$" to turn it into an equation.