Instability of custom properties saved using a VB program
Instability of custom properties saved using a VB program
(OP)
I first noticed this issue in SW2007 SP3.0 but it could have been there before. In SP5.0 it is still there. It occurs quite often but not all the time and it is unpredictable. What happens is I create a model then I run my program to input the values of its custom properties like description, material, finish etc. My model is part of an assembly and when I create the assembly drawings, its properties show nicely in the BOM. I also create a drawing of the model and its properties show in the title block. I save averything, save drawings as PDFs as well and close SW.
When I open the assembly drawing next time I notice that some of the lines in the BOM are empty. I open the corresponding models and their custom properties are gone. Their drawings have the fields in the title block empty.
I go through the same steps again and when I restart SW and open the assembly drawings the same BOM lines are empty again.
I go through the same steps again but after I define the properties (using my VB program) I verify that the properties are there, using the menu File/Properties.
(or in some cases I create and fill custom properties "manually" without the aid of a macro or program).
Then I check the assembly drawing again and close SW.
Now when I reopen the assembly drawing the lines are not empty anymore.
It occurs with some of the parts in SW2007 x32 and x64. It was the same on my old computer and my new computer so it's not hardware dependent.
It's so strange it is unbelievable.
When I open the assembly drawing next time I notice that some of the lines in the BOM are empty. I open the corresponding models and their custom properties are gone. Their drawings have the fields in the title block empty.
I go through the same steps again and when I restart SW and open the assembly drawings the same BOM lines are empty again.
I go through the same steps again but after I define the properties (using my VB program) I verify that the properties are there, using the menu File/Properties.
(or in some cases I create and fill custom properties "manually" without the aid of a macro or program).
Then I check the assembly drawing again and close SW.
Now when I reopen the assembly drawing the lines are not empty anymore.
It occurs with some of the parts in SW2007 x32 and x64. It was the same on my old computer and my new computer so it's not hardware dependent.
It's so strange it is unbelievable.






RE: Instability of custom properties saved using a VB program
RE: Instability of custom properties saved using a VB program
RE: Instability of custom properties saved using a VB program
RE: Instability of custom properties saved using a VB program
http://www.EsoxRepublic.com-SolidWorks API VB programming help
RE: Instability of custom properties saved using a VB program
I am using an exe application written in VB6 and which worked flawlessly till know. I rewritten it recently to include latest updates to SW API but with no effect.
I have rebuild included in my application.
I told you it's hard to believe. I don't expect a solution. When it will happen next time I will post my files.
RE: Instability of custom properties saved using a VB program
Now our parts are automatically saved with each properties update. On drawings I have to manually save them. No issues anymore.
The reason I do not automatically save the drawing is because the SolidWorks dialog would popup behind my Visual Basic macro dialog in the being. Users would sit idol for hours waiting for SolidWorks to save. I could change this, but our people are trained now.
Bradley
SolidWorks Pro 2008 x64 SP1.1
PDM Works, Dell XPS Intel(R) Pentium(R) D CPU
3.00 GHz, 5 GB RAM, Virtual memory 12577 MB, nVidia 3400
e-mail is Lotus Notes