Working with files

Discussion in 'SolidWorks' started by Louis-Philippe Salin de l'Etoile, Oct 31, 2003.

  1. Hi,

    is it possible, using a VBA macro, to directly modify a .sdlprt file without
    actually opening it? Is it possible using C# or C++?
    We have a lot of modifications to do and opening each file slows down the
    process quite a bit!

    Louis-Philippe
     
    Louis-Philippe Salin de l'Etoile, Oct 31, 2003
    #1
  2. The only thing you can modify without opening the file are Windows standard
    file properties,
    normally accessed by ModelDoc::SummaryInfo API. You can do this using
    "dsofile.dll"
    make a search on this.
     
    Philippe Guglielmetti, Oct 31, 2003
    #2
  3. Your only other option is to have a session of SolidWorks running in the
    background making these changes, but it will still use system resources. It
    may speed up the process if the graphics don't need to be calculated, but i
    doubt it would be much. You could run it at night or over the weekend if no
    user interaction is needed.

    SldWorks::Visible = False
     
    Corey Scheich, Oct 31, 2003
    #3
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.