SolidWorks API

Discussion in 'SolidWorks' started by MechEng, Oct 20, 2004.

  1. MechEng

    MechEng Guest

    Hi

    Does any of you have any idea how I write custom properties directly
    to SolidWorks files, without having to open them in SolidWorks first
    ???

    Any help would be greatly appreciated...
     
    MechEng, Oct 20, 2004
    #1
  2. Does any of you have any idea how I write custom properties
    directly
    Get "dsofile.dll" frim http://support.microsoft.com/kb/q224351/,
    which gives you access document properties through the OS, without
    having to open the file.
    The bad news are:
    1) you won't be able to access configuration-specific properties
    2) some earlier messages on this group say it doesn't work with Win
    XP. Didn't try...
    Philippe Guglielmetti - www.e-systems.ch
     
    Philippe Guglielmetti, Oct 21, 2004
    #2
  3. Devon T. Sowell, Oct 21, 2004
    #3
  4. Works here too XP Pro

    Corey

     
    Corey Scheich, Oct 21, 2004
    #4
  5. MechEng

    MechEng Guest

    Thanks a lot... I'll have a go at it, as soon as possible... :-D
     
    MechEng, Oct 23, 2004
    #5
  6. MechEng

    P Guest

    Any idea why?

    ....snip
     
    P, Oct 24, 2004
    #6
  7. 24.10.2004 14:38:39
    Yup : they are stored in different places. SW Files use the MS "OLE
    Structured storage" format, which has one specific location for file
    properties, then a structure of file-specific data. SW files have one
    block for each config, and config properties are stored in it, out of
    the reach of dsofile.dll...
    I used http://www.codeproject.com/macro/ssfview.asp to investigate a
    bit on this.
    Philippe Guglielmetti - www.e-systems.ch
     
    Philippe Guglielmetti, Oct 25, 2004
    #7
  8. Were there copyrights on the dsofile.dll?

    I wonder what it would take to edit it to be config specific.

    Corey
     
    Corey Scheich, Oct 25, 2004
    #8
  9. Corey Scheich wrote in message
    You don't have to edit it, you can use the Microsoft Structure
    Storage API (http://msdn.microsoft.com/library/default.
    asp?url=/library/en-us/stg/stg/structured_storage_reference.asp) or
    the "structured storage library" for Borland C++ and Delphi I found
    on the net (http://www.plasmatech.com/storage.htm)
    Philippe Guglielmetti - www.e-systems.ch
     
    Philippe Guglielmetti, Oct 26, 2004
    #9
  10. Kewel I will look into that sometime.

    Corey

     
    Corey Scheich, Oct 26, 2004
    #10
  11. MechEng

    P Guest


    The plasmatech demo reads the configuration specific properties. This
    bears some looking into.
     
    P, Oct 27, 2004
    #11
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.