SWit and SWupBB

Discussion in 'SolidWorks' started by Markku Lehtola, Dec 19, 2005.

  1. Hi all,

    and very merry xmas.

    SWit - free custom property editor has a new release, 3.11, especially
    for XP users :)

    SWupBB - PDF Updater, important information, if you're using SW2006
    sp2.1 SWupBB is not working due to the problem in SW API, this will be
    fixed in sp3.0
    --

    regards

    Markku Lehtola

    www.markkulehtola.net
     
    Markku Lehtola, Dec 19, 2005
    #1
  2. Markku Lehtola

    SW Monkey Guest

    Thanks Mark for the update. I played around with SWit a couple of
    months ago, but I had the problem below. The new version also does
    this.

    Im having problems getting a new number from the number txt file. I
    didnt modify anything in the default file, kept the 999 starting
    number.

    I get the message

    "Error when trying to add a new number to the database".

    Any ideas why?
     
    SW Monkey, Dec 20, 2005
    #2
  3. Not enough rights to the file/folder (Windows user account rights)? Or
    did you save it and used something else (like unicode) than ANSI text as
    save format (then it will not work)?

    Is your file path pointing to the right place? You can check it out with
    registry editor (Run-regedit), you should find the right path for your
    file from:

    [HKEY_CURRENT_USER\Software\VB and VBA Program
    Settings\LehtolaSoftWare\SW], keyname is "DrawingNumberFile"

    --

    regards

    Markku Lehtola

    www.markkulehtola.net
     
    Markku Lehtola, Dec 20, 2005
    #3
  4. Markku Lehtola

    SW Monkey Guest

    Thanks for the quick reply.

    I just checked the registry settings, correct path shows (see below).
    The file is on my local drive, and i am an admin on my machine, so I
    should have rights to this file.

    C:\Program Files\SWit for SolidWorks\drawing_no_database.txt

    I also tried resaving the file as ANSI, although I never changed this
    file before.

    Any other suggestions ?
     
    SW Monkey, Dec 20, 2005
    #4
  5. Nothing much, maybe you should try to export settings, uninstall and
    then re-install. But my guess is that it doesn't help, so can you email
    your settings (use the export settings tool in side SWit) for me so I
    could run some tests?

    --

    regards

    Markku Lehtola

    www.markkulehtola.net
     
    Markku Lehtola, Dec 21, 2005
    #5
  6. Markku Lehtola

    SW Monkey Guest

    Am I suppose to setup anything else with the drawing number? Maybe
    thats what im doing wrong? I read the PDF file, and it says only
    change the prefix for the number, nothing else. Is this correct?
     
    SW Monkey, Dec 21, 2005
    #6
  7. No, it says that you can change prefix/suffix/formatting, and that you
    can do from Settings page. Do you mean the settings or the txt file? You
    can of course use any settings that you can find from the Settings page.
    You can only change the starting/last number IN txt file and the format
    should be plain number or number with zeroes at the beginning (9999,
    0012000). Please tell me what's you goal, it's much easier to help that
    way. What you have in your txt file right now and what are the settings
    for numbering inside SWit?

    --

    regards

    Markku Lehtola

    www.markkulehtola.net
     
    Markku Lehtola, Dec 22, 2005
    #7
  8. Markku Lehtola

    SW Monkey Guest

    SW Monkey, Dec 30, 2005
    #8
  9. Those settings work for me.

    After the first line:

    999;property1;property2;date;designer;filename

    you should have one empty line (if not press enter at the end of the the
    first line and save the file as ANSI text). If there's more than one
    empty lines you have to delete them.

    The simplest text file that you can have is (property1 etc. texts are
    not required, they are there just to tell what's inside the file):

    999
    <empty line>

    So, please check out if your text file has one and only one empty line
    after the number.

    --

    regards

    Markku Lehtola
    Certified SolidWorks Professional (CSWP)

    www.markkulehtola.net
     
    Markku Lehtola, Dec 31, 2005
    #9
  10. Markku Lehtola

    SW Monkey Guest

    Yep, the file is ok. Like I said, I didnt even modify the file from
    the zip file I downloaded.

    Does this only work with certain versions of SolidWorks? Im using SW
    2004.
     
    SW Monkey, Jan 3, 2006
    #10
  11. Then I'm pretty much out of ideas. Can you try it with another pc or SW?
    Is other stuff working fine (if you use it without the "get new" button)?
    That might be the reason, like it's said in the readme.pdf I have really
    tested it only with 05 and 06...I know that dimension linking is not
    working with 04 or older versions, but the other stuff..just don't know
    and don't have a "clean" pc with 04 to test with either.

    --

    regards

    Markku Lehtola
    Certified SolidWorks Professional (CSWP)

    www.markkulehtola.net
     
    Markku Lehtola, Jan 3, 2006
    #11
  12. Read the code again...the problem might also be that for some reason
    SWit can't open the locker file (locker.txt). This is required when
    asking the next free drw number. I'll try to change the code a bit
    tomorrow or asap...


    --

    regards

    Markku Lehtola
    Certified SolidWorks Professional (CSWP)

    www.markkulehtola.net
     
    Markku Lehtola, Jan 3, 2006
    #12
  13. changed the code little bit (and fixed couple minor bugs related to
    forms and their unloading), can you test this for me?
    www.markkulehtola.net/SWit.zip

    Zip includes only .exe, replace the old one with this one and try...

    --

    regards

    Markku Lehtola
    Certified SolidWorks Professional (CSWP)

    www.markkulehtola.net
     
    Markku Lehtola, Jan 5, 2006
    #13
  14. Markku Lehtola

    SW Monkey Guest

    Thanks Markku.

    Sorry I took so long to reply, I was out of town, just came back today.

    I tried the new .exe, and I get a different message when trying to "Get
    New" number. The message is "Run-time error '13' Type mismatch".
     
    SW Monkey, Jan 10, 2006
    #14
  15. Can you send me your settings (export to .reg) and drawing number file,
    otherwise this is just guessing what might be wrong. Anyway, while
    exploring the code I found couple other problems that are fixed in 3.12
    (just released).

    --

    regards

    Markku Lehtola
    Certified SolidWorks Professional (CSWP)

    www.markkulehtola.net
     
    Markku Lehtola, Jan 11, 2006
    #15
  16. Markku Lehtola

    SW Monkey Guest

    Just replacing the .exe of 3.12 didnt work. I uninstalled and
    installed the lastest version and everything seems to work fine with
    the number generator. Thanks :)
     
    SW Monkey, Jan 12, 2006
    #16
  17. Hmm, the single .exe was little different from the released one, but
    nice to hear that it finally worked for you. good to know also that it
    works with 2004.

    --

    regards

    Markku Lehtola
    Certified SolidWorks Professional (CSWP)

    www.markkulehtola.net
     
    Markku Lehtola, Jan 12, 2006
    #17
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.