Hacking the toolbox database

Hi I need  to add the range of  BS 1806 O-Ring sizes  to BSI_DATA_ORINGS_TYPE1 table 500 sizes!  Idon't want to add each one one by one so I exported the the table to excel and added the sizes. See attached excel file. I have  imported it back into excel using the wizard. But I cannot see the addtional configurations is there another  table I need to  manipulate?

Are there any links for how the toolbox database is structured? Are there any PDF doc on doing these things? And please don't tell me to use my VAR they are about as useful as an chocolate teapot.

Also i was wondering if solidwork are ever going to open source it and  allow users to contribute more toolbox items to the database?

Thanks

SolidworksToolbox
Answers 11
SF
SF 2011-11-03 Best Answer

Sammy,

You can modify the toolbox. 

In SolidWorks, click Tools > Options > Hole Wizard/Toolbox > Configure, and then click 4 - Permissions

Then Modify what you need add/remove hardware, Delete, etc.

I have messed with this very little, but it can be done. I hope this helps you out.

This site gives a bit more information, about modifying it

http://help.solidworks.com/2011/English/SolidWorks/toolbox/AllContent/SolidWorks/NonCore/Toolbox/HIDD_TOOLBOX_PERMISSIONS.html

Russ Saari

SF
SF 2011-11-03

Sammy,

When you import this back into the Access file under the "enabled" column does it show -1 or yes? It should be -1, sometimes when I insert back I would get yes in that column so you will need to change every line.

Make a copy first before doing anything to this file. Solidworks does not want the user to modify this file. But you are trying to had standard sizes to to a standard that Solidworks has not added themselves so that leaves us to do. The link that Russell posted is what Solidworks wants us to do but this way we end up with several more standards. You cannot add sizes to the standards by configuring the toolbox you first have to make a copy and then you can add more sizes to the copy you made.

I don't want to have 2 copy's of the same standard, I modify the Access file to add the standard sizes that is not there already.

SF
SF 2011-11-04

Hi Tony the value true is equal to -1, but  it is something to do with how the reference number is related to the part.

Which is why it doesn't work. I am wondering how the tables drive the part in terms of the reference number. I understand that the way toolbox is setup to only add one primary key row at a time is because the OBDC connection is a heap of rubbish, As it has to transpose the tables from access to VBA array and back again. Fricking hated coding vba arrays to access as it was easy to screw up cause of transpose. Please note I am not  much of a coder or database guru I only understand the basics.

What  I would like to do is save O-rings_BSI.sldprt as O-rings_BSI1806.sldpart and  have a table  BSI_ORINGS_TYPE1806 with the  sizes I have posted but as I say I am not sure how the reference number value column works with the part.

What really annoys me is we pay extra for the library with professional  and  it dosn't lend it self to being  modified or updated with additional standard sizes. And  we cannot install the toolbox as a configured module inside the vault. Currently am dragging tool box parts in and saving them with as a new  part and checking them into PDM with the properties filled out as specified to Drive the BOM.

I hope the new database is setup in something other than access but i suspect it  won't. I heard a lot of  good things About IBM Universe database faster and more reliable than Oracle data base!!!

JG
JG 2011-11-04

Sammy,

You can add or modify the SW toolbox database.

But make sure you make a back-up of the file before you do anything to this.

I modified some of the toolbox hardweres and I added my own parts with different configurations to the database and it is working fine. You must know the structure of the database to do this.

What's the size you are adding?

I am unable to access your attachement

SF
SF 2011-11-04

BS-1806 :1989  yes i know it is an old standard but the company want to keep using this standard. The reference number is what  confuses me, how dose it work there is no help files on how toolbox application uses SQL calls on the access tables and fills the variables to drive the part.

SF
SF 2011-11-04

Sammy,

First off I would just create this part with all the configurations in your design library. You will have less problems in the future. I only modify the toolbox to add holes to the hole wizard that is not there and I have copied all the parts that we use from the toolbox to our own design library, you will find that most people on here create their own design library. If you still want to have this oring in the toolbox here are your steps to do it:

1. Copy the part file o-rings_bsi and name the new file o-rings_bis1806.

2. Copy the BSI_Cfg_ORINGS_TYPE1 table and name the new table BSI_Cfg_ORINGS_TYPE1806.

     a. under the ValueList column change the "4518" to "1806".

3. Copy the BSI_DATA_ORINGS_TYPE1 table and name the new table BSI_DATA_ORINGS_TYPE1806.

     a. this is were all your new sizes in your spread sheet will be.

4. In the BSI_TYPE_ORINGS TABLE copy and paste the first line.

     a. anywhere you see "4518" change it to "1806".

     b. under the filename column change bsi\O-rings\O-rings_BSI.sldprt to bsi\O-rings\O-rings_BSI1806.sldprt

     c. under the ConfigurationTable column change +Cfg_ORINGS_TYPE1 to +Cfg_ORINGS_TYPE1806.

     d. under the DataTable column change +DATA_ORINGS_TYPE1 to +DATA_ORINGS_TYPE1806.

SF
SF 2011-11-08

Just up graded to 64 bit i will see how this pans outs

SF
SF 2011-11-09

This should have nothing to do with being 64bit. Let me know if ou need anymore help on this. I did create an 1806 o-ring with the steps that I listed above to make sure I was right.

SF
SF 2012-03-16

Tony, sorry to hijack the thread but I see this is unanswered and is exactly what I am trying to do.  Solidworks 2012.  We use a lot of undercut head flat head screws.  I modified copied the part C:\SolidWorks Data\browser\Ansi Inch\bolts and screws\machine screws (countersunk)\flat head screw_ai.sldprt and modified the appropriate fields in the database per your posting above but the new hardware doesn't show up in my toolbox.  Any thoughts on what I am doing wrong?

Just out of curioiusty, I moved the database and reoponed to the toolbox to verify that I am referencing the toolbox that I am working on, and it could not open because the database was missing so I am good there.  I then decided to check another thing and I went into Standards and changed the OrderID on Pem to 2 so it would come up at the top of the list (we use ANSI inch and PEM inch the most) but that didn't seem to change anything.  Why aren't my database changes reflected in the toolbox?

SF
SF 2012-03-16

Hello Steve,

First your path C:\SolidWorks Data\browser\Ansi Inch\bolts and screws\machine screws (countersunk)\flat head screw_ai.sldprt does not match my path of C:\SolidWorks Data\browser\Ansi Inch\bolts and screws\flat head screw_ai.sldprt. Do you create another folder called "machine screws (countersunk)"?

What is the new name of the copied part?

What tables and fields did you modify?

SF
SF 2012-03-16

First make a backup copy of the database:

1. If you are starting with 82° head copy the table AI_Cfg_BS_FHMS and name the new one like AI_Cfg_BS_FHMS2.

2. Copy the table AI_DATA_FHMS and name the new one AI_DATA_FHMS2.

3. Copy the table AI_DATA_FHMS_LENGTHS and name the new on AI_DATA_FHMS2_LENGTHS.

4. Open the table AI_TYPE_BS, copy and paste the line that starts with AI_BS_MCH_CH with the name FLAT HEAD (82)

5. In the new line that you just created under the feilds ConfigurationTable and DataTable changed that read like the new tables you created above. Also under the feild Filename change that to your new file name.

6. Open your new "AI_Cfg_BS_FHMS2" table and change the "AltDataSource" fields to match your new data tables that you created.

7. Change your data in each of the Cfg and Data tables for what you need.

Note, I did so this process with 2011. I am not on 2012 yet.;