easy way to add custom property to a bunch of templates

Discussion in 'SolidWorks' started by Not Necessarily Me, Apr 1, 2005.

  1. Is there an easier way to add custom properties to my template files without
    opening each one and adding them?
     
    Not Necessarily Me, Apr 1, 2005
    #1
  2. Not Necessarily Me

    CS Guest

    Only through macros. If you only have acouple of templates it wouldn't
    be worth it, but if you have a larger group and don't have network
    originating templates it might be worth the time.

    Use dsoFile.dll Google it in this NG it has been discussed many times
    with examples. It can edit a file's custom properties without opening
    the file in SW, very fast. It doesn't do configuration specific
    properties though those you would have to open in SW and edit them
    using SW api
     
    CS, Apr 1, 2005
    #2
  3. Answered my own question:

    Actually I found an easier way. Right click on the file in explorer and
    select PROPERTIES. Here you can add custom properties a heck of a lot
    faster than opening each file in solidworks.

    Thanks
    Jeff
     
    Not Necessarily Me, Apr 1, 2005
    #3
  4. Not Necessarily Me

    Sporkman Guest

    I'll be darned -- that's a new one on me. At first I thought that you
    must be talking about SolidWorks Explorer, but just to be sure I tried
    it with Windows Explorer and, sure enough, there is a "Custom" tab in
    the Properties dialog box. It has all the Custom Properties listed
    there and a way to add new ones with Name, Type and Value inputs.
    Unfortunately the tab doesn't appear when you select multiple template
    files, but it's a shortcut worth remembering anyway. Learn something
    new every day . . . thanks Jeff.

    'Sporky'
    www.h2omarkdesign.com
     
    Sporkman, Apr 2, 2005
    #4
  5. Not Necessarily Me

    Cliff Guest

    I expect that you'd best test the types of properties and
    types of values, etc. to assure that it really works (for each
    set) with the applications software (SW) and does not
    produce files that SW (or any of it's routines) considers corrupt.
    IF you cannot tell the difference from within SW (as to
    how the data was created/added/modified/deleted) you
    may be safe.

    If anything ever goes wrong you may have parts that are
    "unsupported", though file headers (where this data is stored)
    may be low risk.
     
    Cliff, Apr 2, 2005
    #5
  6. Not Necessarily Me

    John Layne Guest

    Just tried it too, shame you can't work with Configuration specific
    properties.

    You might want to look at these two utilities.
    1/ Custom Property Propagater http://www.customsolids.com/
    2/ Custom Property Manager http://www.kentcontract.com/swmacros.shtml

    I use No2 everyday saves me lot of time. No 1 is incredibly useful when
    needing to update several files / folders.

    Regards

    John Layne
    Solid Engineering Ltd
     
    John Layne, Apr 3, 2005
    #6
  7. Task Scheduler should do it, too.

    Evan
     
    Evan T. Basalik, Apr 5, 2005
    #7
  8. Jeff, here is a link to a free utility that will change, delete, or
    add only custom properties (won't work on configuration specific
    properties)in bulk. I use it on every project, many of my custom
    properties are linked to my drawing templates, so it saves a lot of
    time. E-mail me if you have any questions.

    Mark


    http://www.trimech.com/solutions/techsprt-free-utilities.htm
     
    Mark McCumber, Apr 5, 2005
    #8
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.