GoToMeeting
Go to meeting:

Technical FAQ

20231117
message "There are no items in this BOM. Please check the MAKE_BUY..."

Description

Running ExcelBOM a message informs that accordingly to the parent MAKE_BUY or filter, the BOM is empty.

There are no items in this BOM. Please check the MAKE_BUY state of the parent and/or the condition <condition> applied in the filter.

Solution

The BOM criteria could be actually wrong or some field (e.g. UM ) could be missing in the DOCUMENT table.

Try to run Admintools to update the database schema against missing fields.

 

20230615
Error "Cannot create ActiveX component" after R23 installation on SW2023

Description

While running 64bit applications based on Solidworks functionalities (such as Conversion Wizard) the user may experience an error like

Cannot create ActiveX component

This is due to a R23 installation (previous than sp1.3) that may have created an incorrect registry key value in


HKEY_CLASSES_ROOT\CLSID\{b2f1524f-6cfe-4386-b472-ab1148dea4f1}\InProcServer32

e.g.

C:\Program Files (x86)\MechWorks\MechWorks_Pdm\bin\vs2019_x64\DBWorks.dll

Solution

R23sp1.3 fixes the issue; for previous R23 sp, the removal of the above registry key fixes the issue.

To remove the key, the user can run (as Administrator) a simple .vbs such as follows.

  1. suppose to create the c:\temp\R23Fix.vbs file containing the following code:
    Set WshShell = CreateObject("WScript.Shell")
    on error resume next
        value = WshShell.RegRead("HKCR\CLSID\{b2f1524f-6cfe-4386-b472-ab1148dea4f1}\InProcServer32\") 
        If InStr(value, "DBWorks.dll") > 0 Then
            WshShell.regdelete("HKCR\CLSID\{b2f1524f-6cfe-4386-b472-ab1148dea4f1}\InProcServer32\" )
        End If
    If Err then 
        WshShell.Popup "Key deletion error" & vbCrlf & Err.Number & " " & Err.Description, 5, "Fix", 0 OR 16 
    Else
        WshShell.Popup "Key deletion completed", 5, "Fix", 0 OR 64
    End if
  2. Open a command prompt as Administrator
  3. run the script:
    start "C:\temp\fixR23.vbs"
20230412
Missing BMP

Description

after updating to R23 a message similar to the following is shown at PDM startup:

The message is due to the fact a further check has been implemented in R23 about 4K monitors icon formats.
In R20 you simply didn’t see the icons in the user interface;
in R23 it is reported any missing large format icon through the Activity Console;
typically it means you have the LowRes icon but you’re missing the 4K format icon.

More, in R23, all the required (default) icons are distributed in both formats, so if you see the message you must have an old DBWORKS_SERVER folder with (maybe not used anymore) icons in LowRes format only.

Solution

You can download from here the missing icons; just unzip the icons into the <GPP>\SCHEMA\IMG\ folder.

20230407
ConversionWizard issues

Description

ConversionWizard is not able to recognize the installed CAD version, so an error message is shown:

this issue is reported by R23 sp1.0 only  on Solidworks 2023 and Solid Edge 2023 file types only.

Solution

The issue has been fixed in R23 sp1.1.

more, Solid Edge 2023 update4 is mandatory to use the ConversionWizard from StandaloneClient

20230407
ConversionWizard from StandaloneClient and Solid Edge 2023

Description

Running the ConversionWizard from MechworksPDM R23 sp1.0 the CAD is not recognized even if installed:

Cannot determinate installed CAD version, exiting.

 

Solution

Siemens released the following bugfix in Update4 of Solid Edge 2023
PR 10628404: Design Manager from the Windows Start menu will not run using a floating license
and this allows the ConversionWizard to properly work with StandaloneClient (R23 sp1.1)

20211105
Error while running OnAddDocument.LST or Dataentr_generic.LST scripts

Description

after an update you may see the following error while registering a generic document into the PDM (having enabled OnAddDocument.LST or DataEntr_Generic.LST)

This is due to a library update happened in R20sp0.5 (dated 20210730)

Solution

customized script case

if you customized the script, you’ve to edit them and replace the occurrence of this code

If Not LoadAllInput() Then

with this

If Not LoadAllInput("0") Then

default scripts case

if you’re running default script you can just copy the most up to date version of them from

<installFolder>\LST\DEMO_LST\

to

<GPP>\LST\

folder.

20211105
Error on OnAddDocument.LST or DataEntr_Generic.LST

Description

After an update, the below error could be raised when registering a generic document into the PDM (having enabled OnAddDocument.LST or DataEntr_Generic.LST):


This is due to an update of a system library happened in R20sp0.5 (dated 20210730).

Solution

Customized script

if you have customizations on OnAddDocument.LST or DataEntr_Generic.LST script files, you’ve to replace the code

If Not LoadAllInput() Then

with the following one

If Not LoadAllInput("0") Then

Default script

if you’re running default scripts, you can can just take the most up to date version from

<installFolder>\LST\DEMO_LST\

and copy into the

<GPP>\LST\

folder.

20211020
Support Ticket rules

To open a ticket on Mechworks Support you can send an email to support @mechworks.com
Here below is a list of things to consider to properly format the request email.

    1. Remove any unnecessary picture (logo/social/awards/events/whatever) from email signature before sending
    2. Cases (bug or inquiry) MUST contain logs.
      Please refer to our FAQ https://reservedarea.mechworks.com/faqs/create-logfile/ to enable PDM tracing mode and get all needed log files.
      Starting from R20sp1.0 we also improved our Capture MechWorks PDM Log script (available from your Start menu-Mechworks) to get all the client logfiles and make a zip of them. You then have to manually add DBWACLServer.log or LicenseManager.log if they apply to your case.
    3. If possible (highly encouraged), create a video showing the issue, adding audio or captions to explain keypoints.
      Videos are more useful than pictures and can be easily shared among the team, whereas the meeting cannot.
      Do not attach videos to emails; accepted way is to specify a link to download the video (from your filesharing system) or upload such video on our FTP (ask MW for further details).
      video must have the format

      <caseNumber>_<date><_N>.<extension>

      use <_N> if sending more than one video for the same case on the same date.
      Examples:

      50528_20211020.avi
      51456_20211018_1.wmv
      51456_20211018_2.wmv
      52774_20210912.mp4
    4. Please avoid several email follow-ups in a short time: rather, take more time to collect all the needed info/files, record a video, write a full description and then send your email.
    5. Cases have to be categorized. This must be specified in the email subject.
      Possible case types are:

      1. Inquiry: you ask a question to us.
      2. Bug: you made tests and against the expected behaviour (from your knowledge or MW documentation) it is actually a bug.
        To fix a bug we need to reproduce it on our systems: we expect you send us all the needed files/info to achieve this.
      3. Enhancement: it is a behavior not already implemented but that would be useful for the application.
        Enhancements have a cost: we will evaluate whether to do it, how to do and when.
        The reseller will be involved in this process though.
        Resellers are also kindly asked to provide a rough idea of the expected implementation, taking care of current product behavior and impacts of the new feature on it.
    6. When not sure, the default choice is inquiry; please note the time spent for investigating/understanding the proper type may cause a slowdown.
    7. Cases must be given a priority. This must be specified in the email subject.
      Possible case priorities are:

      1. Urgent: customer is not able to work (stuck); data can be seriously impacted; meeting may be required; a fix can be done with the next Beta versions.
      2. High: the issue is causing troubles; a fix is needed soon (next service pack); a workaround may be useful meanwhile (when possible).
      3. Medium: the issue is causing waste of time; annoying the customer but the work is not impacted; a fix can be done within the release life.
      4. Low: issue is not reproducible on demand or it has low impact (a fix can be done but no forecast is expected).

Expected email subject format

[RESELLER/CUSTOMER name] – type – priority – TITLE

Where
RESELLER/CUSTOMER: the name (uppercase) of the final customer (no need to specify LTD, INC, GMBH, AG, SRL, …) or reseller (if no customer is involved)
type: BUG/INQ/ENH
priority: Urg/High/Med/Low

Examples

[MICROSOFT] - INQ - Med - Admintools raise an error while doing upgrades
[APPLE] - BUG - High - CAD does not save anymore
[ACME] - INQ - Urg - Database is not reachable
[MW] - ENH - Low - provide help documentation in Klingon language
20210416
MS Windows Defender "Attack Surface Protection" (ASP) vs MechworksPDM

Windows Defender “Attack Surface Protection” (ASP) as many other antivirus software, could be the cause of many PDM issue when not properly configured.

The MsSense.exe process could block many other processes from accessing many files; as example, it could block processes around recursive check-in/approval operations – not being visible at first glimpse, but causing major inconvenience afterwards:

  • DBWACLServer not being able to set permissions (without throwing or logging any errors)
  • PDF creation being halted with no files or corrupt files being created
  • Related assemblies (parent/child) causing SWX to crash on next Save/Checkin

In case the PDF Master Drawing Mode is enabled, many possible things could go wrong.

 

To verify if ASP is actually the cause of reported issues about PDM just switch it off, leaving with no AV software at all.

Reading Microsoft’s docs, it seems that in case “ASP” is enabled, processes are running in some kind of a “sandbox-like” environment.

Unfortunately, it seems it is impossible to define ANY exclusions here; those were set for the standard Windows Defender “MsMpEng.exe” process, have no effect on the “ASP” functionality.

The following list is taken from Microsoft website advertising their product
(https://docs.microsoft.com/en-us/microsoft-365/security/defender-endpoint/attack-surface-reduction); it’s stated the ASP engine is able to:

  • Block executable content from email client and webmail
  • Block all Office applications from creating child processes
  • Block Office applications from creating executable content
  • Block Office applications from injecting code into other processes
  • Block JavaScript or VBScript from launching downloaded executable content
  • Block execution of potentially obfuscated scripts
  • Block Win32 API calls from Office macro
  • Use advanced protection against ransomware
  • Block credential stealing from the Windows local security authority subsystem (lsass.exe)
  • Block process creations originating from PSExec and WMI commands
  • Block untrusted and unsigned processes that run from USB
  • Block executable files from running unless they meet a prevalence, age, or trusted list criteria
  • Block Office communication applications from creating child processes
  • Block Adobe Reader from creating child processes
  • Block persistence through WMI event subscription

In case such list cannot be filtered or exclusions defined, obviously PDM/CAD processes could fail at several areas.

 

20201126
Excel BOM stopped working with BitDefender antivirus

Description

It may happens, on systems where BitDefender antivirus is installed, tha ExcelBOM stops working, raising a error like followings:

In general when it’s noticed with no PDM updates or scripts/parameters modification, the cause must be investigated towards automatic updates set for the operating system (Windows, Office365, WindowsDefender) and for the antivirus/antimalaware.

 

Solution

A new global exception defined for the following folder solves the ExcelBom issue:

C:\Program Files (x86)\Common Files\Mechworks

Remarks

You may encounter the same experience (PDM application not working as expected with no evident modifications), in such case please consider to set similar exceptions.

20200819
Error on starting PDM: the os is not presently configured to run this app

Description

After a Windows update (often due to a Microsoft365 update), at startup the PDM is stuck on the following error message

The operating system is not presently configured to run this application.

This because such update (e.g. Microsoft365 ver. 20204) changed the Access Driver to a version that the operating system is not able to manage.
Here is explained by Microsoft:
https://docs.microsoft.com/da-dk/office/troubleshoot/access/cannot-use-odbc-or-oledb

Solution #1

As suggested in the link above,  the solution is to reinstall the Access Driver

e.g. 2016 MS Access Database Engine Redistributable

 

Here is an example on how the driver can be modified in the process:

Solution #2

Starting from R17sp2.16 a parameter has been added to DBWConn.PAR file for avoiding the creation of Briefcase datasources.

SKIP_CREATION_BRIEFCASE_DSN  1

please refer to official documentation for further details.

20200529
Inventor 2020/2021 Full preview

Inventor 2020/2021

For Inventor 2020/2021 there’s no native support for the full preview so the Inventor Viewer must be installed as additional application;
please consider the following procedure is also for Inventor 2021, just replace “2020” with “2021” in the paths

Once installed, you’ve to manually copy and register as followings:

copy from

C:\Program Files\Autodesk\Inventor View 2020\Bin\InventorViewCtrl.ocx
C:\Program Files\Autodesk\Inventor View 2020\Bin\CommonLIB.dll
C:\Program Files\Autodesk\Inventor View 2020\Bin\en-US\InventorViewRes.dll

to the correspondent subpath of the Inventor 2020 installation:

C:\Program Files\Autodesk\Inventor 2020\Bin\InventorViewCtrl.ocx
C:\Program Files\Autodesk\Inventor 2020\Bin\CommonLIB.dll
C:\Program Files\Autodesk\Inventor 2020\Bin\en-US\InventorViewRes.dll

please note the third file is contained in a language dependent folder (en-US is for US english installation), so make sure of copying accordingly to the installed language;
for this reason the installation language of Inventor and Inventor viewer must be the same.

then, opening an administrative command prompt, you’ve to register the dll:

Regsvr32 "C:\Program Files\Autodesk\Inventor 2020\Bin\InventorViewCtrl.ocx"

finally, add the following path as a further value of the already existing “PATH” environment variable

C:\Program Files\Autodesk\Inventor 2020\Bin

through the Edit environment variable dialog:

20190228
Weird characters in the PDM user interface

Description

Some character are not properly shown in the MechworksPDM interface.
Usually they’re shown like this:

instead of like this:

Solution

This behavior is driven by Windows10 operating system that uses a different non-unicode setting on the workstation where the issue is verified.

A solution is to change the set in the Current language for non-Unicode programs of the Region & language section of the control panel:


please note that while fixed values are working properly, the values taken from text files (such as .LST for dropdown lists) are affected in the same way:

in this case it can be helpful to change the txt file coding (eg. ISO 8859-1):

20180508
x64 ODBC Access driver

Description

When running BriefCase forms from an integrated client or from StandaloneClient x64, you may be prompted about running the functionality from StandaloneClient x86 version:

This is caused by the fact no MSAccess driver x64 is installed; to verify this you can open ODBC Data Sources (64-bit) and see that’s only 32-bit driver is there:

Solution

Of course you can run Briefcase from StandaloneClient 32-bit as a solution.

Otherwise you can install MSAccess x64 drivers that are distributed by Microsoft.

At the following x64 PDM startup the x64 ODBC entry for the Briefcase functionality will be added:

 

 

 

20180108
GhostScript missing while plotting PDF/TIF

Description

When plotting a PDF or a TIF document, a message about missing Ghostscript application is raised:

Solution

By clicking YES you should be redirect to the download page;

if not, the direct link to download the missing component is the following:

https://www.ghostscript.com/download/gsdnld.html

the required package is Ghostscript 9.22 for Windows (32 bit) with a GNU AGPL license type.

20171031
Solid Edge ST10 Full preview

Description

Solid Edge ST10 doesn’t allow to show full preview.
This is due to the fact ST10 version doesn’t deploy 32-bit controls anymore.

Further information can be found here on Siemens Community Forum.

 

Solution

You have to download an additional Solid Edge package, install it and register one of its components.

  1. Download from Siemens website the package ST10 View & Markup
  2. Install it on the workstation
  3. open a administrative MSDOS prompt
  4. execute the command
    regsvr32 "C:\Program Files (x86)\Insight Connect ST10\Program\SEpartX.ocx"
20171019
Title bar icon issue when the browser is minimized in W10

Description

when running in Windows 10, you may see to see the iconized browser that has an issue with icon overlapping like this:

Solution

The icon  position depends on 3 different aspects:

  • Screen resolution
  • Scaling
  • size of the icon in the title bar

The first 2 elements are customizable via UI

while the third one can be accessed through registry only.
As many other settings, interface elements are defined in the registry key:

[HKCU\Control Panel\Desktop\WindowMetrics]

and in details the icon height is defined through the value named CaptionHeight:

You can change the current value to enlarge the icon space and obtaining the correct visualization of the title bar.
Please note the value must be expressed as
-15 * <desired icon pixel height>
so, if you want icons to be 22×22 pixels, the value must be expressed as
-15 * 22 = -330

e.g. On a screen resolution of 1920×108, scaling 100%, the value CaptionHeight=-300 (that means -15*20) solved the issue:

20170811
missing .NET3.5 message

Description

Especially on Windows 10, when installing R17 release from the scratch, you may be prompted about the missing Microsoft .NET 3.5 package, then the setup will exit.

this because the Windows 10 default is .NET 4.x package only:

Solution 1

In most of cases, as suggested by the message, the solution is to run the Windows Feature dialog and to enable the .NET Framework 3.5

Solution 2

In a minority of cases, the solution 1 is not effective, so R17 has been added of a complementary package installer.

Here are steps to install .NET 3.5 without accessing Windows Feature dialog:

  1. extract installer contents by opening an Administrator MSDOS prompt and typing
    MechWorks_Pdm_Msi_R17_SP0_0.exe /extract:"C:\temp"



    a progress bar informs you about the process


    finally you’ll have some files extracted in the chosen folder

  2. from the previous MSDOS prompt, execute the installDoNet35w10.bat file by typing it:

    the .NET 3.5 package will be downloaded and finally you can verify it has properly added to windows features:
  3. then you can run installer again

 

20170811
null ID message at PDM startup

Description

Starting from R16, it is performed a further check on records with NULL ID.
Since an ID with a NULL value it’s unwanted state (that will cause issues), at startup a message (or the Activity console) warns the user  about that:

Solution

  1. open the browser for updating
  2. if necessary, enable the showing of the QueryPage (a browser restart is required to apply this change):
     
  3. insert following query in QueryPage and execute it:
    SELECT * FROM DOCUMENT WHERE ID IS NULL

    please note the table name DOCUMENT is language dependent, so change the query accordingly

  4. once shown the faulty records, you can choose to
    1. remove them with DELETE button bar (pay attention they’re not referenced anymore by any other record)
    2. editing them and add a valid ID value

 

 

20170720
Error about Package Manager Deprecated at install time

Description

During installation on Windows 10 you may see an error about Package Manager that’s defined as deprecated:

Note: PkgMgr.exe ha been deprecated. Please update your scripts to use DISM.exe to install, uninstall, configure, and update features and package
for Windows.
[…]

Access Denied.

Solution

In some cases the deactivation/reactivation of .Net 3.5 (manually from Windows features dialog) has been effective;

in other cases it has been mandatory to block/reinstall the antivirus (Symantec in our specific case).

 

20170227
Memory error when creating ExcelBom

When creating an ExcelBOM you could experience an error about lack of memory:

MemoryXLBom

To solve this issue please open Excel BOM Designer and set the XLSX format as default instead of XLS:

MemoryXLBom_01  MemoryXLBom_02

20170227
Memory error when creating ExcelBom

When creating an ExcelBOM you could experience an error about lack of memory:

MemoryXLBom

To solve this issue please open Excel BOM Designer and set the XLSX format as default instead of XLS:

MemoryXLBom_01  MemoryXLBom_02

20170227
PDF preview suddenly stops to work

Very often is due to antivirus control.

e.g.
If you’re running AVG antivirus, please check the “[X] Scan files after closing” setting;
If enable, disable it.

PDF_avg

20170227
PDF preview suddenly stops to work

Very often is due to antivirus control.

e.g.
If you’re running AVG antivirus, please check the “[X] Scan files after closing” setting;
If enable, disable it.

PDF_avg

20161128
Allow data truncation when registering from Registration Wizard

Sometimes it’s useful to allow data truncation so to not interrupt massive operations, such as file registration.

In case the filename is too long and you’re registering through the Registration Wizard, a SQL message about truncation could stop the whole process.

In this case it’s possible to disable the messaging by SQLServer so to let the wizard go through up to the end. The directive is SET ANSI_WARNING_OFF and can be encapsulated in a script (such as autoexec.vbs that’s run as first when starting the PDM).

Sub Main()
     DBWInit(TRUE)
     cmdLine="SET ANSI_WARNINGS OFF"
     DBWExecSQL( cmdLine )
end Sub

This will set the waning OFF for the current session.

Please note this procedure is very dangerous if applied to remarkable database fields like FILE_NAME or FILE_DIRECTORY, so make sure such files are never truncated.

20161128
Allow data truncation when registering from Registration Wizard

Sometimes it’s useful to allow data truncation so to not interrupt massive operations, such as file registration.

In case the filename is too long and you’re registering through the Registration Wizard, a SQL message about truncation could stop the whole process.

In this case it’s possible to disable the messaging by SQLServer so to let the wizard go through up to the end. The directive is SET ANSI_WARNING_OFF and can be encapsulated in a script (such as autoexec.vbs that’s run as first when starting the PDM).

Sub Main()
     DBWInit(TRUE)
     cmdLine="SET ANSI_WARNINGS OFF"
     DBWExecSQL( cmdLine )
end Sub

This will set the waning OFF for the current session.

Please note this procedure is very dangerous if applied to remarkable database fields like FILE_NAME or FILE_DIRECTORY, so make sure such files are never truncated.

20161024
DBWorks is not enlisted as available addin under Solidworks

Some cases has been reported on Windows 10 that after successfully running Mechworks PDM setup, no entry was available to be selected between Solidworks addins.

The issue has been addressed in R16sp1.1 by adding the DBWorks DLL path

%programfiles(x86)MechWorksMechWorks_PdmBinVS2012_x64

to the environment %PATH% variable.

20161024
DBWorks is not enlisted as available addin under Solidworks

Some cases has been reported on Windows 10 that after successfully running Mechworks PDM setup, no entry was available to be selected between Solidworks addins.

The issue has been addressed in R16sp1.1 by adding the DBWorks DLL path

%programfiles(x86)MechWorksMechWorks_PdmBinVS2012_x64

to the environment %PATH% variable.

20160513
preview not available for configurations

Description

After saving a single configuration of a multi-configuration model, the preview for the saved configuration is visible while the preview of another configuration is not visible anymore:
BrotherConfigPreviewMissing1
BrotherConfigPreviewMissing2

Solution

A related bugfix can be helpful

Bugfixing
20150907 – DBWorks: saving all the configurations automatically with activated the calculation of the mass properties was breaking the configuration previews, causing the message “preview not available” to be displayed in the Browser preview window

Please note that the bug fix does not affect any model previously saved, that
needs to be saved once again for fixing the configuration preview images contained in
the model.

More, a Solidworks settings can affect the process too:

BrotherConfigPreviewMissing

try to disable such option and to save the configuration again.

20160513
preview not available for configurations

Description

After saving a single configuration of a multi-configuration model, the preview for the saved configuration is visible while the preview of another configuration is not visible anymore:
BrotherConfigPreviewMissing1
BrotherConfigPreviewMissing2

Solution

A related bugfix can be helpful

Bugfixing
20150907 – DBWorks: saving all the configurations automatically with activated the calculation of the mass properties was breaking the configuration previews, causing the message “preview not available” to be displayed in the Browser preview window

Please note that the bug fix does not affect any model previously saved, that
needs to be saved once again for fixing the configuration preview images contained in
the model.

More, a Solidworks settings can affect the process too:

BrotherConfigPreviewMissing

try to disable such option and to save the configuration again.

20160512
Shrink database (fix transaction log full)

Description

The disk is full due to database logfile growth:
shrinkDB01

Solution

Setting Simple recovery model

RMB on the database → Properties → Options

set the Recovery model to Simple:
sqlServer2008Shrink6

RMB on the database → Properties → Files

browse the Autogrowth and set a Restricted file growth value for the logfile
sqlServer2008Shrink7

Shrink log file

RMB on the database → Tasks → Shrink → Database → OKsqlServer2008Shrink1

sqlServer2008Shrink2

RMB on the database → Tasks → Shrink → Files → OK
sqlServer2008Shrink3

Set the File type to Data and click OK
sqlServer2008Shrink4

Then set the File type to Log and click OK

sqlServer2008Shrink5

 

20160512
Shrink database (fix transaction log full)

Description

The disk is full due to database logfile growth:
shrinkDB01

Solution

Setting Simple recovery model

RMB on the database → Properties → Options

set the Recovery model to Simple:
sqlServer2008Shrink6

RMB on the database → Properties → Files

browse the Autogrowth and set a Restricted file growth value for the logfile
sqlServer2008Shrink7

Shrink log file

RMB on the database → Tasks → Shrink → Database → OKsqlServer2008Shrink1

sqlServer2008Shrink2

RMB on the database → Tasks → Shrink → Files → OK
sqlServer2008Shrink3

Set the File type to Data and click OK
sqlServer2008Shrink4

Then set the File type to Log and click OK

sqlServer2008Shrink5

 

20160412
R16 missing in SWCommandManager

Description

DBWorks R16 section is missing in the Solidworks command manager, despite of the fact the addin is running properly (see the DBWorks Menu is loaded):

R16missing_in_SWCommandManager00

Solution

You’ve to right click the SWCommandManager and select Customize CommandManager:

R16missing_in_SWCommandManager01

then for every entry of R16 or R15, right click and select Delete:

R16missing_in_SWCommandManager02

finally restart the CAD.

20160412
R16 missing in SWCommandManager

Description

DBWorks R16 section is missing in the Solidworks command manager, despite of the fact the addin is running properly (see the DBWorks Menu is loaded):

R16missing_in_SWCommandManager00

Solution

You’ve to right click the SWCommandManager and select Customize CommandManager:

R16missing_in_SWCommandManager01

then for every entry of R16 or R15, right click and select Delete:

R16missing_in_SWCommandManager02

finally restart the CAD.

20160315
Preview of Solidworks files

To dynamically preview any Solidworks file (except the case you have saved jpg images of the preview through the option Open/Save→Save→[x]Save preview images as files) you need the SW Document Manager properly installed on the workstation.

If you are not able to see SW files preview despite of the fact Solidworks is installed, you may be in the need of re-register the SW Document Manager library.

The file is named swdocumentmgr.dll and it’s installed under the following folders:

C:Program FilesCommon FilesSOLIDWORKS Shared

and

C:Program Files (x86)Common FilesSOLIDWORKS Shared

To re-register it, you’ve to open a MSDOS command prompt and to type, for each of the two folders:

regsvr32 swdocumentmgr.dll
20160315
Preview of Solidworks files

To dynamically preview any Solidworks file (except the case you have saved jpg images of the preview through the option Open/Save→Save→[x]Save preview images as files) you need the SW Document Manager properly installed on the workstation.

If you are not able to see SW files preview despite of the fact Solidworks is installed, you may be in the need of re-register the SW Document Manager library.

The file is named swdocumentmgr.dll and it’s installed under the following folders:

C:Program FilesCommon FilesSOLIDWORKS Shared

and

C:Program Files (x86)Common FilesSOLIDWORKS Shared

To re-register it, you’ve to open a MSDOS command prompt and to type, for each of the two folders:

regsvr32 swdocumentmgr.dll
20151118
DBWFilterSelect2 issue

if you encounter a type mismatch error while running script that invokes the DBWFilterSelect2 function, you may be in the need of modifying a little your script as followings.

original script:

res=DBWFilterSelect2(title,Dsn,SelectStatement,FieldtoRead,FieldToFilterOn,FilterValue,multiresult,position)

if res<>"" then
   if Ubound(multiresult)=0 then
      'DBWMsgbox "Only one result"
      DBWMsgBox multiresult(0)
   else
      'DBWMsgBox "More than one result"
      for i=0 to ubound(multiresult)
         DBWMsgbox multiresult(i)
      next
   end if
else
   'DBWMsgBox "The user has cancelled"
end if

modified script:

...
If isempty(multiresult) then
   if res="" then
      DBWMsgbox "user has canceled"
   else
      DBWMsgBox "only one result: " & res
   end if
else
   DBWMsgbox "many results"
   for i=0 to ubound(multiresult)
      DBWMsgBox multiresult(i)
   next
end if
...

with release R15sp2.8 the function has been enhanced to manage also past faulty cases:

res=DBWFilterSelect2(title,Dsn,SelectStatement,FieldtoRead,FieldToFilterOn,FilterValue,multiresult,position)

if res="" then
   DBWMsgBox "User has canceled"
else
   DBWMsgBox Ubound(multiresult)+1 & " result(s)"
   for i=0 to ubound(multiresult)
      DBWMsgbox multiresult(i)
   next
end if
...

 

20151118
DBWFilterSelect2 issue

if you encounter a type mismatch error while running script that invokes the DBWFilterSelect2 function, you may be in the need of modifying a little your script as followings.

original script:

res=DBWFilterSelect2(title,Dsn,SelectStatement,FieldtoRead,FieldToFilterOn,FilterValue,multiresult,position)

if res<>"" then
   if Ubound(multiresult)=0 then
      'DBWMsgbox "Only one result"
      DBWMsgBox multiresult(0)
   else
      'DBWMsgBox "More than one result"
      for i=0 to ubound(multiresult)
         DBWMsgbox multiresult(i)
      next
   end if
else
   'DBWMsgBox "The user has cancelled"
end if

modified script:

...
If isempty(multiresult) then
   if res="" then
      DBWMsgbox "user has canceled"
   else
      DBWMsgBox "only one result: " & res
   end if
else
   DBWMsgbox "many results"
   for i=0 to ubound(multiresult)
      DBWMsgBox multiresult(i)
   next
end if
...

with release R15sp2.8 the function has been enhanced to manage also past faulty cases:

res=DBWFilterSelect2(title,Dsn,SelectStatement,FieldtoRead,FieldToFilterOn,FilterValue,multiresult,position)

if res="" then
   DBWMsgBox "User has canceled"
else
   DBWMsgBox Ubound(multiresult)+1 & " result(s)"
   for i=0 to ubound(multiresult)
      DBWMsgbox multiresult(i)
   next
end if
...

 

20150918
PDM issues tracing

Introduction to issue tracing

If you ever encounter a problem, a malfunctioning or a possible bug, please contact your reseller and where necessary send an e-mail with a description of your problem and of your current configuration at support @mechworks.com

MechworksPDM execution tracing

A set of parameters is available in Mechworks PDM so as to debug working sessions that have problems not solvable with the normal email support provided by MechWorks. If you experience unexpexted behaviour, the best way to send information to the MechWorks support is to describe the problem with an e-mail, and to attach the log file that will be generated when the Execution Tracing is enabled.

The standard log file are named:

DBWORKS_<DATE>_<TIME>

and starting from R20 also

DBW_FilePathMonitor_<DATE>

they are both necessary and they are written in the %TEMP% directory of the computer.

Having separate log files for different dates allowing for multisession log files.

Collecting logfiles

Starting from R20sp1.0 the script Start-Programs-Mechworks-Capture Mechworks PDM Log has been enhanced to automatically collect all the required CLIENT logs and create a single package of files.
Once created the logs and then executed this script, the user has to send it to Mechworks support for being analyzed.

Previous build users have to manually collect single functionality log files as explained below.

In any case, SERVER logs (DBWAclServer and/or MWLicenseManager) must be added manually since they require access to different server/workstation from the current one.
Please refer to single chapters to know which server log files are required.

Enable tracing

To enable the logging process from the MechworksPDM menu in the CAD interface, choose Activate_debug_logging script.
Here below are different CAD representation:

Solidworks menu
DBWorks toolbar script menu

DBInventor toolbar

DBInventor toolbar

DBSolidedge
DBSolidedge

A dialog informs about the current state of the logging (enabled or disabled)

logging1

Then a confirmation of disabling/enabling is shown

logging2

Finally another dialog tells you where to find the generated log and last, such temp folder is opened for your ease

logging3

After that you can start performing actions that lead to the issue reproducing.

Please note it’s very important to log as few actions as possible to reduce the analyzing time and focusing on the actual issue.

Since you don’t need to restart CAD application to enable log creation, we strongly suggest to prepare the environment before activating the log.

In the end, after have the problem logged, disable the tracing by running again the Activate_debug_logging script.

DBWAclServer log files

In case the issue involves DBWACLServer or you have been asked by Mechworks Support Team to provide log for it, you’ve to send -together with standard log- also specific client and server log.

Before start recording the issue, on the server, please delete the current logifle so to track necessary actions only:

%PROGRAMDATA%\Mechworks\DBWACLServer\Logs\DBWAclServer.log

The client log is in the client temporary folder:

%TMP%\DBWAclClient_<DATE>_<TIME>

If present, please send also:

%TMP%\DBWMSG.log

If present, please remember to send together with the logs also the DBWACLServerADM.txt file that’s located in

%ProgramData%\MechWorks\DBWAclServer

or in the same folder of the executable of the service.

TaskManager log files

In case the issue involves TAskManager or you have been asked by Mechworks Support Team to provide log for it, you’ve to send -together with standard log- also specific server log and a dump of TaskManager involved database tables (DBW_TASK_COMMANDS, DBW_TASK_EXEC_NODES, DBW_TASKS, DBW_TASKS_LOG); a zipped backup of the whole database (if not excessively large) is fine.

License Manager log files

Please note 2 logfiles are created:

  • Server log: in the same folder of the MwLicenseManager.exe, named like MwLicenseManager_<yyyymmdd>.LOG
  • Client log: in the %tmp% (temporary folder for current user), named like MwClientManager_<yyyymmdd>_<hhmmss>.LOG

In case no logfile is created on the server, it could be due to the fact the location of the service executable does not grant write permission to the service personality.
Often the %programfiles% and %programfiles(x86)% are not writable. In such cases try to install the service having the executable on a different location.

 

Installation log files

For issues occurred during installation process, please send us following logs created in the %tmp% folder:

  • Dbw_msi_log.txt
  • Dbw_msi_Exception_log.txt
  • MSIxxxxxx.LOG (where xxxxx is a number)

Typical step by step procedure to log an issue

Suppose the issue is related to DBWAclServer so you need to provide both standard log and DBWAclServer specific log.

  1. Make sure tracing is disabled
  2. Close the CAD application
  3. [*] On the file server remove/rename the file %PROGRAMDATA%\Mechworks\DBWACLServer\Logs\DBWAclServer.log
  4. Open the CAD application
  5. Prepare the environment to track the single(s) action that creates the issue (i.e. open the browser, search for the right project/record in the tree)
  6. Enable tracing as shown before
  7. Perform the action(s) that reproduces the issue
  8. Close the CAD application
  9. Collect the created logs and send to Mechworks Support:
    • If running R20sp1.0 or newer, run the script from Start-Programs-Mechworks-Capture Mechworks PDM Log to collect the created logs (server logs must be provided manually)
    • If running older builds: collect, zip and send Mechworks the following files + server logs:
      • On the client %TMP%\DBWORKS_<date>_<time>.LOG
      • [*] On the client %TMP%\DBWACLClient_<date>_<time>.LOG
      • [*] On the server %PROGRAMDATA%\Mechworks\DBWACLServer\Logs\DBWAclServer.log

please note step marked with [*] are intended to be DBWAclServer specific; skip such steps in case the feature is not active or you were not asked to provide DBWAclServer specific logs.

20150918
PDM issues tracing

Introduction to issue tracing

If you ever encounter a problem, a malfunctioning or a possible bug, please contact your reseller and where necessary send an e-mail with a description of your problem and of your current configuration at support @mechworks.com

MechworksPDM execution tracing

A set of parameters is available in Mechworks PDM so as to debug working sessions that have problems not solvable with the normal email support provided by MechWorks. If you experience unexpexted behaviour, the best way to send information to the MechWorks support is to describe the problem with an e-mail, and to attach the log file that will be generated when the Execution Tracing is enabled.

The standard log file are named:

DBWORKS_<DATE>_<TIME>

and starting from R20 also

DBW_FilePathMonitor_<DATE>

they are both necessary and they are written in the %TEMP% directory of the computer.

Having separate log files for different dates allowing for multisession log files.

Collecting logfiles

Starting from R20sp1.0 the script Start-Programs-Mechworks-Capture Mechworks PDM Log has been enhanced to automatically collect all the required CLIENT logs and create a single package of files.
Once created the logs and then executed this script, the user has to send it to Mechworks support for being analyzed.

Previous build users have to manually collect single functionality log files as explained below.

In any case, SERVER logs (DBWAclServer and/or MWLicenseManager) must be added manually since they require access to different server/workstation from the current one.
Please refer to single chapters to know which server log files are required.

Enable tracing

To enable the logging process from the MechworksPDM menu in the CAD interface, choose Activate_debug_logging script.
Here below are different CAD representation:

Solidworks menu
DBWorks toolbar script menu

DBInventor toolbar

DBInventor toolbar

DBSolidedge
DBSolidedge

A dialog informs about the current state of the logging (enabled or disabled)

logging1

Then a confirmation of disabling/enabling is shown

logging2

Finally another dialog tells you where to find the generated log and last, such temp folder is opened for your ease

logging3

After that you can start performing actions that lead to the issue reproducing.

Please note it’s very important to log as few actions as possible to reduce the analyzing time and focusing on the actual issue.

Since you don’t need to restart CAD application to enable log creation, we strongly suggest to prepare the environment before activating the log.

In the end, after have the problem logged, disable the tracing by running again the Activate_debug_logging script.

DBWAclServer log files

In case the issue involves DBWACLServer or you have been asked by Mechworks Support Team to provide log for it, you’ve to send -together with standard log- also specific client and server log.

Before start recording the issue, on the server, please delete the current logifle so to track necessary actions only:

%PROGRAMDATA%\Mechworks\DBWACLServer\Logs\DBWAclServer.log

The client log is in the client temporary folder:

%TMP%\DBWAclClient_<DATE>_<TIME>

If present, please send also:

%TMP%\DBWMSG.log

If present, please remember to send together with the logs also the DBWACLServerADM.txt file that’s located in

%ProgramData%\MechWorks\DBWAclServer

or in the same folder of the executable of the service.

TaskManager log files

In case the issue involves TAskManager or you have been asked by Mechworks Support Team to provide log for it, you’ve to send -together with standard log- also specific server log and a dump of TaskManager involved database tables (DBW_TASK_COMMANDS, DBW_TASK_EXEC_NODES, DBW_TASKS, DBW_TASKS_LOG); a zipped backup of the whole database (if not excessively large) is fine.

License Manager log files

Please note 2 logfiles are created:

  • Server log: in the same folder of the MwLicenseManager.exe, named like MwLicenseManager_<yyyymmdd>.LOG
  • Client log: in the %tmp% (temporary folder for current user), named like MwClientManager_<yyyymmdd>_<hhmmss>.LOG

In case no logfile is created on the server, it could be due to the fact the location of the service executable does not grant write permission to the service personality.
Often the %programfiles% and %programfiles(x86)% are not writable. In such cases try to install the service having the executable on a different location.

 

Installation log files

For issues occurred during installation process, please send us following logs created in the %tmp% folder:

  • Dbw_msi_log.txt
  • Dbw_msi_Exception_log.txt
  • MSIxxxxxx.LOG (where xxxxx is a number)

Typical step by step procedure to log an issue

Suppose the issue is related to DBWAclServer so you need to provide both standard log and DBWAclServer specific log.

  1. Make sure tracing is disabled
  2. Close the CAD application
  3. [*] On the file server remove/rename the file %PROGRAMDATA%\Mechworks\DBWACLServer\Logs\DBWAclServer.log
  4. Open the CAD application
  5. Prepare the environment to track the single(s) action that creates the issue (i.e. open the browser, search for the right project/record in the tree)
  6. Enable tracing as shown before
  7. Perform the action(s) that reproduces the issue
  8. Close the CAD application
  9. Collect the created logs and send to Mechworks Support:
    • If running R20sp1.0 or newer, run the script from Start-Programs-Mechworks-Capture Mechworks PDM Log to collect the created logs (server logs must be provided manually)
    • If running older builds: collect, zip and send Mechworks the following files + server logs:
      • On the client %TMP%\DBWORKS_<date>_<time>.LOG
      • [*] On the client %TMP%\DBWACLClient_<date>_<time>.LOG
      • [*] On the server %PROGRAMDATA%\Mechworks\DBWACLServer\Logs\DBWAclServer.log

please note step marked with [*] are intended to be DBWAclServer specific; skip such steps in case the feature is not active or you were not asked to provide DBWAclServer specific logs.

20150805
printing is not working for one user only

Description

One user cannot print/plot from the MechworksPDM with their Standard PlotSetup, although the same plotters are registered on all the machines.

This issue is mainly caused by the fact the printer/plotter is declared on such machine with a case that’s different than the server declaration.

for example the client declaration of the printer

Dell Color Laser 1320c

could be not recognized if on the server is declared with a different case, like

DELL COLOR Laser 1320c

more, different printer/plotter declaration are stored in the registry, so it could happen you find more than one printer/plotter name for the same device.

The registry key is

HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionPrintProvidersClient Side Rendering Print Provider

Solution

Once removed the wrongly spelled (cased) keys and restarted the printer spooler on the server, the issue should be fixed.

Here is an external blog article talking about this issue.

20150805
printing is not working for one user only

Description

One user cannot print/plot from the MechworksPDM with their Standard PlotSetup, although the same plotters are registered on all the machines.

This issue is mainly caused by the fact the printer/plotter is declared on such machine with a case that’s different than the server declaration.

for example the client declaration of the printer

Dell Color Laser 1320c

could be not recognized if on the server is declared with a different case, like

DELL COLOR Laser 1320c

more, different printer/plotter declaration are stored in the registry, so it could happen you find more than one printer/plotter name for the same device.

The registry key is

HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionPrintProvidersClient Side Rendering Print Provider

Solution

Once removed the wrongly spelled (cased) keys and restarted the printer spooler on the server, the issue should be fixed.

Here is an external blog article talking about this issue.

20150703
Updating serials

Description

When upgrading from express to enterprise license type or when changing the CAD serial/machine code, you’ve to enter a new serial number for the application.

Since it’s not the first time you install the software, no serial number will be asked at runtime.

Solution

you can remove the current serial number file (different for each CAD integration) so to make the system ask you again, or you can edit the file content (with a text editor) to update the serials manually.

Serial number are contained in following files:

c:Program FilesCommon FilesMechworksDBWorks.SN
c:Program FilesCommon FilesMechworksDBInventor.SN
c:Program FilesCommon FilesMechworksDBSolidEdge.SN

or

c:Program Files (x86)Common FilesMechworksDBWorks Standalone.SN
20150703
Updating serials

Description

When upgrading from express to enterprise license type or when changing the CAD serial/machine code, you’ve to enter a new serial number for the application.

Since it’s not the first time you install the software, no serial number will be asked at runtime.

Solution

you can remove the current serial number file (different for each CAD integration) so to make the system ask you again, or you can edit the file content (with a text editor) to update the serials manually.

Serial number are contained in following files:

c:Program FilesCommon FilesMechworksDBWorks.SN
c:Program FilesCommon FilesMechworksDBInventor.SN
c:Program FilesCommon FilesMechworksDBSolidEdge.SN

or

c:Program Files (x86)Common FilesMechworksDBWorks Standalone.SN
20150626
BOM_GROUP and the option to reassign positions in BOMs

BOM_ GROUP children can be positioned either at the location assigned according to their position number or at the bottom of the list of the siblings.

In the first case you can ensure that they take the position of the parent inside the BOM, but mind that duplicate positions are possible if you donàt assign the positions carefully.

In the latter case, duplicates will be avoided but you will not find the childre at the position where the fake parent would was located.

In both cases if the same item is found at the parent’s level, items are joined and quantities are added.

The standard behavior is to add the children at the bottom of the list, ensuring that no errors are possible, but you can decide otherwise for a specific BOM template.

The option that determines this behavior is

AVOID_REASSIGN_BOM_GROUP_CHILDREN

And must be added to the options section of the BOM parameter file

 The two approaches compared:

BOM_group1

An example in which children are repositioned at the bottom:

BOM_group2

And the final result:

BOM_group3

20150626
BOM_GROUP and the option to reassign positions in BOMs

BOM_ GROUP children can be positioned either at the location assigned according to their position number or at the bottom of the list of the siblings.

In the first case you can ensure that they take the position of the parent inside the BOM, but mind that duplicate positions are possible if you donàt assign the positions carefully.

In the latter case, duplicates will be avoided but you will not find the childre at the position where the fake parent would was located.

In both cases if the same item is found at the parent’s level, items are joined and quantities are added.

The standard behavior is to add the children at the bottom of the list, ensuring that no errors are possible, but you can decide otherwise for a specific BOM template.

The option that determines this behavior is

AVOID_REASSIGN_BOM_GROUP_CHILDREN

And must be added to the options section of the BOM parameter file

 The two approaches compared:

BOM_group1

An example in which children are repositioned at the bottom:

BOM_group2

And the final result:

BOM_group3

20150422
updating R15 license manager

Question

how to update the R15 license manager if a new version is released?
(for environments where the new R15 license manager is already installed)

Solution

the license manager executable is updated together with the main application, so you can find it within the installer MechWorks_Pdm_Msi_R15_SPx_x.exe

Once installed the main application you’ll find it as

C:Program Files (x86)MechWorksMechWorks_PdmbinMwLicenseManagerServerMwLicenseManager.exe

So to update the license manager you’ve to

  1. stop the service on the server
  2. copy the MwLicenseManager.exe from the just updated client overwriting the old one
  3. restart the service on the server
20150422
updating R15 license manager

Question

how to update the R15 license manager if a new version is released?
(for environments where the new R15 license manager is already installed)

Solution

the license manager executable is updated together with the main application, so you can find it within the installer MechWorks_Pdm_Msi_R15_SPx_x.exe

Once installed the main application you’ll find it as

C:Program Files (x86)MechWorksMechWorks_PdmbinMwLicenseManagerServerMwLicenseManager.exe

So to update the license manager you’ve to

  1. stop the service on the server
  2. copy the MwLicenseManager.exe from the just updated client overwriting the old one
  3. restart the service on the server
20150414
cannot delete checkedin file in LCM

Description

If a component is checked-in and a user has that file open in Solidworks while another user attempts to release the file obviously the file is not going to be able to be deleted from the check-in folder.
So the user gets the following message:

LCMcannotDelete1

more,  after the approval the file that was left in the check-in folder has an additional permission added:

LCMcannotDelete2

then the user that performed the Approve command now has full control on the document.

Solution

The issue is caused by the fact that Solidworks locks the components even when they are in read-only state.

The only valid way for making concurrent engineering with the Local Checkout Mode over a network is to enable the Read-Only Local Copies, for avoiding that locking issues may block the file delete/copy required by the LCM.

The use of the “Read-only” local copies should also “mitigate” such kind of concurrent engineering issues, because being the files copied in the “read-only” local directory, Solidworks will not lock the shared checked-in copy, but instead the “local read-only” copy.

Of course, the loading of components in light-weight mode is also recommended (because less locks will be applied by SW when loading assemblies):

LCMcannotDelete3

This option will force Solidworks to NOT load the components in memory until they need to be modified.

The issue can be easily tested even without DBWAclServer.
When DBWAclServer is involved, there will be a specific moment where the file becomes writeable with full control from the user that makes the approve – in that exact time, maybe the “concurrent” Solidworks locks the same files and stops the ability of the original user to delete the copy in the shared checked-in directory.

20150414
cannot delete checkedin file in LCM

Description

If a component is checked-in and a user has that file open in Solidworks while another user attempts to release the file obviously the file is not going to be able to be deleted from the check-in folder.
So the user gets the following message:

LCMcannotDelete1

more,  after the approval the file that was left in the check-in folder has an additional permission added:

LCMcannotDelete2

then the user that performed the Approve command now has full control on the document.

Solution

The issue is caused by the fact that Solidworks locks the components even when they are in read-only state.

The only valid way for making concurrent engineering with the Local Checkout Mode over a network is to enable the Read-Only Local Copies, for avoiding that locking issues may block the file delete/copy required by the LCM.

The use of the “Read-only” local copies should also “mitigate” such kind of concurrent engineering issues, because being the files copied in the “read-only” local directory, Solidworks will not lock the shared checked-in copy, but instead the “local read-only” copy.

Of course, the loading of components in light-weight mode is also recommended (because less locks will be applied by SW when loading assemblies):

LCMcannotDelete3

This option will force Solidworks to NOT load the components in memory until they need to be modified.

The issue can be easily tested even without DBWAclServer.
When DBWAclServer is involved, there will be a specific moment where the file becomes writeable with full control from the user that makes the approve – in that exact time, maybe the “concurrent” Solidworks locks the same files and stops the ability of the original user to delete the copy in the shared checked-in directory.

20150410
Replacing script containing STOP/START directives

Description

when starting the PDM, you could be notified with this console message:

StopStartMessage

or

StopStartMessage1

this is because starting from R15 version, the STOP/START statement is not supported anymore, so you can obtain the same result by programming a vbscript that queries an external database through classic vbscript methods (e.g. ADO).

Solution

The easiest way it’s to put the database name in the SQL query such as

.SQL
.KEY 0

SELECT [FIELD] FROM [EXTERNAL_DB].[DBO].[TABLE] WHERE ...

On the other hand, in case you need to rearrange the user interface,  Mechworks PDM standard library provides functions to do that, such as DBWListFromQuery1 and DBWFilterSelect3.

Here below are 2 examples of conversion from initial .SQL script to .VBSCRIPT code.

Original .SQL script

.SQL
.KEY 0
STOP;
SET DB MY_EXTERNAL_DB;
SET USER Mylogin;
SET PASSWORD Mypwd;
START;
SELECT * FROM MY_EXT_TABLE;
STOP;
SET DB DBWORKS;
SET USER MyDBWlogin;
SET PASSWORD MyDBWpwd;
START;

First solution

The easiest way to solve it is to include the external table in the main Mechworks PDM database so to avoid the need of disconnecting from one db and connect to another (and finally to set it back);
Of course it’s not always possible to perform such inclusion, for this reason we provide 2 more alternatives rewriting code in vbscript.

Second solution

vbscript file with DBWListFromQuery1 function (simpler, suggested for choosing among few results):

.VBSCRIPT
dim sResult

Sub main()
   datasource = "MY_EXTERNAL_DB"
   login = "Mylogin"
   pwd = "MyPwd"
   ColumnToChooseFrom = 1 
   Title = "Select a value"
   SQLQuery = "SELECT * FROM MY_EXTERNAL TABLE"
   ok = DBWListFromQuery1(datasource, SQLQuery, ColumnToChooseFrom, Title, login, pwd, sResult)
   dbwoutput "MY_FIELD",sresult,ForWriting
end sub

Here is the dialog shown:
dbwListFromQuery1

Third solution

vbscript with DBWFilterSelect3 function (allows to further filter on results)

.VBSCRIPT
dim sResult
Sub main()
   datasource = "MY_EXTERNAL_DB"
   login = "MyLogin"
   pwd = "MyPwd"
   Title = "Select a value"
   SQLQuery = "SELECT * FROM MY_EXT_TABLE"
   FieldToRead = "FIELD2"
   FieldToFilterOn = "FIELD3"
   FilterValue = "value"
   position = 0
   ok = DBWFilterSelect3(title,datasource,login,pwd,SQLQuery,FieldtoRead,FieldToFilterOn, FilterValue, sResult, position)
   dbwoutput "MY_FIELD",sresult,ForWriting
end sub

Here is the dialog shown:
dbwfilterselect3

20150410
Replacing script containing STOP/START directives

Description

when starting the PDM, you could be notified with this console message:

StopStartMessage

or

StopStartMessage1

this is because starting from R15 version, the STOP/START statement is not supported anymore, so you can obtain the same result by programming a vbscript that queries an external database through classic vbscript methods (e.g. ADO).

Solution

The easiest way it’s to put the database name in the SQL query such as

.SQL
.KEY 0

SELECT [FIELD] FROM [EXTERNAL_DB].[DBO].[TABLE] WHERE ...

On the other hand, in case you need to rearrange the user interface,  Mechworks PDM standard library provides functions to do that, such as DBWListFromQuery1 and DBWFilterSelect3.

Here below are 2 examples of conversion from initial .SQL script to .VBSCRIPT code.

Original .SQL script

.SQL
.KEY 0
STOP;
SET DB MY_EXTERNAL_DB;
SET USER Mylogin;
SET PASSWORD Mypwd;
START;
SELECT * FROM MY_EXT_TABLE;
STOP;
SET DB DBWORKS;
SET USER MyDBWlogin;
SET PASSWORD MyDBWpwd;
START;

First solution

The easiest way to solve it is to include the external table in the main Mechworks PDM database so to avoid the need of disconnecting from one db and connect to another (and finally to set it back);
Of course it’s not always possible to perform such inclusion, for this reason we provide 2 more alternatives rewriting code in vbscript.

Second solution

vbscript file with DBWListFromQuery1 function (simpler, suggested for choosing among few results):

.VBSCRIPT
dim sResult

Sub main()
   datasource = "MY_EXTERNAL_DB"
   login = "Mylogin"
   pwd = "MyPwd"
   ColumnToChooseFrom = 1 
   Title = "Select a value"
   SQLQuery = "SELECT * FROM MY_EXTERNAL TABLE"
   ok = DBWListFromQuery1(datasource, SQLQuery, ColumnToChooseFrom, Title, login, pwd, sResult)
   dbwoutput "MY_FIELD",sresult,ForWriting
end sub

Here is the dialog shown:
dbwListFromQuery1

Third solution

vbscript with DBWFilterSelect3 function (allows to further filter on results)

.VBSCRIPT
dim sResult
Sub main()
   datasource = "MY_EXTERNAL_DB"
   login = "MyLogin"
   pwd = "MyPwd"
   Title = "Select a value"
   SQLQuery = "SELECT * FROM MY_EXT_TABLE"
   FieldToRead = "FIELD2"
   FieldToFilterOn = "FIELD3"
   FilterValue = "value"
   position = 0
   ok = DBWFilterSelect3(title,datasource,login,pwd,SQLQuery,FieldtoRead,FieldToFilterOn, FilterValue, sResult, position)
   dbwoutput "MY_FIELD",sresult,ForWriting
end sub

Here is the dialog shown:
dbwfilterselect3

20150129
Perform a Backup of the database

Here is a procedure to create a backup file of a running database on SQLServer.

When sending a database backup file to Mechworks’ support take care of zipping it first.

  1. open SQLServer Management Studio
  2. Right Mouse Button (RMB) on the database to be backupped:
    Backup_db_pic2
  3. choose a file name/location and make sure it’s a full type backup:
    Backup_db_pic3
  4. make sure it’s not appending but it’s overwriting old backups (in case you have any):
    Backup_db_pic4
  5. click OK and verify the backup is properly created:
    Backup_db_pic5
20150129
Perform a Backup of the database

Here is a procedure to create a backup file of a running database on SQLServer.

When sending a database backup file to Mechworks’ support take care of zipping it first.

  1. open SQLServer Management Studio
  2. Right Mouse Button (RMB) on the database to be backupped:
    Backup_db_pic2
  3. choose a file name/location and make sure it’s a full type backup:
    Backup_db_pic3
  4. make sure it’s not appending but it’s overwriting old backups (in case you have any):
    Backup_db_pic4
  5. click OK and verify the backup is properly created:
    Backup_db_pic5
20150121
VBScript engine is unavailable after McAfee antivirus installation

this article is taken from Dell support workspace

Description

Upon trying to install/upgrade vWorkspace, a support person may encounter error…

"Can't find script engine VBScript"

Issue may be caused either by a broken VBScript registration or by McAfee antivirus.

Resolution

– Open a command prompt in elevated mode (run as administrator).
– Type

regsvr32 vbscript.dll

– Open regedit and verify that

HKLMSOFTWAREClassesCLSID{B54F3741-5B07-11cf-A4B0-00AA004A55E8}InprocServer32

is pointing to vbscript.dll
On a 64-bit machines the key is

HKLMSOFTWAREWow6432NodeClassesCLSID{B54F3741-5B07-11cf-A4B0-00AA004A55E8}InprocServer32

There’s a specific scenario when the key is overwritten by McAfee software, which change the key’s value to McAfee script scanning DLL. In such a case please either uninstall McAfee then re-register vbscript.dll or contact McAfee support.

It’s also possible that the same key may exist in HKCU hive.
Please delete the whole HKCUSOFTWAREClassesCLSID{B54F3741-5B07-11cf-A4B0-00AA004A55E8} tree in such case.

Additional workaround: Please remove traces of McAfee using MCPR tool:
http://service.mcafee.com/FAQDocument.aspx?id=TS101331

20150121
VBScript engine is unavailable after McAfee antivirus installation

this article is taken from Dell support workspace

Description

Upon trying to install/upgrade vWorkspace, a support person may encounter error…

"Can't find script engine VBScript"

Issue may be caused either by a broken VBScript registration or by McAfee antivirus.

Resolution

– Open a command prompt in elevated mode (run as administrator).
– Type

regsvr32 vbscript.dll

– Open regedit and verify that

HKLMSOFTWAREClassesCLSID{B54F3741-5B07-11cf-A4B0-00AA004A55E8}InprocServer32

is pointing to vbscript.dll
On a 64-bit machines the key is

HKLMSOFTWAREWow6432NodeClassesCLSID{B54F3741-5B07-11cf-A4B0-00AA004A55E8}InprocServer32

There’s a specific scenario when the key is overwritten by McAfee software, which change the key’s value to McAfee script scanning DLL. In such a case please either uninstall McAfee then re-register vbscript.dll or contact McAfee support.

It’s also possible that the same key may exist in HKCU hive.
Please delete the whole HKCUSOFTWAREClassesCLSID{B54F3741-5B07-11cf-A4B0-00AA004A55E8} tree in such case.

Additional workaround: Please remove traces of McAfee using MCPR tool:
http://service.mcafee.com/FAQDocument.aspx?id=TS101331

20141216
Check serial number

To verify that the system is properly reading and recognizing your Mechworks product serial, you can use the following procedure.

  1. Unzip and copy [download id=”1455″] in the installation folder,
    usually

    C:Program Files(x86)MechWorksMechWorks_PDM
  2. open a MSDOS console in such folder
  3. run command specifying the product you’re testing against:
    SecuTest.exe DBWorks >out.txt

    or

    SecuTest.exe DBInventor >out.txt

    or

    SecuTest.exe DBSolidEdge >out.txt
  4. send the created out.txt file to MechWorks support for investigation
20141216
Check serial number

To verify that the system is properly reading and recognizing your Mechworks product serial, you can use the following procedure.

  1. Unzip and copy [download id=”1455″] in the installation folder,
    usually

    C:Program Files(x86)MechWorksMechWorks_PDM
  2. open a MSDOS console in such folder
  3. run command specifying the product you’re testing against:
    SecuTest.exe DBWorks >out.txt

    or

    SecuTest.exe DBInventor >out.txt

    or

    SecuTest.exe DBSolidEdge >out.txt
  4. send the created out.txt file to MechWorks support for investigation
20141119
Unexplanable crashes or performance problems

Some users reported to have a lot more crashes than before, or performance problems increasing.

We verified it is often caused by a problem in the Active Directory of Windows, that appears when the SQLServer Service Account is changed from i.e. Local System to a dedicated Domain Account (which is not so unusual).

In short: the active Directory then has two entries, that cannot be differentiated during Kerberos authentication (see Wikipedia or MIT about the topic).

Take a look at following screenshot of the related Windows Event Log of the CAD Clients:kdc01

Please note usually it’s possible to find a correspondence between the exact crash time and a failure event in the windows event logs on the client.

Then search Google about solution.

20141119
Unexplanable crashes or performance problems

Some users reported to have a lot more crashes than before, or performance problems increasing.

We verified it is often caused by a problem in the Active Directory of Windows, that appears when the SQLServer Service Account is changed from i.e. Local System to a dedicated Domain Account (which is not so unusual).

In short: the active Directory then has two entries, that cannot be differentiated during Kerberos authentication (see Wikipedia or MIT about the topic).

Take a look at following screenshot of the related Windows Event Log of the CAD Clients:kdc01

Please note usually it’s possible to find a correspondence between the exact crash time and a failure event in the windows event logs on the client.

Then search Google about solution.

20141014
Full Preview on Inventor models doesn't work

Inventor 2020 users please refer to this page.

As known issue, the full preview on Inventor models doesn’t work due to a change in the viewer control:
inv2015fp01

It’s a behavior related to other already known issues about Inventor view Control.

Here below it’s a procedure to manually make it working properly.

Please note this procedures fixes the x64 operating system case only.

  1. register the 32bit ocx control for 2015-2017 version or 64bit ocx control for 2018-2019 versions;
    open a MSDOS prompt as administrator and type the line corresponding to  the Inventor version you’re running:

    C:\Windows\SysWOW64\regsvr32.exe "C:\Program Files\Autodesk\Inventor 2015\Bin\Bin32\InventorViewCtrl.ocx"
    C:\Windows\SysWOW64\regsvr32.exe "C:\Program Files\Autodesk\Inventor 2016\Bin\Bin32\InventorViewCtrl.ocx"
    C:\Windows\SysWOW64\regsvr32.exe "C:\Program Files\Autodesk\Inventor 2017\Bin\Bin32\InventorViewCtrl.ocx"
    C:\Windows\SysWOW64\regsvr32.exe "C:\Program Files\Autodesk\Inventor 2018\Bin\InventorViewCtrl.ocx"
    C:\Windows\SysWOW64\regsvr32.exe "C:\Program Files\Autodesk\Inventor 2019\Bin\InventorViewCtrl.ocx"
  2. add some missing keys to the registry:
    [HKEY_CLASSES_ROOTInventor.ViewControl.1]
    @="Autodesk Inventor View Control"
    
    [HKEY_CLASSES_ROOTInventor.ViewControl.1CLSID]
    @="{A6336AB8-D3E1-489A-8186-EE40F2E027FE}"
    
    [HKEY_CLASSES_ROOTInventor.ViewControl.1Insertable]
    @=""
  3. add -if not already defined- the 32bit ocx path to the current PATH system variable (pay attention to the Inventor path 2015 / 2016 / 2017):
    inv2015fpAddPath
20141014
Full Preview on Inventor models doesn't work

Inventor 2020 users please refer to this page.

As known issue, the full preview on Inventor models doesn’t work due to a change in the viewer control:
inv2015fp01

It’s a behavior related to other already known issues about Inventor view Control.

Here below it’s a procedure to manually make it working properly.

Please note this procedures fixes the x64 operating system case only.

  1. register the 32bit ocx control for 2015-2017 version or 64bit ocx control for 2018-2019 versions;
    open a MSDOS prompt as administrator and type the line corresponding to  the Inventor version you’re running:

    C:\Windows\SysWOW64\regsvr32.exe "C:\Program Files\Autodesk\Inventor 2015\Bin\Bin32\InventorViewCtrl.ocx"
    C:\Windows\SysWOW64\regsvr32.exe "C:\Program Files\Autodesk\Inventor 2016\Bin\Bin32\InventorViewCtrl.ocx"
    C:\Windows\SysWOW64\regsvr32.exe "C:\Program Files\Autodesk\Inventor 2017\Bin\Bin32\InventorViewCtrl.ocx"
    C:\Windows\SysWOW64\regsvr32.exe "C:\Program Files\Autodesk\Inventor 2018\Bin\InventorViewCtrl.ocx"
    C:\Windows\SysWOW64\regsvr32.exe "C:\Program Files\Autodesk\Inventor 2019\Bin\InventorViewCtrl.ocx"
  2. add some missing keys to the registry:
    [HKEY_CLASSES_ROOTInventor.ViewControl.1]
    @="Autodesk Inventor View Control"
    
    [HKEY_CLASSES_ROOTInventor.ViewControl.1CLSID]
    @="{A6336AB8-D3E1-489A-8186-EE40F2E027FE}"
    
    [HKEY_CLASSES_ROOTInventor.ViewControl.1Insertable]
    @=""
  3. add -if not already defined- the 32bit ocx path to the current PATH system variable (pay attention to the Inventor path 2015 / 2016 / 2017):
    inv2015fpAddPath
20140929
Crash when running DBWForm

Description

While running a script from StandaloneClient or the Integrated Addins, when you move the mouse over the sub form area, the form will disappear and the main app will crash.

The form works properly under old operating system (such as WindowsXP) while it crashes under Windows10 or Windows8.1

Solution

Under installationPathbin folder is distributed an alternative DLL that can be used to solve this issue in most of cases.

  • make a backup copy of the current library binModalViewer.DLL
  • rename the file
    binModalViewer_20030228.DLL
    to
    binModalViewer.DLL

 

20140910
Error accessing DBWorks registry at startup

Description

When starting Standalone Client you may receive a couple of messages like followings:

DBWorks security manager:
error [x] = The operation completed successfully.
line = nnn

errorOnStandalone

usually it’s reported on Windows 8 or Windows 8.1 operating systems.

Solution

A way to solve this issue is taking the default user account on the Windows 8 machine and change it to a Standard account.
Then reboot and log back in.
Last, change it back to an Administrator account and reboot again.

Next time you log in you should be able to install MechWorks PDM and run Standalone without any issues.

20140910
Error accessing DBWorks registry at startup

Description

When starting Standalone Client you may receive a couple of messages like followings:

DBWorks security manager:
error [x] = The operation completed successfully.
line = nnn

errorOnStandalone

usually it’s reported on Windows 8 or Windows 8.1 operating systems.

Solution

A way to solve this issue is taking the default user account on the Windows 8 machine and change it to a Standard account.
Then reboot and log back in.
Last, change it back to an Administrator account and reboot again.

Next time you log in you should be able to install MechWorks PDM and run Standalone without any issues.

20140730
Approve action changes the content of a drawing

Description

When registering Drawing and Part into MechworksPDM database and approve the
documents, then when approving from Solidworks, the dimensions on the drawing could be modified (e.g. a dimension could be moved to another bend line).
Closing and reopening usually corrects the issue.
It doesn’t happen when DBWorks addin is not active.

e.g.

SWchangesDraw

Solution

Despite of the fact this issue seems strictly related (and caused) by DBWorks, it’s actually due to modification happened in the model (e.g. changing of material).

Solidworks statement is as followings:

This is a known issue , the refer is SPR# 719641 
F.O. SPR 680460: Dimensions to bend lines in flat pattern drawing view becomes dangling after sheet metal part changes; particularly saving to DWG/DXF.
For this issue there is no good workaround for it until now,
you need to recreate the dimension.
20140730
Approve action changes the content of a drawing

Description

When registering Drawing and Part into MechworksPDM database and approve the
documents, then when approving from Solidworks, the dimensions on the drawing could be modified (e.g. a dimension could be moved to another bend line).
Closing and reopening usually corrects the issue.
It doesn’t happen when DBWorks addin is not active.

e.g.

SWchangesDraw

Solution

Despite of the fact this issue seems strictly related (and caused) by DBWorks, it’s actually due to modification happened in the model (e.g. changing of material).

Solidworks statement is as followings:

This is a known issue , the refer is SPR# 719641 
F.O. SPR 680460: Dimensions to bend lines in flat pattern drawing view becomes dangling after sheet metal part changes; particularly saving to DWG/DXF.
For this issue there is no good workaround for it until now,
you need to recreate the dimension.
20140718
Embedded images are missing in drawings export as DWF or PDF

Description

You are  creating a PDF output on approval and the results you are getting is that the PDF is missing your logo on their title block.

Solution

This issue has been addressed by Autodesk as 1517-587, specific for Inventor 2014 sp2.
It has been verified as solved in sp2 Update 1.

 

20140718
Embedded images are missing in drawings export as DWF or PDF

Description

You are  creating a PDF output on approval and the results you are getting is that the PDF is missing your logo on their title block.

Solution

This issue has been addressed by Autodesk as 1517-587, specific for Inventor 2014 sp2.
It has been verified as solved in sp2 Update 1.

 

20140707
DBWAclServer and scripting (sync issue with windows explorer)

Here below is explained a process flow during a scripting action on files

  1. Client: issues a FileDelete/FileCopy command
  2. Server: it executes the FileDelete/FileCopy command
  3. In this exact time, Client’s Windows Explorer has no notification about the no more existing or just created file – any script command like “if file exist then” or “SolidWorks → Open” the files will fail
  4. the Client’s Windows Explorer waits a fixed amount of time before REFRESHING its file cache – this time is by default 10 seconds
  5. After such delay the file appears on the Client’s side, so allowing any further processing based on the file status

Since Mechworks PDM cannot know if the script wants to check if the file exists or not, if the script wants to open the file or not, etc., the application WAITS until the file status is SYNCHRONIZED with the Client’s Window Explorer.

For further information about the topic you can read the Microsoft technical article SMB2 Client Redirector Caches Explained.

In order to modify the WAIT TIMEs for such synchronization, on each W10 client you can:

access the registry and create the DWORD values in the following key

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Lanmanworkstation\Parameters

with following values:

DirectoryCacheLifetime 0
FileInfoCacheLifetime 0
FileNotFoundCacheLifetime 1

so to obtain these settings:

Thanks to such settings, the TIME that Mechworks PDM needs to wait (under special circumstances) after a server file operation for syncing the client Windows Explorer file cache has been greatly reduced from about 5 seconds (the default value of the FileNotFoundCacheLifeTime) to 1 second .

As explained in the article notes at the bottom:

[…]
Disabling the File information cache can have significant effect on client performance and show an increase in the number of metadata requests that are sent to the server
[…]

so our suggestion is avoiding to set the values to ZERO, leaving a bit of time to wait before refreshing the cache.

20140707
DBWAclServer and scripting (sync issue with windows explorer)

Here below is explained a process flow during a scripting action on files

  1. Client: issues a FileDelete/FileCopy command
  2. Server: it executes the FileDelete/FileCopy command
  3. In this exact time, Client’s Windows Explorer has no notification about the no more existing or just created file – any script command like “if file exist then” or “SolidWorks → Open” the files will fail
  4. the Client’s Windows Explorer waits a fixed amount of time before REFRESHING its file cache – this time is by default 10 seconds
  5. After such delay the file appears on the Client’s side, so allowing any further processing based on the file status

Since Mechworks PDM cannot know if the script wants to check if the file exists or not, if the script wants to open the file or not, etc., the application WAITS until the file status is SYNCHRONIZED with the Client’s Window Explorer.

For further information about the topic you can read the Microsoft technical article SMB2 Client Redirector Caches Explained.

In order to modify the WAIT TIMEs for such synchronization, on each W10 client you can:

access the registry and create the DWORD values in the following key

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Lanmanworkstation\Parameters

with following values:

DirectoryCacheLifetime 0
FileInfoCacheLifetime 0
FileNotFoundCacheLifetime 1

so to obtain these settings:

Thanks to such settings, the TIME that Mechworks PDM needs to wait (under special circumstances) after a server file operation for syncing the client Windows Explorer file cache has been greatly reduced from about 5 seconds (the default value of the FileNotFoundCacheLifeTime) to 1 second .

As explained in the article notes at the bottom:

[…]
Disabling the File information cache can have significant effect on client performance and show an increase in the number of metadata requests that are sent to the server
[…]

so our suggestion is avoiding to set the values to ZERO, leaving a bit of time to wait before refreshing the cache.

20140424
MechworksPDM Express Admin Mode

As behavior change, starting from build 20140424 and only in MechworksPDM Express edition, following functionalities have been denied by default:

  • Open for updating
  • Full options editing

The behavior is controlled by a environment variable named

MECHWORKSPDMADMINMODE

If is not existing or it is existing and not set to the value “1”, the feature are denied.

The MechWorks PDM Setup program automatically creates and set this environment variable when the option for installing the Administration Tools is checked during the setup procedure.

When in no admin mode:

1) the “Open for Updating” is not available as menu entry for the SolidWorks integration; for all the other integrations the menu entry is available but a message pops up stating that the functionality is allowed only to the PDM Administrators.
open4updNotAllowed

2) the “Options” functionality permits the editing only of the USER and PLOT options:
optionsReduced

20140424
MechworksPDM Express Admin Mode

As behavior change, starting from build 20140424 and only in MechworksPDM Express edition, following functionalities have been denied by default:

  • Open for updating
  • Full options editing

The behavior is controlled by a environment variable named

MECHWORKSPDMADMINMODE

If is not existing or it is existing and not set to the value “1”, the feature are denied.

The MechWorks PDM Setup program automatically creates and set this environment variable when the option for installing the Administration Tools is checked during the setup procedure.

When in no admin mode:

1) the “Open for Updating” is not available as menu entry for the SolidWorks integration; for all the other integrations the menu entry is available but a message pops up stating that the functionality is allowed only to the PDM Administrators.
open4updNotAllowed

2) the “Options” functionality permits the editing only of the USER and PLOT options:
optionsReduced

20140414
files .gz are not created at new revision time

When the DBWserver.exe file is located in a folder different than

<installation folder>\bin\

and it’s registered as service from there, please note the DBWGzip.exe must be placed on the same folder, otherwise revision .gz files won’t be created.

20140414
files .gz are not created at new revision time

When the DBWserver.exe file is located in a folder different than

<installation folder>\bin\

and it’s registered as service from there, please note the DBWGzip.exe must be placed on the same folder, otherwise revision .gz files won’t be created.

20140218
scripting x86 vs scripting x64

Description

If the scripting engine is 64bit version, it will refer -in the registry- to the 64bit version of the controls.
Sometimes the controls are not available in both 32bit and 64bit mode

Because of this, to run scripts properly in Mechworks environment you have to instantiate a 32bit version of the scripting engine for running the script.

Solution

To test it, on a 64bit workstation, with both Standalone 32bit and 64bit installed:

  • open the task manager and be sure that no DBWAlone*.exe process is running – if yes, please kill them
  • create a C:test.vbs file as follows:
    Call main
    Sub main()
      Set DBWApp = CreateObject("DBWAlone.Api")
      okDBW = DBWApp.CallBack("@StartApplication")
      MsgBox "done, check task manager"
      Set DBWApp = nothing
    End Sub
  • from the command window run:
    C:>cscript c:test.vbs
  • when the msgbox appears, look at the task manager: you will see the DBWAlone64.exe process running:
  • click ok in the msgbox and the DBWAlone64.exe process will disappear
  • run now the following command:
    C:>C:WindowsSysWOW64cscript.exe c:test.vbs
  • when the msgbox appears, look at the task manager: you will see the DBWAlone.exe (32-bit) process running:
  • click ok in the msgbox and the DBWAlone.exe process will disappear
20140218
scripting x86 vs scripting x64

Description

If the scripting engine is 64bit version, it will refer -in the registry- to the 64bit version of the controls.
Sometimes the controls are not available in both 32bit and 64bit mode

Because of this, to run scripts properly in Mechworks environment you have to instantiate a 32bit version of the scripting engine for running the script.

Solution

To test it, on a 64bit workstation, with both Standalone 32bit and 64bit installed:

  • open the task manager and be sure that no DBWAlone*.exe process is running – if yes, please kill them
  • create a C:test.vbs file as follows:
    Call main
    Sub main()
      Set DBWApp = CreateObject("DBWAlone.Api")
      okDBW = DBWApp.CallBack("@StartApplication")
      MsgBox "done, check task manager"
      Set DBWApp = nothing
    End Sub
  • from the command window run:
    C:>cscript c:test.vbs
  • when the msgbox appears, look at the task manager: you will see the DBWAlone64.exe process running:
  • click ok in the msgbox and the DBWAlone64.exe process will disappear
  • run now the following command:
    C:>C:WindowsSysWOW64cscript.exe c:test.vbs
  • when the msgbox appears, look at the task manager: you will see the DBWAlone.exe (32-bit) process running:
  • click ok in the msgbox and the DBWAlone.exe process will disappear
20140212
Wrong not-unicode chars visualization

Some special characters (e.g. in polish language) maybe shown in a wrong way inside the Input Data Form and in the PDM grids.

Please note that Mechworks PDM is not a UNICODE application
It inherits the current “Local” settings for the ANSI CODE PAGE and the current COLLATION of SQL Server.

Because of this, some bad visualization effect could be caused by a not unicode language pack (e.g. Chinese) installed on the pc.

20140212
Wrong not-unicode chars visualization

Some special characters (e.g. in polish language) maybe shown in a wrong way inside the Input Data Form and in the PDM grids.

Please note that Mechworks PDM is not a UNICODE application
It inherits the current “Local” settings for the ANSI CODE PAGE and the current COLLATION of SQL Server.

Because of this, some bad visualization effect could be caused by a not unicode language pack (e.g. Chinese) installed on the pc.

20140212
Always run application as Administrator

Often when installing an application you should be physically logged in as Administrator.
Of course this is not always possible.

Here is a setting to allow the application to be installed as Administrator as well.

  1. In the Start→Run command type
    SECPOL.msc

    and press ENTER
    issue_runAppsAsAdmin01

  2. In the Local Security Policy dialog select Local Policies→Security Options
  3. In the panel on the right double click User Account Control: Run all administrators in Admin Approval Mode (default value is Enabled)
    issue_runAppsAsAdmin02
  4. In the displayed dialog set the Disable option and click OK
    issue_runAppsAsAdmin03
  5. Reboot the workstation
20140212
Always run application as Administrator

Often when installing an application you should be physically logged in as Administrator.
Of course this is not always possible.

Here is a setting to allow the application to be installed as Administrator as well.

  1. In the Start→Run command type
    SECPOL.msc

    and press ENTER
    issue_runAppsAsAdmin01

  2. In the Local Security Policy dialog select Local Policies→Security Options
  3. In the panel on the right double click User Account Control: Run all administrators in Admin Approval Mode (default value is Enabled)
    issue_runAppsAsAdmin02
  4. In the displayed dialog set the Disable option and click OK
    issue_runAppsAsAdmin03
  5. Reboot the workstation
20140212
"Not enough memory" error

Description

You got a

'Not enough main memory.: 'DBWApp.CallBack''

error while performing a CAD operation (such as creating a part locally in an assembly):

notEnoughMemory00

Cause

A possible cause for this issue is the use of offline data feature of the operating system

Solution

if the issue is caused by offline data, you can solve the issue by disabling it:



  1. notEnoughMemory01


  2. notEnoughMemory02


  3. notEnoughMemory03
20140212
"Not enough memory" error

Description

You got a

'Not enough main memory.: 'DBWApp.CallBack''

error while performing a CAD operation (such as creating a part locally in an assembly):

notEnoughMemory00

Cause

A possible cause for this issue is the use of offline data feature of the operating system

Solution

if the issue is caused by offline data, you can solve the issue by disabling it:



  1. notEnoughMemory01


  2. notEnoughMemory02


  3. notEnoughMemory03
20131209
Inventor2014 sp0 causes a crash on Windows 8.1

Description

If you update Windows8 to Windows8.1 in an environment where Inventor2014 sp0 is already installed, you would probably experience a crash every time you click right-mouse-button on a windows explorer related interface element.

Solution

Updating Inventor2014sp0 to sp1 is reported as fixing action for this issue.

20131209
Inventor2014 sp0 causes a crash on Windows 8.1

Description

If you update Windows8 to Windows8.1 in an environment where Inventor2014 sp0 is already installed, you would probably experience a crash every time you click right-mouse-button on a windows explorer related interface element.

Solution

Updating Inventor2014sp0 to sp1 is reported as fixing action for this issue.

20131030
Cannot select "Client" options in setup dialog

Description

When installing, once you run the setup as administrator you will see that no network drives are available, so it won’t be possible to perfomr a Client installation type:
NoClientOption01

this behavior is caused by the fact you run the setup as administrator but you do not have same drives both in current account and in administrator account

Solution

By temporary mapping drives in administrator account too, it’s possible to complete installation even from current user account.

  1. open a MSDOS prompt as administrator rights:
    NoClientOption02

    NoClientOption03

  2. Type the command
    net use

    to verify which drive has to be mapped as admin too; please note you’ll see the same drive available from current account but with unavailable status

  3. type
    net use Z: \MyServerMyShare

    where Z: is the drive to be mapped

  4. Type again the command
    net use

    to verify that now the drive is available (its status is now OK)

  5. Now restart the setup and the option Client and Client&Server is now available:
    NoClientOption04
20131030
Cannot select "Client" options in setup dialog

Description

When installing, once you run the setup as administrator you will see that no network drives are available, so it won’t be possible to perfomr a Client installation type:
NoClientOption01

this behavior is caused by the fact you run the setup as administrator but you do not have same drives both in current account and in administrator account

Solution

By temporary mapping drives in administrator account too, it’s possible to complete installation even from current user account.

  1. open a MSDOS prompt as administrator rights:
    NoClientOption02

    NoClientOption03

  2. Type the command
    net use

    to verify which drive has to be mapped as admin too; please note you’ll see the same drive available from current account but with unavailable status

  3. type
    net use Z: \MyServerMyShare

    where Z: is the drive to be mapped

  4. Type again the command
    net use

    to verify that now the drive is available (its status is now OK)

  5. Now restart the setup and the option Client and Client&Server is now available:
    NoClientOption04
20130505
Unreadable fonts in DWG revision outputs

Suppose that your DWG titleblock is shown like this:
issue_dwgFont02

If you create a PDF output and it appears like followings
issue_dwgFont01

Often it’s because the needed fonts haven’t been copied in the folder defined by option:
issue_dwgFont04

After the font is existing in such location, the PDF output will be improved: issue_dwgFont03

20130505
Unreadable fonts in DWG revision outputs

Suppose that your DWG titleblock is shown like this:
issue_dwgFont02

If you create a PDF output and it appears like followings
issue_dwgFont01

Often it’s because the needed fonts haven’t been copied in the folder defined by option:
issue_dwgFont04

After the font is existing in such location, the PDF output will be improved: issue_dwgFont03

20130417
Error "Could not open key..." at installation time
20130417
Error "Could not open key..." at installation time
20130415
Missing CAD type icons in Windows8

Description

Under Windows8, the Solidworks type icons are not shown properly and a generic file icon is displayed instead:
issue_iconsW801

This is caused by Solidworks not registering the file types correctly
We’ve already forwarded this issue to them for resolution.

Solution

The issue can be easily addressed by assigning the file type again to a default application at operating system level:
issue_iconsW802
issue_iconsW803

then the icon for that specific type is properly shown
(please note in Solidworks case you’ve to prefer the SW launcher to the main SW app)
issue_iconsW804

Then you’ve to repeat the same procedure for each CAD file type that still shown incorrect icons yet.

20130415
Missing CAD type icons in Windows8

Description

Under Windows8, the Solidworks type icons are not shown properly and a generic file icon is displayed instead:
issue_iconsW801

This is caused by Solidworks not registering the file types correctly
We’ve already forwarded this issue to them for resolution.

Solution

The issue can be easily addressed by assigning the file type again to a default application at operating system level:
issue_iconsW802
issue_iconsW803

then the icon for that specific type is properly shown
(please note in Solidworks case you’ve to prefer the SW launcher to the main SW app)
issue_iconsW804

Then you’ve to repeat the same procedure for each CAD file type that still shown incorrect icons yet.

20121128
ADOBE Reader 10 & 11 Security Settings affect Master Drawing Mode

Description

Adobe Reader 10 (X) & 11 (XI) come with enhanced security settings (which are automatically enabled upon installation or during an update).
Unfortunately these settings are causing issues with creating PDF’s via scripts, in details Mechworks PDM Master Drawing Mode is affected by this.

Solution

The following option settings in X & XI are equivalent to Adobe Reader 9.0.
To solve the issue ensure yellow highlighted options are disabled.
adobe1 adobe2

20121128
ADOBE Reader 10 & 11 Security Settings affect Master Drawing Mode

Description

Adobe Reader 10 (X) & 11 (XI) come with enhanced security settings (which are automatically enabled upon installation or during an update).
Unfortunately these settings are causing issues with creating PDF’s via scripts, in details Mechworks PDM Master Drawing Mode is affected by this.

Solution

The following option settings in X & XI are equivalent to Adobe Reader 9.0.
To solve the issue ensure yellow highlighted options are disabled.
adobe1 adobe2

20121128
Performances issues analysis

The following request list has the goal to make our support properly understanding the overall situation/environment so to provide the proper direction.

Working with large databases means that overall performance is always an important consideration.
There are so many variables that can affect performance (OS, hardware, version of SQL, 32 bit vs. 64 bit, physical folder structure, application version, options, etc.).

So, when submitting a support request about performances, if possible, please provide the following info:

  • What are the hardware and software specifications of each SQL server that is participating in replication (OS, SQL Version, physical memory, etc.)?
  • What is the version of CAD/PDM deployed for each site?
  • What is the standard practice (maintenance process) for SHRINKING the DBWorks database at your sites?
  • What is the standard practice (maintenance process) for rebuilding the INDEXES against the primary DBWorks tables?
  • Is it safe to assume that this performance concern is something that did not exist (at least to this type of an extreme) a year ago? When did it become more of an issue?
  • When configuring your ODBC connections, do you provide the DNS name to the SQL server or the IP address to the SQL server?
    (this because we have seen that the process for qualifying the DNS name has caused some hardships within larger organizations)
  • If you have not provided the following, would it be possible to provide them:
    • A copy of the main database from each participating site.
    • If different from main db, a copy of the DBWcust database from one site.
    • If different from main db, a copy of the DBWmat database from one site.
    • A copy of DBWORKS_SERVER folder from one site.
  • After rebooting a workstation, please create an RX recording along with a DBWorks LOG file of the expected SAVE behavior – something that taxes the environment heavily so we can investigate the problem.
  • Please provide any relative information/details from the user’s perspective.
  • It would also be good to provide an RX recording of the same exact SAVE (same design) – but without DBWorks as an ADD-IN.
    This would require a REBOOT of the workstation in question before executing this SAVE test/process to have the most accurate information within the RX data.
20121128
Performances issues analysis

The following request list has the goal to make our support properly understanding the overall situation/environment so to provide the proper direction.

Working with large databases means that overall performance is always an important consideration.
There are so many variables that can affect performance (OS, hardware, version of SQL, 32 bit vs. 64 bit, physical folder structure, application version, options, etc.).

So, when submitting a support request about performances, if possible, please provide the following info:

  • What are the hardware and software specifications of each SQL server that is participating in replication (OS, SQL Version, physical memory, etc.)?
  • What is the version of CAD/PDM deployed for each site?
  • What is the standard practice (maintenance process) for SHRINKING the DBWorks database at your sites?
  • What is the standard practice (maintenance process) for rebuilding the INDEXES against the primary DBWorks tables?
  • Is it safe to assume that this performance concern is something that did not exist (at least to this type of an extreme) a year ago? When did it become more of an issue?
  • When configuring your ODBC connections, do you provide the DNS name to the SQL server or the IP address to the SQL server?
    (this because we have seen that the process for qualifying the DNS name has caused some hardships within larger organizations)
  • If you have not provided the following, would it be possible to provide them:
    • A copy of the main database from each participating site.
    • If different from main db, a copy of the DBWcust database from one site.
    • If different from main db, a copy of the DBWmat database from one site.
    • A copy of DBWORKS_SERVER folder from one site.
  • After rebooting a workstation, please create an RX recording along with a DBWorks LOG file of the expected SAVE behavior – something that taxes the environment heavily so we can investigate the problem.
  • Please provide any relative information/details from the user’s perspective.
  • It would also be good to provide an RX recording of the same exact SAVE (same design) – but without DBWorks as an ADD-IN.
    This would require a REBOOT of the workstation in question before executing this SAVE test/process to have the most accurate information within the RX data.
20121015
DBInventor is not properly creating TIF format outputs

Description

When you set options to create a TIF type revision output running on Inventor 2011 or previous versions, DBInventor creates a screenshot of the screen rather than properly open and save the model/drawing view.

Despite of the fact that Inventor exposes TIFF as supported output format through the user interface, its creation is not implemented via API before 2012 version, so none of the not native “saveAs TIF” will create a proper output:
missingTIFoutput

Solution

At the moment there’s no definitive solution that we can provide, since the issue is deeply depending on Autodesk environment.

As workaround, we suggest you to create a TIF printer and then use it to obtain a TIF output.

20121015
DBInventor is not properly creating TIF format outputs

Description

When you set options to create a TIF type revision output running on Inventor 2011 or previous versions, DBInventor creates a screenshot of the screen rather than properly open and save the model/drawing view.

Despite of the fact that Inventor exposes TIFF as supported output format through the user interface, its creation is not implemented via API before 2012 version, so none of the not native “saveAs TIF” will create a proper output:
missingTIFoutput

Solution

At the moment there’s no definitive solution that we can provide, since the issue is deeply depending on Autodesk environment.

As workaround, we suggest you to create a TIF printer and then use it to obtain a TIF output.

20120822
Assembly Duplication Wizard raises "Automation Error"

Description

Due to a Microsoft Office update (KB2597986), the AssemblyDuplicationWizard won’t start and it raises the following errors:
issue_adw2a
and also
issue_adw2b

VBA failure test

This behavior affects all the VBA forms containing a Tree View Control version 6.0 (MSCOMCTL.OCX).
you can create a new form and try adding such control.
The result is a Library not registered error.
issue_adw2d

Solution

The tool “Microsoft Office Diagnostic” usually solves the issue.
issue_adw2c

If the problem persists, after the diagnostic try to re-register the proper ocx.

Open an MS-DOS prompt as administrator and type:

  • 32 bit
    regsvr32 "C:Windowssystem32mscomctl.ocx"
  • 64 bit
    regsvr32 "C:WindowsSysWOW64mscomctl.ocx"
20120822
Assembly Duplication Wizard raises "Automation Error"

Description

Due to a Microsoft Office update (KB2597986), the AssemblyDuplicationWizard won’t start and it raises the following errors:
issue_adw2a
and also
issue_adw2b

VBA failure test

This behavior affects all the VBA forms containing a Tree View Control version 6.0 (MSCOMCTL.OCX).
you can create a new form and try adding such control.
The result is a Library not registered error.
issue_adw2d

Solution

The tool “Microsoft Office Diagnostic” usually solves the issue.
issue_adw2c

If the problem persists, after the diagnostic try to re-register the proper ocx.

Open an MS-DOS prompt as administrator and type:

  • 32 bit
    regsvr32 "C:Windowssystem32mscomctl.ocx"
  • 64 bit
    regsvr32 "C:WindowsSysWOW64mscomctl.ocx"
20120713
Got error "Data passed to a system call is too small"

Issue description

An error reporting “Data passed to a system call is too small” is raised when performing a checkout or save action.
areaPassedTooSmall

Usually this error is reported on DBWServer managed environment.

Cause

The Windows group (not DBWARM group) the users belongs to, has not enough rights on the specified folder.

Solution

Give the group enough rights to access such folder

20120713
Got error "Data passed to a system call is too small"

Issue description

An error reporting “Data passed to a system call is too small” is raised when performing a checkout or save action.
areaPassedTooSmall

Usually this error is reported on DBWServer managed environment.

Cause

The Windows group (not DBWARM group) the users belongs to, has not enough rights on the specified folder.

Solution

Give the group enough rights to access such folder

20120713
Full Preview issues

eDrawings issue

eDrawings2012 is not registering its x86 component in a proper way, so when click the FullPreview tab of the TreePage, a message asks you to install eDrawing x86, even if it’s already installed and running.

Solution

You can solve the issue by manual register the eDrawings main dll as follows;
Open as administrator a MSDOS command prompt and type:

"C:\WindowsSysWOW64\regsvr32.exe" "C:\Program Files (x86)\Common Files\eDrawings2012\EModelView.dll"

Inventor issue

  • Inventor 2012 out of the box is not able to properly show the Full Preview of a model.
    InventorViewCtrlOCX
    We’ve already reported this issue to Autodesk support and we’re waiting for a fix.
  • If you receive a “viewer not installed” error while trying the DBInventor FullPreview in a x64 environment, you’ve to manually register a 32bit Autodesk control provided with Inventor installation.
    inv2010x64FullPreview
    or
    inv2010x64FullPreview1
    orinv2010x64FullPreview2

Solution

For all of the above cases, open a MSDOS command prompt as administrator and type:

regsvr32 "C:\Program Files\Autodesk\Inventor 2014\bin\Bin32\InventorViewCtrl.ocx"

(please note the above path may change according with the Inventor version and installation path).

For previewing DWG files in an environment where no eDrawings is installed (common Autodesk users), open a MSDOS command prompt as administrator and type:

regsvr32 "C:\Program Files (x86)\DWG TrueView 2014\acctrl.dll"

If the above solution is still not effective (especially on windows 8.1), in order to use the just registered control you’ve to add following entries to the registry:

[HKEY_CLASSES_ROOT\Inventor.ViewControl.1]
@="Autodesk Inventor View Control"

[HKEY_CLASSES_ROOT\Inventor.ViewControl.1CLSID]
@="{A6336AB8-D3E1-489A-8186-EE40F2E027FE}"

[HKEY_CLASSES_ROOT\Inventor.ViewControl.1Insertable]
@=""

For your convenience you can download [download id=”507″] that does the job.

Inventor 2020

please refer to the specific FAQ

20120713
Full Preview issues

eDrawings issue

eDrawings2012 is not registering its x86 component in a proper way, so when click the FullPreview tab of the TreePage, a message asks you to install eDrawing x86, even if it’s already installed and running.

Solution

You can solve the issue by manual register the eDrawings main dll as follows;
Open as administrator a MSDOS command prompt and type:

"C:\WindowsSysWOW64\regsvr32.exe" "C:\Program Files (x86)\Common Files\eDrawings2012\EModelView.dll"

Inventor issue

  • Inventor 2012 out of the box is not able to properly show the Full Preview of a model.
    InventorViewCtrlOCX
    We’ve already reported this issue to Autodesk support and we’re waiting for a fix.
  • If you receive a “viewer not installed” error while trying the DBInventor FullPreview in a x64 environment, you’ve to manually register a 32bit Autodesk control provided with Inventor installation.
    inv2010x64FullPreview
    or
    inv2010x64FullPreview1
    orinv2010x64FullPreview2

Solution

For all of the above cases, open a MSDOS command prompt as administrator and type:

regsvr32 "C:\Program Files\Autodesk\Inventor 2014\bin\Bin32\InventorViewCtrl.ocx"

(please note the above path may change according with the Inventor version and installation path).

For previewing DWG files in an environment where no eDrawings is installed (common Autodesk users), open a MSDOS command prompt as administrator and type:

regsvr32 "C:\Program Files (x86)\DWG TrueView 2014\acctrl.dll"

If the above solution is still not effective (especially on windows 8.1), in order to use the just registered control you’ve to add following entries to the registry:

[HKEY_CLASSES_ROOT\Inventor.ViewControl.1]
@="Autodesk Inventor View Control"

[HKEY_CLASSES_ROOT\Inventor.ViewControl.1CLSID]
@="{A6336AB8-D3E1-489A-8186-EE40F2E027FE}"

[HKEY_CLASSES_ROOT\Inventor.ViewControl.1Insertable]
@=""

For your convenience you can download [download id=”507″] that does the job.

Inventor 2020

please refer to the specific FAQ

20120327
"Access denied" Error on saving XLSM files

Description

When you try to save an Excel workbook to the UNC share in MSExcel2010, you receive the following error message:
xlsm

This issue occurs because Excel 2010 tries to delete the temporary copy of the original workbook on the UNC share.

Solution

To resolve this issue, apply the following update:
2553034 Description of the Office 2010 hotfix package (Mso-x-none.msp): August 30, 2011

Here you can find detailed information on how to proceed

20120327
"Access denied" Error on saving XLSM files

Description

When you try to save an Excel workbook to the UNC share in MSExcel2010, you receive the following error message:
xlsm

This issue occurs because Excel 2010 tries to delete the temporary copy of the original workbook on the UNC share.

Solution

To resolve this issue, apply the following update:
2553034 Description of the Office 2010 hotfix package (Mso-x-none.msp): August 30, 2011

Here you can find detailed information on how to proceed

20120315
AVG Antivirus warning on DBWSend.exe

Description

Antivirus reports as harming the two files

BINDBWSend.exe
BINDBWPth.exe

dbwsend

Solution

Since they’re legacy files not used anymore, you can put them into quarantene and then eliminate them.

20120315
AVG Antivirus warning on DBWSend.exe

Description

Antivirus reports as harming the two files

BINDBWSend.exe
BINDBWPth.exe

dbwsend

Solution

Since they’re legacy files not used anymore, you can put them into quarantene and then eliminate them.

20120120
Crash on static preview in DBSolidEdge

Description

A browser crash on doing the static preview of an assembly in DBSolidEdge (specific process DBWSEThumbnailExtractor.exe).
It could be caused by SeThumbnail.dll that’s not properly registered.

Solution

Open a MSDOS command prompt as administrator and type:

regsvr32 "C:Program FilesSolid Edge ST4ProgramSeThumbnail.dll"

(please note the above path may change according with the Solid Edge version and installation path).

20120120
Crash on static preview in DBSolidEdge

Description

A browser crash on doing the static preview of an assembly in DBSolidEdge (specific process DBWSEThumbnailExtractor.exe).
It could be caused by SeThumbnail.dll that’s not properly registered.

Solution

Open a MSDOS command prompt as administrator and type:

regsvr32 "C:Program FilesSolid Edge ST4ProgramSeThumbnail.dll"

(please note the above path may change according with the Solid Edge version and installation path).

20111129
Unknown error on save

Description

When saving a document with DBWorks addin activated, this message could be raised (even for checked-out models):
unknownErrOnSave00

This is specific to the SolidWorks Settings and is caused by the following dismissed message.
Perhaps the convert message was “cancelled” with “don’t ask me again” flag.
unknownErrOnSave01

Solution

Enabling this will allow the user(s) to save.

20111129
Unknown error on save

Description

When saving a document with DBWorks addin activated, this message could be raised (even for checked-out models):
unknownErrOnSave00

This is specific to the SolidWorks Settings and is caused by the following dismissed message.
Perhaps the convert message was “cancelled” with “don’t ask me again” flag.
unknownErrOnSave01

Solution

Enabling this will allow the user(s) to save.

20111104
ADRW Fails with R12sp2.0 (.edx files)

Description

After updating Microsoft Office 2007 to Office 2010 or after a windows update some custom VBA scripts embedded in our software failed to compile with the following error message:

errADW

This error is a result of a security update from Microsoft (Microsoft Security Advisory 960715).
When adding ActiveX-controls to VBA scripts, information about the controls are stored in cache files on the local hard drive (.exd-files).
The security update modified some of these controls, but the .exd-files were not automatically updated. When the VBA scripts try to load the old versions of the controls stored in the cached files, the error occurs.
These cache-files must be removed from the hard drive in order for the controls to load successfully (which will create new, updated .exd-files automatically).

Solution #1

Register an ocx through opening MS-DOS prompt and type:

  • 32 bit
    regsvr32 "C:Windowssystem32mscomctl.ocx"
  • 64 bit
    regsvr32 "C:WindowsSysWOW64mscomctl.ocx"

Solution #2

Find and delete all files with .exd extension in one of the two following locations where USER is your Windows username:

for Windows XP:

c:documents and seettingsUSERApplication DataMicrosoftForms

for Windows 7 or Vista:

C:UsersUSERAppDataMicrosoftForms

Alternatively, do a search for *.exd on the C: drive if you are having trouble locating those files in the above locations.

20111104
ADRW Fails with R12sp2.0 (.edx files)

Description

After updating Microsoft Office 2007 to Office 2010 or after a windows update some custom VBA scripts embedded in our software failed to compile with the following error message:

errADW

This error is a result of a security update from Microsoft (Microsoft Security Advisory 960715).
When adding ActiveX-controls to VBA scripts, information about the controls are stored in cache files on the local hard drive (.exd-files).
The security update modified some of these controls, but the .exd-files were not automatically updated. When the VBA scripts try to load the old versions of the controls stored in the cached files, the error occurs.
These cache-files must be removed from the hard drive in order for the controls to load successfully (which will create new, updated .exd-files automatically).

Solution #1

Register an ocx through opening MS-DOS prompt and type:

  • 32 bit
    regsvr32 "C:Windowssystem32mscomctl.ocx"
  • 64 bit
    regsvr32 "C:WindowsSysWOW64mscomctl.ocx"

Solution #2

Find and delete all files with .exd extension in one of the two following locations where USER is your Windows username:

for Windows XP:

c:documents and seettingsUSERApplication DataMicrosoftForms

for Windows 7 or Vista:

C:UsersUSERAppDataMicrosoftForms

Alternatively, do a search for *.exd on the C: drive if you are having trouble locating those files in the above locations.

20110928
Wrong or different PDF when converting from a DWG

If you notice that PDF files created through recent (R12 and newer) release are wrong or even different than other ones created through old (R11) releases, it could depend on the OpenDWG library we introduced in R12.

In R12 sp2 the issue should be fixed since library developers have already announced the fix; in the meantime, as a workaround, you may try to place the files from the R11 build into the R12 installation paths.

In particular, you have to substitute following files and folder (of course make a backup copy first!):

BINDBWDWGCONV.EXE

and

binDBWDwg2Pdf

with the equivalent from the R11 installation

20110928
Wrong or different PDF when converting from a DWG

If you notice that PDF files created through recent (R12 and newer) release are wrong or even different than other ones created through old (R11) releases, it could depend on the OpenDWG library we introduced in R12.

In R12 sp2 the issue should be fixed since library developers have already announced the fix; in the meantime, as a workaround, you may try to place the files from the R11 build into the R12 installation paths.

In particular, you have to substitute following files and folder (of course make a backup copy first!):

BINDBWDWGCONV.EXE

and

binDBWDwg2Pdf

with the equivalent from the R11 installation

20110621
Object Library or definition object missing from the ADW

Update/Installation of Office 2010 unregisters mscomctl.ocx so any application using VBA treeview fails load.

To solve re-register the file

32 bit

C:Windowssystem32>regsvr32 mscomctl.ocx

64 bit

C:WindowsSysWOW64>regsvr32 mscomctl.ocx
20110621
Object Library or definition object missing from the ADW

Update/Installation of Office 2010 unregisters mscomctl.ocx so any application using VBA treeview fails load.

To solve re-register the file

32 bit

C:Windowssystem32>regsvr32 mscomctl.ocx

64 bit

C:WindowsSysWOW64>regsvr32 mscomctl.ocx
20110502
Black and White PDF Creation

Set the Options→Revisions→Outputs in this way:
B&Wpdf01

If the Preview Image displays as below with text appearing as grey andor when the PDF is plotted and the text is not legible due to what appears to be a line weight issue, additional files are needed in the network shared resources location.
B&Wpdf02

Create a new directory within the …DBWORKS_SERVERPAR directory named ACAD. Copy the txt.shx file from the local AutoCAD installation directory Fonts to the …DBWORKS_SERVERPARACAD directory. If this does not resolve the problem, copy all the .shx files from the Fonts directory to the ACAD directory.

Please note you must also disable the Options→General→More… [ ] Drawing→PDF: create full color PDF

B&Wpdf03

If using Master Drawing Mode to create PDF files, the PDF’s may be created in color and as a rasterized image. (see below)
B&Wpdf04

In order to resolve this you must perform the following:

  • Enable the DBWorks Options→General→More…[X] Drawing→PDF: Create full color PDF
  • Create a directory named ACAD within the …DBWORKS_SERVERPAR directory
  • Copy the monochrome.stb and monochrome.ctb files into the ACAD directory
    AutodeskACADM 2011UserDataCachePlottersPlot Styles
  • Copy the txt.shx file (or all .shx files) into the ACAD directory
    AutodeskACADM 2011Fonts
  • Update the OnCreateMasterDrawing.lst to eliminate the resolutionFactor (highlighted below in blue):
    DBWShell("MDConvert " & replace(originalFullFileName," ","|") & " " & replace(masterDrawingFileName," ","|") & " " & resolutionFactor)
20110502
Black and White PDF Creation

Set the Options→Revisions→Outputs in this way:
B&Wpdf01

If the Preview Image displays as below with text appearing as grey andor when the PDF is plotted and the text is not legible due to what appears to be a line weight issue, additional files are needed in the network shared resources location.
B&Wpdf02

Create a new directory within the …DBWORKS_SERVERPAR directory named ACAD. Copy the txt.shx file from the local AutoCAD installation directory Fonts to the …DBWORKS_SERVERPARACAD directory. If this does not resolve the problem, copy all the .shx files from the Fonts directory to the ACAD directory.

Please note you must also disable the Options→General→More… [ ] Drawing→PDF: create full color PDF

B&Wpdf03

If using Master Drawing Mode to create PDF files, the PDF’s may be created in color and as a rasterized image. (see below)
B&Wpdf04

In order to resolve this you must perform the following:

  • Enable the DBWorks Options→General→More…[X] Drawing→PDF: Create full color PDF
  • Create a directory named ACAD within the …DBWORKS_SERVERPAR directory
  • Copy the monochrome.stb and monochrome.ctb files into the ACAD directory
    AutodeskACADM 2011UserDataCachePlottersPlot Styles
  • Copy the txt.shx file (or all .shx files) into the ACAD directory
    AutodeskACADM 2011Fonts
  • Update the OnCreateMasterDrawing.lst to eliminate the resolutionFactor (highlighted below in blue):
    DBWShell("MDConvert " & replace(originalFullFileName," ","|") & " " & replace(masterDrawingFileName," ","|") & " " & resolutionFactor)
20110202
HP printers driver issue

The HP Universal Printing PCL 5 driver appears as a child process under SW and remains resident in memory after printing any document in SW.

When exiting SW, the driver remains resident in memory has a handle to the journal file and therefore when SW starts again, SW cannot actually create a new journal file because the driver has ownership of the file.

If you kill the hpmup091.bin process, then you will be able to start up SW without any issues.
HPdriver1 HPdriver2

20110202
HP printers driver issue

The HP Universal Printing PCL 5 driver appears as a child process under SW and remains resident in memory after printing any document in SW.

When exiting SW, the driver remains resident in memory has a handle to the journal file and therefore when SW starts again, SW cannot actually create a new journal file because the driver has ownership of the file.

If you kill the hpmup091.bin process, then you will be able to start up SW without any issues.
HPdriver1 HPdriver2

20101012
Cannot recognize a MW-like server directory while installing as a Client

During the installation as a Client, you may be alerted about the selected DBWORKS_SERVER shared folder that’s not recognized as a Mechworks server directory:
notMWServerDir

The check is performed against the following files:

  • LSTSYSTEMDBWORKS_CONVERSION_WIZARD.VBS
  • SCHEMATABLES2.DFL

if one of such files is missing the alert is shown.

20101012
Cannot recognize a MW-like server directory while installing as a Client

During the installation as a Client, you may be alerted about the selected DBWORKS_SERVER shared folder that’s not recognized as a Mechworks server directory:
notMWServerDir

The check is performed against the following files:

  • LSTSYSTEMDBWORKS_CONVERSION_WIZARD.VBS
  • SCHEMATABLES2.DFL

if one of such files is missing the alert is shown.

20100928
Windows Scripting Host corrupted by a KB

We have had some reporting about Microsoft update KB982802 that can destroy Windows scripting host functionality.

In case of repeated scripting errors in DBWorks, the coherence to KB982802 can be tested by using this script.
If the problems are related to KB982802, the script will crash with error code 800706C6 and the message “The array bounds are invalid”, otherwise you will get the message “Windows Scripting Host: Working!”.

In case of an affected machine, so far the only way to fix the issue is remove the update (by using %systemroot%$NtUninstallKB982802$spuninstspuninst.exe).

Further information:

20100928
Windows Scripting Host corrupted by a KB

We have had some reporting about Microsoft update KB982802 that can destroy Windows scripting host functionality.

In case of repeated scripting errors in DBWorks, the coherence to KB982802 can be tested by using this script.
If the problems are related to KB982802, the script will crash with error code 800706C6 and the message “The array bounds are invalid”, otherwise you will get the message “Windows Scripting Host: Working!”.

In case of an affected machine, so far the only way to fix the issue is remove the update (by using %systemroot%$NtUninstallKB982802$spuninstspuninst.exe).

Further information:

20100709
SW2011 compatibility issue

The current version of R11sp2.x is not suitable for Solidworks 2011 (whom beta build has been recently released) because it’s not compliant with vs2008 compiler yet.

Mechworks plans for supporting such version are about distributing a specific R11sp3. No date about publishing has been fixed yet.

This page will be updated according with plans development.

20100709
SW2011 compatibility issue

The current version of R11sp2.x is not suitable for Solidworks 2011 (whom beta build has been recently released) because it’s not compliant with vs2008 compiler yet.

Mechworks plans for supporting such version are about distributing a specific R11sp3. No date about publishing has been fixed yet.

This page will be updated according with plans development.

20100706
SW hangs whe opening DBWorks options

When opening the DBWorks options you may experience an hanging of the CAD application.

It seems to be an issue that can be verified on systems with NVIDIA graphic cards only, and so far the updating of the card driver has solved the problem.

20100706
SW hangs whe opening DBWorks options

When opening the DBWorks options you may experience an hanging of the CAD application.

It seems to be an issue that can be verified on systems with NVIDIA graphic cards only, and so far the updating of the card driver has solved the problem.

20100702
Missing labels in user interface

Description

When using VMWare virtual machines, you may experience to see the application (in this case Autodesk Inventor) user interface labels missing

Ribbon bars:
INVlabels00

Menus:
INVlabels01

This issue is caused by 3D acceleration on in VMWare environment (here is a thread about).

Disabling the 3d acceleration solves the issue
INVlabels02

More, here is some futher info about how to disable vmware 3d acceleration

20100702
Missing labels in user interface

Description

When using VMWare virtual machines, you may experience to see the application (in this case Autodesk Inventor) user interface labels missing

Ribbon bars:
INVlabels00

Menus:
INVlabels01

This issue is caused by 3D acceleration on in VMWare environment (here is a thread about).

Disabling the 3d acceleration solves the issue
INVlabels02

More, here is some futher info about how to disable vmware 3d acceleration

20100622
Script required during installation on windows 7

During installations on Windows7 platform, it may occur to receive the following alert:
ScriptRequired00

  • If you’re installing for the 1st time (so no other build is present on the workstation), please send immediately the Microsoft log plus the Mechworks log to support@mechworks.com
    Both logs are located in the user temporary folder (if you type %TMP% or %TEMP% you will be brought there):

    • Microsoft log is a file named like MSI*****.LOG (where ***** are random characters)
    • Mechworks log is a file named exactly DBW_MSI_LOG.TXT
  • if you’re updating an existing installation (or other builds were previously installed on the workstation), you’ve to uninstall completely the DBWorks/DBInventor/Mechworks_PDM application through the Windows installer clean up (msicuu.exe, you can download it from here):
    ScriptRequired02ScriptRequired02b
    Then try install again

Summary of the step by step procedure

  1. uninstall program through the control panel
  2. use the Windows installer clean up tool as described above in this page to verify that no program is still present

then remove, if existing, following folders and subfolders:

  1. %programfiles%MechworksMechworks_PDM
  2. %programfiles%DBWorks
  3. %programfiles%DBWorks Standalone
  4. %programfiles(x86)%DBWorks
  5. %commonprogramfiles%Mechworks
  6. %commonprogramfiles(x86)%Mechworks

then rename/remove registry entries:

  1. HKEY_LOCAL_MACHINESOFTWAREMechworks
  2. HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMechWorks

finally

  1. reboot and install again
20100622
Script required during installation on windows 7

During installations on Windows7 platform, it may occur to receive the following alert:
ScriptRequired00

  • If you’re installing for the 1st time (so no other build is present on the workstation), please send immediately the Microsoft log plus the Mechworks log to support@mechworks.com
    Both logs are located in the user temporary folder (if you type %TMP% or %TEMP% you will be brought there):

    • Microsoft log is a file named like MSI*****.LOG (where ***** are random characters)
    • Mechworks log is a file named exactly DBW_MSI_LOG.TXT
  • if you’re updating an existing installation (or other builds were previously installed on the workstation), you’ve to uninstall completely the DBWorks/DBInventor/Mechworks_PDM application through the Windows installer clean up (msicuu.exe, you can download it from here):
    ScriptRequired02ScriptRequired02b
    Then try install again

Summary of the step by step procedure

  1. uninstall program through the control panel
  2. use the Windows installer clean up tool as described above in this page to verify that no program is still present

then remove, if existing, following folders and subfolders:

  1. %programfiles%MechworksMechworks_PDM
  2. %programfiles%DBWorks
  3. %programfiles%DBWorks Standalone
  4. %programfiles(x86)%DBWorks
  5. %commonprogramfiles%Mechworks
  6. %commonprogramfiles(x86)%Mechworks

then rename/remove registry entries:

  1. HKEY_LOCAL_MACHINESOFTWAREMechworks
  2. HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMechWorks

finally

  1. reboot and install again
20100617
SW freezes if you open a drawing of a part that's already opened

In SW2010sp3.1 there’s an issue that freezes the application if –through an API call (as DBWorks does)– you open a drawing of a part that’s already opened in the CAD.
Usually it’s verified through PDM applications and on 32bit environments.

swfreezes

This behavior is caused by OpenDoc6 API call that makes SolidWorks hanging on successive calls
The reference is SPR 562729

As workaround you can close the part before opening the drawing or rollback to SW2010sp2.1

20100617
SW freezes if you open a drawing of a part that's already opened

In SW2010sp3.1 there’s an issue that freezes the application if –through an API call (as DBWorks does)– you open a drawing of a part that’s already opened in the CAD.
Usually it’s verified through PDM applications and on 32bit environments.

swfreezes

This behavior is caused by OpenDoc6 API call that makes SolidWorks hanging on successive calls
The reference is SPR 562729

As workaround you can close the part before opening the drawing or rollback to SW2010sp2.1

20100429
Solidworks crash on w7 when opening an assembly

Some users reported us a Solidworks crash on Windows7 platform after opening an assembly
swCrashW7

An HotFix that is available to resolve this issue within SolidWorks 2010 SP 2.1 and implemented into SolidWorks 2010 SP 3.0.
The HotFix reference is 537666 and the SolidWorks Solution ID is S-047064.

20100429
Solidworks crash on w7 when opening an assembly

Some users reported us a Solidworks crash on Windows7 platform after opening an assembly
swCrashW7

An HotFix that is available to resolve this issue within SolidWorks 2010 SP 2.1 and implemented into SolidWorks 2010 SP 3.0.
The HotFix reference is 537666 and the SolidWorks Solution ID is S-047064.

20100409
Enable support for .NET scripting

It’s possible to program .NET scripts (C# and VBNET) to be run as usual .lst scripts

The .NET engine is configured at installation time, so you do not have to perform any action to make .NET scripts run.
On x64 platforms, you’ve to kill the DBWScriptCOM.exe process every time you modify the script.
Of course we’re working to avoid this in next builds.

In case, here is the manual procedure to enable .NET scripting support:

  1. execute
    %CommonProgramFiles%MechworksSharedDBWLibSetupregister_dot_net_scripting.bat

    or

    %CommonProgramFiles(x86)%MechworksSharedDBWLibSetupregister_dot_net_scriptingx64.bat

    depending on the platform (x86 vs x64)

  2. execute
    %CommonProgramFiles%MechworksSharedDBWLibSetupDBWCSSUIinstall.cmd

    or

    %CommonProgramFiles(x86)%MechworksSharedDBWLibSetupDBWCSSUIinstall.cmd

    depending on the platform (x86 vs x64)

 

To test it, just enable the option for OnOk.LST script and copy the LSTDEMO_CSOnOK.LST.CS in LST folder, then when clicking the OK button in the input data form, you should see a messagebox that returns the filename.

20100409
Enable support for .NET scripting

It’s possible to program .NET scripts (C# and VBNET) to be run as usual .lst scripts

The .NET engine is configured at installation time, so you do not have to perform any action to make .NET scripts run.
On x64 platforms, you’ve to kill the DBWScriptCOM.exe process every time you modify the script.
Of course we’re working to avoid this in next builds.

In case, here is the manual procedure to enable .NET scripting support:

  1. execute
    %CommonProgramFiles%MechworksSharedDBWLibSetupregister_dot_net_scripting.bat

    or

    %CommonProgramFiles(x86)%MechworksSharedDBWLibSetupregister_dot_net_scriptingx64.bat

    depending on the platform (x86 vs x64)

  2. execute
    %CommonProgramFiles%MechworksSharedDBWLibSetupDBWCSSUIinstall.cmd

    or

    %CommonProgramFiles(x86)%MechworksSharedDBWLibSetupDBWCSSUIinstall.cmd

    depending on the platform (x86 vs x64)

 

To test it, just enable the option for OnOk.LST script and copy the LSTDEMO_CSOnOK.LST.CS in LST folder, then when clicking the OK button in the input data form, you should see a messagebox that returns the filename.

20100310
"Disk 1 requested" dialog during installation

During the installation from a dbworks.exe, dbinventor.exe, dbwalone.exe (not dbworksMSI.exe) installer, you could be asked for a disk to be inserted since some file is missing.

The following fixing is provided by InstallShield.

 

The -a and -deleter command-line options prevent the installation from cleaning up too early. Pass the -a and -deleter command-line options to the installation file through the command line. To do so, follow these steps:

  1. Determine the location of the installation:
    • If the installation is being run from a CD, using Windows Explorer browse to the CD-ROM drive and locate the installation file. The typical names for installation files are setup.exe, update.exe, installer.exe, etc.
    • If the installation was downloaded from the Internet and saved to your computer (e.g., your Desktop), using Windows Explorer, browse to the location where you have saved the executable file package.

    disk1_01

  2. Copy the location and file name, for example:
    C:WINNTProfilesAdministratorDesktopYourApplicationName.exe
  3. Select Start > Run and paste or type the location and file name surrounded by double quotes into the Open field:
    disk1_02
  4. Add the -a and -deleter command-line options, making sure to have spaces before each ‘-‘:
    disk1_03
  5. Click OK. The installation should extract and run without errors.
20100310
"Disk 1 requested" dialog during installation

During the installation from a dbworks.exe, dbinventor.exe, dbwalone.exe (not dbworksMSI.exe) installer, you could be asked for a disk to be inserted since some file is missing.

The following fixing is provided by InstallShield.

 

The -a and -deleter command-line options prevent the installation from cleaning up too early. Pass the -a and -deleter command-line options to the installation file through the command line. To do so, follow these steps:

  1. Determine the location of the installation:
    • If the installation is being run from a CD, using Windows Explorer browse to the CD-ROM drive and locate the installation file. The typical names for installation files are setup.exe, update.exe, installer.exe, etc.
    • If the installation was downloaded from the Internet and saved to your computer (e.g., your Desktop), using Windows Explorer, browse to the location where you have saved the executable file package.

    disk1_01

  2. Copy the location and file name, for example:
    C:\WINNT\Profiles\Administrator\Desktop\YourApplicationName.exe
  3. Select Start > Run and paste or type the location and file name surrounded by double quotes into the Open field:
    disk1_02
  4. Add the -a and -deleter command-line options, making sure to have spaces before each ‘-‘:
    disk1_03
  5. Click OK. The installation should extract and run without errors.
20100310
Unexpected error (code 2738) during installation

Description

During the installation, you may be prompted with an error message like:

The installer has encountered an unexpected error installing this package.
This may indicate a problem with this package. The error code is 2738

Solution

  • Windows XP
    1. if missing, download the latest VBScript engine from Microsoft.
    2. On the Start menu, click Run
    3. In the dialog enter the following command and click “OK”
      regsvr32 vbscript.dll
    4. A message should appear stating that the “DllRegisterServer in vbscript.dll succeeded.”
    5. Finally restart the installer

     

  • Windows Vista, Windows 7
    1. In the Start menu, type cmd in the Start Search field.
    2. Right-click on cmd in the list of search results and click Run as administrator in the pop-up menu. If Windows needs your permission to continue, click Continue (If you are not logged in as an administrator, you will need to authenticate with an administrator login and password).
    3. In the Command Prompt window, enter the following command:
      regsvr32 vbscript.dll
    4. Type Enter on the keyboard. A message should appear stating: “DllRegisterServer in vbscript.dll succeeded.”
      Note: If you see a message with “error code 0x80004005”, the command window was not opened as an administrator.
    5. Finally restart the installer

     

  • Windows 7
    If the above procedure is not effective or if the error message is Could not access VBScript Runtime you can read the alternative fix provided by Microsoft IT for the issue.
20100310
Unexpected error (code 2738) during installation

Description

During the installation, you may be prompted with an error message like:

The installer has encountered an unexpected error installing this package.
This may indicate a problem with this package. The error code is 2738

Solution

  • Windows XP
    1. if missing, download the latest VBScript engine from Microsoft.
    2. On the Start menu, click Run
    3. In the dialog enter the following command and click “OK”
      regsvr32 vbscript.dll
    4. A message should appear stating that the “DllRegisterServer in vbscript.dll succeeded.”
    5. Finally restart the installer

     

  • Windows Vista, Windows 7
    1. In the Start menu, type cmd in the Start Search field.
    2. Right-click on cmd in the list of search results and click Run as administrator in the pop-up menu. If Windows needs your permission to continue, click Continue (If you are not logged in as an administrator, you will need to authenticate with an administrator login and password).
    3. In the Command Prompt window, enter the following command:
      regsvr32 vbscript.dll
    4. Type Enter on the keyboard. A message should appear stating: “DllRegisterServer in vbscript.dll succeeded.”
      Note: If you see a message with “error code 0x80004005”, the command window was not opened as an administrator.
    5. Finally restart the installer

     

  • Windows 7
    If the above procedure is not effective or if the error message is Could not access VBScript Runtime you can read the alternative fix provided by Microsoft IT for the issue.
20100226
How to manage Solidworks detached drawings with DBWorks

The full management of Solidworks detached drawings is planned for next major release of DBWorks (R12)

Meanwhile -as a workaround- it’s possible to do a couple of steps that allows the user to use such feature as well:


  1. the drawing, even if detached, appears as a common drawing in DBWorks

    detached01

    detached02
  2. Open the drawing in View-only mode

    detached03
  3. Once opened, no data is available since it’s view-only

    detached04

    so click rmb→Load sheet

    detached05

    to obtain the loading of the drawing without the model (detached).

20100226
How to manage Solidworks detached drawings with DBWorks

The full management of Solidworks detached drawings is planned for next major release of DBWorks (R12)

Meanwhile -as a workaround- it’s possible to do a couple of steps that allows the user to use such feature as well:


  1. the drawing, even if detached, appears as a common drawing in DBWorks

    detached01

    detached02
  2. Open the drawing in View-only mode

    detached03
  3. Once opened, no data is available since it’s view-only

    detached04

    so click rmb→Load sheet

    detached05

    to obtain the loading of the drawing without the model (detached).

20100210
Upload/Download a file on/from the Mechworks FTP site

For sending or receiving (large) files we provide our customer and resellers an FTP site.

Here below is the data for accessing it:

  • ftp: mechworks.smartfile.com
  • login: dbw_support
  • password: dbworks

Once logged you’ve to enter the Upload folder and place there your files.
Please note once uploaded, files cannot be downloaded or deleted by anyone but MechWorks staff.

(!) Please remember to notify MechWorks when the upload of files has finished so to optimize the issue scheduling time.

20100210
Upload/Download a file on/from the Mechworks FTP site

For sending or receiving (large) files we provide our customer and resellers an FTP site.

Here below is the data for accessing it:

  • ftp: mechworks.smartfile.com
  • login: dbw_support
  • password: dbworks

Once logged you’ve to enter the Upload folder and place there your files.
Please note once uploaded, files cannot be downloaded or deleted by anyone but MechWorks staff.

(!) Please remember to notify MechWorks when the upload of files has finished so to optimize the issue scheduling time.

20100118
Starting DBWorks addin with a delay to avoid crashes

Especially on x64 platforms, you can experience some crashes at Solidworks startup if you’re loading more than one addin at the same time.

To get the system more stable, a new feature (available starting from build 20090716) has been introduced for delaying the load of DBWorks addin.

To enable it you’ve to create this registry key:

HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks 2009MechWorks-AddinStartupDelayTime

and a DWORD entry named AddinStartupDelayTime and containing the value (in seconds) of the delay.

issue_swDelayStart01

this setting produces a delay of 5 seconds;

20100118
Starting DBWorks addin with a delay to avoid crashes

Especially on x64 platforms, you can experience some crashes at Solidworks startup if you’re loading more than one addin at the same time.

To get the system more stable, a new feature (available starting from build 20090716) has been introduced for delaying the load of DBWorks addin.

To enable it you’ve to create this registry key:

HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks 2009MechWorks-AddinStartupDelayTime

and a DWORD entry named AddinStartupDelayTime and containing the value (in seconds) of the delay.

issue_swDelayStart01

this setting produces a delay of 5 seconds;

20100113
Solidworks 2009sp5.1 and 2010sp1 crash when opening a document

Users that installed sw2009sp5.1 or sw2010sp1 (and often also sp2) are experiencing crashes when opening a document.

Mainly the two class of issues are:

  • systematically reproduceable crashes using the OpenDoc6 API call
    it appears that the crash happens when DBW addin is installed (no crash without it)
  • OpenDoc6 returning the control back to the add-in when it still has NOT finished to load the document
    this may also lead to further crash since the add-in does not expect that OpenDoc6 may return before having fully loaded the document (verified typically on sufficiently LARGE ASSEMBLIES)

According to Sw support, this issue has been fixed in sp2 plus the hotfix in Knowledge base solution S-046180 and S-047064

As reference please read

  • SPR 449379 (Multiple OpenDoc6 calls crashes SolidWorks if SystemOption Performance ‘Automatically load components lightweight’ is SET)
  • SPR 517452 from Knowledge base
20100113
Solidworks 2009sp5.1 and 2010sp1 crash when opening a document

Users that installed sw2009sp5.1 or sw2010sp1 (and often also sp2) are experiencing crashes when opening a document.

Mainly the two class of issues are:

  • systematically reproduceable crashes using the OpenDoc6 API call
    it appears that the crash happens when DBW addin is installed (no crash without it)
  • OpenDoc6 returning the control back to the add-in when it still has NOT finished to load the document
    this may also lead to further crash since the add-in does not expect that OpenDoc6 may return before having fully loaded the document (verified typically on sufficiently LARGE ASSEMBLIES)

According to Sw support, this issue has been fixed in sp2 plus the hotfix in Knowledge base solution S-046180 and S-047064

As reference please read

  • SPR 449379 (Multiple OpenDoc6 calls crashes SolidWorks if SystemOption Performance ‘Automatically load components lightweight’ is SET)
  • SPR 517452 from Knowledge base
20100111
DBWorks toolbar is hidden at every SW2010/11 restart

Starting from SW2010 the DBWorks toolbar is hidden every time you start the CAD.

To fix the issue you’ve to create a specific registry entry:

  • Solidworks 2010
    • x86 installations
      [HKEY_CLASSES_ROOTCLSID{1B7E4070-EE31-4B23-9CAE-34A5C06B8CE4}InProcServer32]
      @="C:\Program Files\DBWORKS\bin\VS2005\dbworks.dll"
    • x64 installations
      [HKEY_CLASSES_ROOTCLSID{1B7E4070-EE31-4B23-9CAE-34A5C06B8CE4}InProcServer32]
      @="C:\Program Files (x86)\DBWORKS\bin\x64\dbworks.dll"
  • Solidworks 2011
    • x86 installations
      [HKEY_CLASSES_ROOTCLSID{1B7E4070-EE31-4B23-9CAE-34A5C06B8CE4}InProcServer32]
      @="C:\Program Files\DBWORKS\bin\VS2008\x86\dbworks.dll"
    • x64 installations
      [HKEY_CLASSES_ROOTCLSID{1B7E4070-EE31-4B23-9CAE-34A5C06B8CE4}InProcServer32]
      @="C:\Program Files (x86)\DBWORKS\bin\vs2008\x64\dbworks.dll"

This issue has been fixed starting from R11 build 20100108 (DBWorksMSI.exe installer only)

20100111
DBWorks toolbar is hidden at every SW2010/11 restart

Starting from SW2010 the DBWorks toolbar is hidden every time you start the CAD.

To fix the issue you’ve to create a specific registry entry:

  • Solidworks 2010
    • x86 installations
      [HKEY_CLASSES_ROOTCLSID{1B7E4070-EE31-4B23-9CAE-34A5C06B8CE4}InProcServer32]
      @="C:\Program Files\DBWORKS\bin\VS2005\dbworks.dll"
    • x64 installations
      [HKEY_CLASSES_ROOTCLSID{1B7E4070-EE31-4B23-9CAE-34A5C06B8CE4}InProcServer32]
      @="C:\Program Files (x86)\DBWORKS\bin\x64\dbworks.dll"
  • Solidworks 2011
    • x86 installations
      [HKEY_CLASSES_ROOTCLSID{1B7E4070-EE31-4B23-9CAE-34A5C06B8CE4}InProcServer32]
      @="C:\Program Files\DBWORKS\bin\VS2008\x86\dbworks.dll"
    • x64 installations
      [HKEY_CLASSES_ROOTCLSID{1B7E4070-EE31-4B23-9CAE-34A5C06B8CE4}InProcServer32]
      @="C:\Program Files (x86)\DBWORKS\bin\vs2008\x64\dbworks.dll"

This issue has been fixed starting from R11 build 20100108 (DBWorksMSI.exe installer only)

20091210
How to make WebClient working on IE8

In order to get WebClient to not crash out in IE8 due to DEP (Data Execution Prevention) the following setting must be unchecked
issue_ie8_01

(italian settings)
issue_ie8_02

and then IE8 must be restarted.

20091210
How to make WebClient working on IE8

In order to get WebClient to not crash out in IE8 due to DEP (Data Execution Prevention) the following setting must be unchecked
issue_ie8_01

(italian settings)
issue_ie8_02

and then IE8 must be restarted.

20091204
SW2010 changes focus while inserting a part to an assembly

Starting from SW2010sp0.0 only, when inserting a part into an assembly, the FOCUS immediatley goes from the assembly to the in-session part.

It happens if the folder that the in-session file is from does not have BROWSE functionality.

DBWorks users can experience it from the no-browse functionality of DBWServer (but this issue can be recreated without DBWorks and without DBWServer).

An issue has been opened to sw support:
SPR 529730: (Inserting active part from directory with denied List folder contents / read data permission loses focus when inserted into assembly.)

As a workaround users can insert components into assemblies from DBWorks Browser or from another active component window

20091204
SW2010 changes focus while inserting a part to an assembly

Starting from SW2010sp0.0 only, when inserting a part into an assembly, the FOCUS immediatley goes from the assembly to the in-session part.

It happens if the folder that the in-session file is from does not have BROWSE functionality.

DBWorks users can experience it from the no-browse functionality of DBWServer (but this issue can be recreated without DBWorks and without DBWServer).

An issue has been opened to sw support:
SPR 529730: (Inserting active part from directory with denied List folder contents / read data permission loses focus when inserted into assembly.)

As a workaround users can insert components into assemblies from DBWorks Browser or from another active component window

20091113
Wrong characters or line widths after PDF creation

To obtain a correct PDF creation through the MDConvert function (tipically used in Master Drawing Mode) you have to copy all the needed *.SHX and *.CTB files (from the Autocad installation) in the shared <GlobalParametersPath>PAR sub-directory.

Typical issues produced by such files missing (under the PAR folder) are:

  • wrong/uncomplete character set
  • wrong/different line widths
20091113
Wrong characters or line widths after PDF creation

To obtain a correct PDF creation through the MDConvert function (tipically used in Master Drawing Mode) you have to copy all the needed *.SHX and *.CTB files (from the Autocad installation) in the shared <GlobalParametersPath>PAR sub-directory.

Typical issues produced by such files missing (under the PAR folder) are:

  • wrong/uncomplete character set
  • wrong/different line widths
20091106
DBInventor ribbon bar for Inventor2010

Starting from R11 sp1.2 even in Inventor2010 the ribbon bar user interface is available for DBInventor.

This enhancement allows to overcome (almost completely) the issue introduced by Inventor 2010 sp1 that removes the icons from the common toolbar.

issue_acad2010ribbon00

To access the buttons not included in the ribbon bar (Open for updating, About DBInventor…, …) yuo can add a textual toolbar as suggested in the previously quoted issue.
Let’s see step by step procedure:

  1. Click customize from the Tools ribbon bar
    issue_acad2010ribbon01
  2. In the Toolbar tab create a New toolbar
    issue_acad2010ribbon02
  3. Then it’s time to fill the just created toolbar (that’s empty) with the missing functionalities:
    Go to Commands tab and select Add-ins category:
    issue_acad2010ribbon03
  4. Then drag the desidered functionality from the Commands list and drop it on the toolbar
    issue_acad2010ribbon05
  5. Finally you’ll have a toolbar (that won’t be emptied since it’s textual) for retrieve functionality not available directly from ribbon bar
    issue_acad2010ribbon04
20091106
DBInventor ribbon bar for Inventor2010

Starting from R11 sp1.2 even in Inventor2010 the ribbon bar user interface is available for DBInventor.

This enhancement allows to overcome (almost completely) the issue introduced by Inventor 2010 sp1 that removes the icons from the common toolbar.

issue_acad2010ribbon00

To access the buttons not included in the ribbon bar (Open for updating, About DBInventor…, …) yuo can add a textual toolbar as suggested in the previously quoted issue.
Let’s see step by step procedure:

  1. Click customize from the Tools ribbon bar
    issue_acad2010ribbon01
  2. In the Toolbar tab create a New toolbar
    issue_acad2010ribbon02
  3. Then it’s time to fill the just created toolbar (that’s empty) with the missing functionalities:
    Go to Commands tab and select Add-ins category:
    issue_acad2010ribbon03
  4. Then drag the desidered functionality from the Commands list and drop it on the toolbar
    issue_acad2010ribbon05
  5. Finally you’ll have a toolbar (that won’t be emptied since it’s textual) for retrieve functionality not available directly from ribbon bar
    issue_acad2010ribbon04
20091103
DBInventor toolbar icons emptied after installing sp1.0 of Inventor2010

After installing sp1 on Inventor 2010 (no matter the platform) the DBInventor toolbar icons disappear, even after the suggestions to keep the toolbar visible.

issue_acad2010sp1_01

As workaround, at the moment, you can customize the toolbar by removing the icons and replacing them with correspondent textual button (dragging them from the Customize→Commands→Addin commands to the toolbar itself):
issue_acad2010sp1_02
so to obtain a textual Toolbar that won’t disappear:
issue_acad2010sp1_00

20091103
DBInventor toolbar icons emptied after installing sp1.0 of Inventor2010

After installing sp1 on Inventor 2010 (no matter the platform) the DBInventor toolbar icons disappear, even after the suggestions to keep the toolbar visible.

issue_acad2010sp1_01

As workaround, at the moment, you can customize the toolbar by removing the icons and replacing them with correspondent textual button (dragging them from the Customize→Commands→Addin commands to the toolbar itself):
issue_acad2010sp1_02
so to obtain a textual Toolbar that won’t disappear:
issue_acad2010sp1_00

20091006
Windows7 compatibility issue

In this page you’ll find information about the Microsoft Windows7 compatibility for Mechworks products.
Following contents will be updated according with new issues or information gained during our tests or thanks to users feedback.

Required software version

Windows7 platform is officially supported by our products starting from R11sp2
For this reason we’re not able to provide support on windows7 platform for earlier releases.

On Windows7 operating systems you can install only R11sp2 (and newer) releases of Mechworks products.
R10 and 2007 releases won’t allow you to install.

.NET porting

Since the Microsoft Java Virtual Machine is not supported under Microsoft Windows7 operating system anymore, we’ve made a porting under .NET platform for all the components that used java code.

UAC

When installing, you may need to execute the installer as administrator
InstallStepByStep01

also you need to lower the UAC (User Account Control) level:
UACw7_01
UACw7_02

20091006
Windows7 compatibility issue

In this page you’ll find information about the Microsoft Windows7 compatibility for Mechworks products.
Following contents will be updated according with new issues or information gained during our tests or thanks to users feedback.

Required software version

Windows7 platform is officially supported by our products starting from R11sp2
For this reason we’re not able to provide support on windows7 platform for earlier releases.

On Windows7 operating systems you can install only R11sp2 (and newer) releases of Mechworks products.
R10 and 2007 releases won’t allow you to install.

.NET porting

Since the Microsoft Java Virtual Machine is not supported under Microsoft Windows7 operating system anymore, we’ve made a porting under .NET platform for all the components that used java code.

UAC

When installing, you may need to execute the installer as administrator
InstallStepByStep01

also you need to lower the UAC (User Account Control) level:
UACw7_01
UACw7_02

20090917
Silent install for MechworksPDM package

DBWorksMsi.exe and MechWorks_Pdm_Ryy_SPx_x.exe

Here below are the specific Mechworks PDM parameters
(further info about msiexec command are available at this Microsoft KB topic).

parameter description possible values
ADD_LOCAL the equivalent of:
installMSI02
ALL
REMOVE the equivalent of:
installMSI01
Standalone
AdminTools
GLOBAL_PARAMETERS_PATH the path where to look for DBWAPP.PAR
INSTALLATION_TYPE lets you choose the type of installation Client
Individual
Server
DBW_LANG EN
IT
FR
ES
DE
APPDIR the local path to install the application
SOLIDWORKS_INSTALLED Yes
No
SOLIDWORKS_VERSION 2011
2012
2013

Command line example

rem features REMOVE=Standalone
rem features REMOVE=DBInventor
rem features DBSolidEdge
rem features DBWorks
rem features REMOVE=AdminTools 
rem parameters GLOBAL_PARAMETERS_PATH 
rem parameters INSTALLATION_TYPE valid values are Client,Individual,Server
rem parameters DBW_LANG valid values are EN,IT,FR,ES,DE
rem SOLIDWORKS_INSTALLED=Yes SOLIDWORKS_VERSION=2011
rem parameters APPDIR

MechWorks_Pdm_Msi_R13_SP1_0.exe /qb /l*vx %temp%installmsi.log ADDLOCAL=ALL REMOVE=DBSolidEdge,DBInventor GLOBAL_PARAMETERS_PATH=Y:dbworks_server_ger 
INSTALLATION_TYPE=Client DBW_LANG="DE" APPDIR="%programfiles(x86)%MechWorksMechWorks_Pdm" SOLIDWORKS_INSTALLED=Yes SOLIDWORKS_VERSION=2012

Proprietary command line switches

 /extract <path>

Extracts the MSI contained by the EXE to the specified location. If the path contains spaces you must enclose it in quotes:

Mypackage.exe /extract:"C:My work"

This command will extract the Mypackage.msi file in the “My work” folder.

/? and /help

Both these commands will display a help dialog containing the command line options for the EXE setup.

/exenoui

Launches the EXE setup without UI.

/exebasicui

Launches the EXE setup with basic UI.

The UI level set using the above command line options will overwrite the default UI level specified when the package was built.

/listlangs

Lists the languages supported by the EXE setup.

/exelang <langId>

Launches the EXE setup using the specified language. This command line option will have effect only if the EXE setup was build with the language selection dialog

You can use both an UI level and /exelang command line options at the same time.
These commands affect only the language selection dialog and the dialogs in the prerequisite wizard. In order to also affect the MSI package please use the standard MSIEXEC command line parameters. Note that the MSI parameters must come after the boostrapper parameters.

20090917
Silent install for MechworksPDM package

DBWorksMsi.exe and MechWorks_Pdm_Ryy_SPx_x.exe

Here below are the specific Mechworks PDM parameters
(further info about msiexec command are available at this Microsoft KB topic).

parameter description possible values
ADD_LOCAL the equivalent of:
installMSI02
ALL
REMOVE the equivalent of:
installMSI01
Standalone
AdminTools
GLOBAL_PARAMETERS_PATH the path where to look for DBWAPP.PAR
INSTALLATION_TYPE lets you choose the type of installation Client
Individual
Server
DBW_LANG EN
IT
FR
ES
DE
APPDIR the local path to install the application
SOLIDWORKS_INSTALLED Yes
No
SOLIDWORKS_VERSION 2011
2012
2013

Command line example

rem features REMOVE=Standalone
rem features REMOVE=DBInventor
rem features DBSolidEdge
rem features DBWorks
rem features REMOVE=AdminTools 
rem parameters GLOBAL_PARAMETERS_PATH 
rem parameters INSTALLATION_TYPE valid values are Client,Individual,Server
rem parameters DBW_LANG valid values are EN,IT,FR,ES,DE
rem SOLIDWORKS_INSTALLED=Yes SOLIDWORKS_VERSION=2011
rem parameters APPDIR

MechWorks_Pdm_Msi_R13_SP1_0.exe /qb /l*vx %temp%installmsi.log ADDLOCAL=ALL REMOVE=DBSolidEdge,DBInventor GLOBAL_PARAMETERS_PATH=Y:dbworks_server_ger 
INSTALLATION_TYPE=Client DBW_LANG="DE" APPDIR="%programfiles(x86)%MechWorksMechWorks_Pdm" SOLIDWORKS_INSTALLED=Yes SOLIDWORKS_VERSION=2012

Proprietary command line switches

 /extract <path>

Extracts the MSI contained by the EXE to the specified location. If the path contains spaces you must enclose it in quotes:

Mypackage.exe /extract:"C:My work"

This command will extract the Mypackage.msi file in the “My work” folder.

/? and /help

Both these commands will display a help dialog containing the command line options for the EXE setup.

/exenoui

Launches the EXE setup without UI.

/exebasicui

Launches the EXE setup with basic UI.

The UI level set using the above command line options will overwrite the default UI level specified when the package was built.

/listlangs

Lists the languages supported by the EXE setup.

/exelang <langId>

Launches the EXE setup using the specified language. This command line option will have effect only if the EXE setup was build with the language selection dialog

You can use both an UI level and /exelang command line options at the same time.
These commands affect only the language selection dialog and the dialogs in the prerequisite wizard. In order to also affect the MSI package please use the standard MSIEXEC command line parameters. Note that the MSI parameters must come after the boostrapper parameters.

20090724
Different DWG preview quality in standalone and integrated version on x64 systems

On x64 system only, you can experience a different image quality (despite of the same parameters set) when previewing a DWG document in StandaloneClient and integrated version of Mechworks products.

Here below a clear example:

issue_DWGpreview01 issue_DWGpreview02
DWG preview in Integrated version (JPG) DWG preview in StandaloneClient (vectorial)

This behavior depends on the option User Interface→Preview→Max file size for vectorial DWG preview:
If set to 0 it means “Use vectorial preview”, if set to 10 means “Always create a JPG image”

Since the vectorial viewer is a 32bit control, it won’t work on x64 environment; to make up for the lack of this, it’s forced to create a JPG image (better quality) for visualizing the preview as well. On the other hand, StandaloneClient is a 32bit process and it’s able to make the vectorial viewer working as expected: a vectorial preview (worse quality) is so created.

A workaround to this behavior it’s to set -for StandaloneClient only- the Max file size for vectorial DWG preview option as “10” value so to force the creation of a JPG image that will result better defined and consistent with Integrated version preview.

20090724
Different DWG preview quality in standalone and integrated version on x64 systems

On x64 system only, you can experience a different image quality (despite of the same parameters set) when previewing a DWG document in StandaloneClient and integrated version of Mechworks products.

Here below a clear example:

issue_DWGpreview01 issue_DWGpreview02
DWG preview in Integrated version (JPG) DWG preview in StandaloneClient (vectorial)

This behavior depends on the option User Interface→Preview→Max file size for vectorial DWG preview:
If set to 0 it means “Use vectorial preview”, if set to 10 means “Always create a JPG image”

Since the vectorial viewer is a 32bit control, it won’t work on x64 environment; to make up for the lack of this, it’s forced to create a JPG image (better quality) for visualizing the preview as well. On the other hand, StandaloneClient is a 32bit process and it’s able to make the vectorial viewer working as expected: a vectorial preview (worse quality) is so created.

A workaround to this behavior it’s to set -for StandaloneClient only- the Max file size for vectorial DWG preview option as “10” value so to force the creation of a JPG image that will result better defined and consistent with Integrated version preview.

20090625
Restoring toolbars after updating from R10 to R11 under SW2009

After installing R11 release on a previous R10 one, you’ve to manually restore the DBWorks toolbar visibility since some changes were necessary to support the new SW2009 ribbon bar interface.

Suppose you had the R10 toolbar set as in the picture:
issue_toolbar01

Right after the R11 installation, at the first SW run you’ll see the toolbar empty, like this:
issue_toolbar02

To restore the previous layout, first of all you’ve to make the new R11 toolbar visible:
issue_toolbar03

so to see the buttons again:
issue_toolbar04

Then you’ve to remove the R10 empty toolbar by dragging it outside the docking area or by double clicking the docking border;
finally you’ve to make it not visible anymore by right clicking the dialog title and choosing “Hide”:
issue_toolbar05

20090625
Restoring toolbars after updating from R10 to R11 under SW2009

After installing R11 release on a previous R10 one, you’ve to manually restore the DBWorks toolbar visibility since some changes were necessary to support the new SW2009 ribbon bar interface.

Suppose you had the R10 toolbar set as in the picture:
issue_toolbar01

Right after the R11 installation, at the first SW run you’ll see the toolbar empty, like this:
issue_toolbar02

To restore the previous layout, first of all you’ve to make the new R11 toolbar visible:
issue_toolbar03

so to see the buttons again:
issue_toolbar04

Then you’ve to remove the R10 empty toolbar by dragging it outside the docking area or by double clicking the docking border;
finally you’ve to make it not visible anymore by right clicking the dialog title and choosing “Hide”:
issue_toolbar05

20090616
Some notes on the "invalid argument" error

The invalid argument error could be originated by several causes.

It’s quite difficult to recognize its specific cause since it’s the result of an internal exception.
At the moment Solidworks support has fixed lots of them, so the best way to get it fixed is:

  1. update to Solidworks last service pack
  2. report any still present invalid argument to SW support
20090616
Some notes on the "invalid argument" error

The invalid argument error could be originated by several causes.

It’s quite difficult to recognize its specific cause since it’s the result of an internal exception.
At the moment Solidworks support has fixed lots of them, so the best way to get it fixed is:

  1. update to Solidworks last service pack
  2. report any still present invalid argument to SW support
20090611
SW raises an unknown save error

A way to avoid the unknown save error while working in Solidworks is suggested by Microsoft support, since it’s caused by msxml60.

  1. Apply Microsoft Recommendation of using the application with partial GC in place. To do this, add below registry key and set to a value of 1.
    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftmsxml60] 
    "NoFullGC"=dword:1
  2. Apply Microsoft Recommendation about hotfix KB 960064
    An XML-based application uses lots of memory when multiple threads call the SelectSingleNode method at the same time in Windows XP SP3, Windows Vista or Windows Server 2008 – http://support.microsoft.com/kb/960064

Below are related articles for your reference:

20090611
SW raises an unknown save error

A way to avoid the unknown save error while working in Solidworks is suggested by Microsoft support, since it’s caused by msxml60.

  1. Apply Microsoft Recommendation of using the application with partial GC in place. To do this, add below registry key and set to a value of 1.
    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftmsxml60] 
    "NoFullGC"=dword:1
  2. Apply Microsoft Recommendation about hotfix KB 960064
    An XML-based application uses lots of memory when multiple threads call the SelectSingleNode method at the same time in Windows XP SP3, Windows Vista or Windows Server 2008 – http://support.microsoft.com/kb/960064

Below are related articles for your reference:

20090610
The SW command bar is incomplete or empty

If the DBWorks command bar in Solidworks is incomplete or empty, you need to reset some registry entries to restore it.

Very often this behavior is caused by:

  • the modification of values in option User interface → Hidden toolbar buttons
  • the enabling/disabling of the option General → Drawings → Use DBWorks variant notes

This is how it could appear:

or even like so:

Here is how the Solidworks API help explains the behavior

CommandManager and CommandGroups

You cannot create a ICommandGroup with a toolbar, start SolidWorks, use the toolbar, close SolidWorks, add items to or remove items from the toolbar, and start SolidWorks. Therefore, during development, you must use the ID returned by ICommandGroup::ToolbarId to find the toolbar in the registry and remove the toolbar definition from the registry:

HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks <version>User InterfaceCustom API Toolbars<index>
HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks <version>User InterfaceToolbars
HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks <version>User InterfaceToolbarsPartTool
HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks <version>User InterfaceToolbarsAssemblyTool
HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks <version>User InterfaceToolbarsDrawingTool

You can then add and remove items from the toolbar.

We experienced that there’s a specific sequence of actions that allows to made changes in the above option without getting the corrupted commandbar issue:

  1. Set the DBWorks option as needed
  2. close DBWorks and Solidworks
  3. run the following .reg (sw2009 | sw2010 | sw2011 | sw2012 | sw2013 | sw2014) file to clear some entries from the registry
  4. start Solidworks
  5. show the DBWorks bar again:

More about the .reg file and the registry entries to be deleted

More specifically than SW API explanation, we’ve experienced that following keys are responsible for the DBWorks commandbar corruption:

HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks 2009User InterfaceCommandManager
HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks 2009User InterfaceCustom API Toolbars
HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks 2009User InterfaceGeneraluiCustomApiToolbars_cXXXXX
HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks 2009User InterfaceToolbarsuiCustomApiToolbars_cXXXXX
HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks 2009User InterfaceToolbarsAssemblyTooluiCustomApiToolbars_cXXXXX
HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks 2009User InterfaceToolbarsDrawingTooluiCustomApiToolbars_cXXXXX
HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks 2009User InterfaceToolbarsPartTooluiCustomApiToolbars_cXXXXX

please note XXXXX represents a number that could vary among installations.

In most cases the removal of first 2 enlisted keys it’s enough to restore the bar

In case the problem persists after running the .reg file, proceed with the manual removal of the other keys.

20090610
The SW command bar is incomplete or empty

If the DBWorks command bar in Solidworks is incomplete or empty, you need to reset some registry entries to restore it.

Very often this behavior is caused by:

  • the modification of values in option User interface → Hidden toolbar buttons
  • the enabling/disabling of the option General → Drawings → Use DBWorks variant notes

This is how it could appear:

or even like so:

Here is how the Solidworks API help explains the behavior

CommandManager and CommandGroups

You cannot create a ICommandGroup with a toolbar, start SolidWorks, use the toolbar, close SolidWorks, add items to or remove items from the toolbar, and start SolidWorks. Therefore, during development, you must use the ID returned by ICommandGroup::ToolbarId to find the toolbar in the registry and remove the toolbar definition from the registry:

HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks <version>User InterfaceCustom API Toolbars<index>
HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks <version>User InterfaceToolbars
HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks <version>User InterfaceToolbarsPartTool
HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks <version>User InterfaceToolbarsAssemblyTool
HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks <version>User InterfaceToolbarsDrawingTool

You can then add and remove items from the toolbar.

We experienced that there’s a specific sequence of actions that allows to made changes in the above option without getting the corrupted commandbar issue:

  1. Set the DBWorks option as needed
  2. close DBWorks and Solidworks
  3. run the following .reg (sw2009 | sw2010 | sw2011 | sw2012 | sw2013 | sw2014) file to clear some entries from the registry
  4. start Solidworks
  5. show the DBWorks bar again:

More about the .reg file and the registry entries to be deleted

More specifically than SW API explanation, we’ve experienced that following keys are responsible for the DBWorks commandbar corruption:

HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks 2009User InterfaceCommandManager
HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks 2009User InterfaceCustom API Toolbars
HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks 2009User InterfaceGeneraluiCustomApiToolbars_cXXXXX
HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks 2009User InterfaceToolbarsuiCustomApiToolbars_cXXXXX
HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks 2009User InterfaceToolbarsAssemblyTooluiCustomApiToolbars_cXXXXX
HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks 2009User InterfaceToolbarsDrawingTooluiCustomApiToolbars_cXXXXX
HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks 2009User InterfaceToolbarsPartTooluiCustomApiToolbars_cXXXXX

please note XXXXX represents a number that could vary among installations.

In most cases the removal of first 2 enlisted keys it’s enough to restore the bar

In case the problem persists after running the .reg file, proceed with the manual removal of the other keys.

20090604
DWG support in AutoCAD2010

The support for DWG format in AutoCAD2010 will be available for Mechworks products in the fourth quarter 2009, together with the release of OpenDWG 3.0.

Procedures affected by this issue are previews and DWG → PDF conversions.

20090604
DWG support in AutoCAD2010

The support for DWG format in AutoCAD2010 will be available for Mechworks products in the fourth quarter 2009, together with the release of OpenDWG 3.0.

Procedures affected by this issue are previews and DWG → PDF conversions.

20090601
Specifics for XLS to PDF conversion
Document Element Attribute Support Notes
Alignment  v
Background settings warn Only solid background pattern is supported, other patterns are not supported
Border Color v
Line style warn Double-line style is not supported
Line width v
Cell Data v
Comments x
Conditional Formatting x
Document Properties x
Drawing Objects warn Supported Objects: TextBox, Line, Rectangle, Oval, GroupBox, Button, CheckBox, RadioButton, ListBox, ComboBox, Label
Font Size v
Color v
Style v
Underline warn Only single underline is supported
Effects warn Only strike through effect is supported
Images v
Hyperlink v
Charts warn please write to support@mechworks.com for further info about supported charts list
Merged Cells v
Page Break v
Page Setup Header/Footer v
Margins v
Page Orientation v
Page Size v
Print Area v
Print Titles v
Scaling v
Row Height/Column Width v

20090601
Specifics for XLS to PDF conversion
Document Element Attribute Support Notes
Alignment  v
Background settings warn Only solid background pattern is supported, other patterns are not supported
Border Color v
Line style warn Double-line style is not supported
Line width v
Cell Data v
Comments x
Conditional Formatting x
Document Properties x
Drawing Objects warn Supported Objects: TextBox, Line, Rectangle, Oval, GroupBox, Button, CheckBox, RadioButton, ListBox, ComboBox, Label
Font Size v
Color v
Style v
Underline warn Only single underline is supported
Effects warn Only strike through effect is supported
Images v
Hyperlink v
Charts warn please write to support@mechworks.com for further info about supported charts list
Merged Cells v
Page Break v
Page Setup Header/Footer v
Margins v
Page Orientation v
Page Size v
Print Area v
Print Titles v
Scaling v
Row Height/Column Width v

20090513
Updating of SW2007 custom properties with R10 hangs

During the update of a configuration record (e.g. Edit revision of a SW part with configurations), Solidworks could hang.
This behavior is caused by the SW2007 DocumentMgr.dll invoked by R10 sp2.4 or sp2.5.

Substituting that dll with a more recent one (we successfully tested on SW2009) will fix the problem.

20090513
Updating of SW2007 custom properties with R10 hangs

During the update of a configuration record (e.g. Edit revision of a SW part with configurations), Solidworks could hang.
This behavior is caused by the SW2007 DocumentMgr.dll invoked by R10 sp2.4 or sp2.5.

Substituting that dll with a more recent one (we successfully tested on SW2009) will fix the problem.

20090430
Installation procedure for DBWorks Addin in AutoCAD
With msi installer, the dbworks installation folder gets completly remove at uninstall.
So for the integration to work you should copy the Integration_Autocad2002 folder under the Global Parameters Path and load it from there.

Following procedure will be suitable for AutoCAD 2004, 2009 and 2010

  1. Open AutoCAD options
    issue_acad2010_07
  2. Add the Mechworks file location to the Support file search path
    issue_acad2010_06
  3. Type menuload command
    issue_acad2010_05
  4. Browse for the customization file
    issue_acad2010_04
  5. Then click Load
    issue_acad2010_02
    to add the group MECHWORKS
    issue_acad2010_03
    and to show the toolbar
    issue_acad2010_01
  6. Type vbaload command
    issue_acad2010_08

    Starting from Autocad 2010, Autodesk won’t include VBA in its products anymore. It has to be downloaded separately from Autodesk site.

  7. Browse for the dbv file
    issue_acad2010_09
  8. Now set the addin as autoloading at every startup:
    Type appload command
    issue_acad2010_10
  9. Validate that the DBWorks.DVB file is not automatically loaded and then select the [Contents…] command.
    issue_acad2010_11
  10. Click [Add] button, navigate to the appropriate folder and select the “dbworks.dvb” file, then select the [Close] command.
    issue_acad2010_12
  11. Notice that “dbworks.dvb” is now listed as a [Loaded Application]
    issue_acad2010_13
    issue_acad2010_14
    issue_acad2010_15
In case you’re prompted for saving the dbworks.dvb file on exiting AutoCAD, simply click Yes or Yes To All in the dialog and you won’t be asked about anymore.

Since OpenDWG 3.0 will be released in Autumn 2009, the fully compatibility with AutoCAD 2010 is planned for the fourth quarter 2009.

20090430
Installation procedure for DBWorks Addin in AutoCAD
With msi installer, the dbworks installation folder gets completly remove at uninstall.
So for the integration to work you should copy the Integration_Autocad2002 folder under the Global Parameters Path and load it from there.

Following procedure will be suitable for AutoCAD 2004, 2009 and 2010

  1. Open AutoCAD options
    issue_acad2010_07
  2. Add the Mechworks file location to the Support file search path
    issue_acad2010_06
  3. Type menuload command
    issue_acad2010_05
  4. Browse for the customization file
    issue_acad2010_04
  5. Then click Load
    issue_acad2010_02
    to add the group MECHWORKS
    issue_acad2010_03
    and to show the toolbar
    issue_acad2010_01
  6. Type vbaload command
    issue_acad2010_08

    Starting from Autocad 2010, Autodesk won’t include VBA in its products anymore. It has to be downloaded separately from Autodesk site.

  7. Browse for the dbv file
    issue_acad2010_09
  8. Now set the addin as autoloading at every startup:
    Type appload command
    issue_acad2010_10
  9. Validate that the DBWorks.DVB file is not automatically loaded and then select the [Contents…] command.
    issue_acad2010_11
  10. Click [Add] button, navigate to the appropriate folder and select the “dbworks.dvb” file, then select the [Close] command.
    issue_acad2010_12
  11. Notice that “dbworks.dvb” is now listed as a [Loaded Application]
    issue_acad2010_13
    issue_acad2010_14
    issue_acad2010_15
In case you’re prompted for saving the dbworks.dvb file on exiting AutoCAD, simply click Yes or Yes To All in the dialog and you won’t be asked about anymore.

Since OpenDWG 3.0 will be released in Autumn 2009, the fully compatibility with AutoCAD 2010 is planned for the fourth quarter 2009.

20090424
Set the correct printer name with Novel Iprint clients

With Novell network printers that use iprint services, in order to properly set the parameters, you’ve to modify manually the printer address suggested in the plot setup Sheet/Device association list

Suppose to have a printer LaserJet_5100 on server SXM, the suggested entry will be:

issue_novell01
that won’t work properly.

This is the correct setting for such printer:

issue_novell02

In the DBWAPP.PAR printer related section you’ve to make sure it’s set like followings:

SHEET_DEVICE_TABLE A4
SHEET_DEVICE_TABLE ipp://NDPSM.SXM/ipp/LaserJet_5100
SHEET_DEVICE_TABLE 1
SHEET_DEVICE_TABLE 1.0
20090424
Set the correct printer name with Novel Iprint clients

With Novell network printers that use iprint services, in order to properly set the parameters, you’ve to modify manually the printer address suggested in the plot setup Sheet/Device association list

Suppose to have a printer LaserJet_5100 on server SXM, the suggested entry will be:

issue_novell01
that won’t work properly.

This is the correct setting for such printer:

issue_novell02

In the DBWAPP.PAR printer related section you’ve to make sure it’s set like followings:

SHEET_DEVICE_TABLE A4
SHEET_DEVICE_TABLE ipp://NDPSM.SXM/ipp/LaserJet_5100
SHEET_DEVICE_TABLE 1
SHEET_DEVICE_TABLE 1.0
20090415
No confirmation dialog is displayed after creating a new project

If you cannot see the confirmation dialog anymore, after the creation of a project (or any other action that requires a confirmation dialog) could be due to the activation of the checkbox Do not show this message again:
issue_projectDialog01

To restore the default functionality (and be asked again about), there are 2 ways:

  1. keep the SHIFT key pressed while clicking the OK button in the data input form
    issue_projectDialog02
  2. remove following registry key:
    HKEY_CURRENT_USERSoftwareMechWorksDBWorks Standalone98dbwaloneMechWorks-CheckBoxes

    or

    HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks 2009MechWorks-CheckBoxes entries
20090415
No confirmation dialog is displayed after creating a new project

If you cannot see the confirmation dialog anymore, after the creation of a project (or any other action that requires a confirmation dialog) could be due to the activation of the checkbox Do not show this message again:
issue_projectDialog01

To restore the default functionality (and be asked again about), there are 2 ways:

  1. keep the SHIFT key pressed while clicking the OK button in the data input form
    issue_projectDialog02
  2. remove following registry key:
    HKEY_CURRENT_USERSoftwareMechWorksDBWorks Standalone98dbwaloneMechWorks-CheckBoxes

    or

    HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks 2009MechWorks-CheckBoxes entries
20090414
Msgboxes are not shown on x64 systems

On x64 platforms, it could happen that message boxes are not shown.

As first step you’ve to delete the USERS folder for the current user.

If the problem persist, please verify that in vbscripts run whithin DBWorks/DBInventor, all the default function msgbox have been replaced with the Mechworks standard library DBWmsgbox.

Some examples:
issue_dbwmsgbox01

msgbox "hallo"

must be changed in

dbwmsgbox "hallo"

issue_dbwmsgbox02

 

msgbox "hallo",vbYesNo

must be changed in

dbwmsgbox1 "hallo",vbYesNo

issue_dbwmsgbox03

msgbox "hallo",vbYesNo,"title"

must be changed in

dbwmsgbox2 "hallo",vbYesNo,"title"

Please refer to standardLibrary documentation for further details about such functions.

20090414
Msgboxes are not shown on x64 systems

On x64 platforms, it could happen that message boxes are not shown.

As first step you’ve to delete the USERS folder for the current user.

If the problem persist, please verify that in vbscripts run whithin DBWorks/DBInventor, all the default function msgbox have been replaced with the Mechworks standard library DBWmsgbox.

Some examples:
issue_dbwmsgbox01

msgbox "hallo"

must be changed in

dbwmsgbox "hallo"

issue_dbwmsgbox02

 

msgbox "hallo",vbYesNo

must be changed in

dbwmsgbox1 "hallo",vbYesNo

issue_dbwmsgbox03

msgbox "hallo",vbYesNo,"title"

must be changed in

dbwmsgbox2 "hallo",vbYesNo,"title"

Please refer to standardLibrary documentation for further details about such functions.

20090310
Scripts for zipping components raise a "file does not exist" error

When running scripts for zipping components, such as DBWorks→Utility→Zip_Selection
issue_zip01

You may receive an error after entering the file name for the zip to be created:
issue_zip02

issue_zip03

To fix the issue, download from here the fixed scripts:

For reporting similar script issues, please write to our support.

20090310
Scripts for zipping components raise a "file does not exist" error

When running scripts for zipping components, such as DBWorks→Utility→Zip_Selection
issue_zip01

You may receive an error after entering the file name for the zip to be created:
issue_zip02

issue_zip03

To fix the issue, download from here the fixed scripts:

For reporting similar script issues, please write to our support.

20090304
File Locking policy starting from SW2007

Starting from SolidWorks2007 a different file locking policy has been implemented: every writable component of an already opened assembly will be open in read-only mode.

Suppose to have a simple structure like this one, in NEW (so writable) state, and to open the assembly MyAsm:
issue_fileRO01

The assembly will be open in a writable way:
issue_fileRO02
then, if you open the part with the assembly still opened
issue_fileRO03

you’ll see that, even if it’s in NEW state, the part is opened in Read-Only mode:
issue_fileRO04

Only DBWServer can grant a correct management of concurrent engineering.

20090304
File Locking policy starting from SW2007

Starting from SolidWorks2007 a different file locking policy has been implemented: every writable component of an already opened assembly will be open in read-only mode.

Suppose to have a simple structure like this one, in NEW (so writable) state, and to open the assembly MyAsm:
issue_fileRO01

The assembly will be open in a writable way:
issue_fileRO02
then, if you open the part with the assembly still opened
issue_fileRO03

you’ll see that, even if it’s in NEW state, the part is opened in Read-Only mode:
issue_fileRO04

Only DBWServer can grant a correct management of concurrent engineering.

20090224
DBInventor toolbar disappears in Inventor2009/2010

Especially starting with Inventor2009 sp1, you could see that it’s not possible to keep the DBInventor toolbar shown beyond the current session: every time you close Inventor, at the next startup the DBInventor toolbar is not visible anymore.

issue_inv01

As workaround, you can copy the DBInventor entry in the Tools → Customize → Toolbars menu:
issue_inv02

and load the copied one rather than the original one:
issue_inv03

If the problem persists (especially in Inventor2010), dock the toolbar.

20090224
DBInventor toolbar disappears in Inventor2009/2010

Especially starting with Inventor2009 sp1, you could see that it’s not possible to keep the DBInventor toolbar shown beyond the current session: every time you close Inventor, at the next startup the DBInventor toolbar is not visible anymore.

issue_inv01

As workaround, you can copy the DBInventor entry in the Tools → Customize → Toolbars menu:
issue_inv02

and load the copied one rather than the original one:
issue_inv03

If the problem persists (especially in Inventor2010), dock the toolbar.

20090216
Compiler error in Assembly Duplication Wizard

Due to a Microsoft security update (released in the first half of February 2009), the AssemblyDuplicationWizard starts raising the following error:

issue_adw1

To fix this issue you can download the new macro from here and place it in LST folder substituting the old one.

20090216
Compiler error in Assembly Duplication Wizard

Due to a Microsoft security update (released in the first half of February 2009), the AssemblyDuplicationWizard starts raising the following error:

issue_adw1

To fix this issue you can download the new macro from here and place it in LST folder substituting the old one.

20090204
Unsafe ActiveX control message when running a vba macro

Especially on x64 machines, you could encounter following message when running a macro (such as DuplicationWizard):
issue_vba1

To avoid this message, you have to add this variable

"LoadControlsInForms"=dword:00000001

to the registry key

HKEY_CURRENT_USERSoftwareMicrosoftVBASecurity

Get here here a .reg file that will add required info to the registry simply double clicking it.

You can find further information about this issue (KB827742) at Microsoft support

20090204
Unsafe ActiveX control message when running a vba macro

Especially on x64 machines, you could encounter following message when running a macro (such as DuplicationWizard):
issue_vba1

To avoid this message, you have to add this variable

"LoadControlsInForms"=dword:00000001

to the registry key

HKEY_CURRENT_USERSoftwareMicrosoftVBASecurity

Get here here a .reg file that will add required info to the registry simply double clicking it.

You can find further information about this issue (KB827742) at Microsoft support

20090113
Java Exception error is raised during BOM creation, SaveWizard or other applications

This issue is usually verified on 64bit machines.

In case you obtain the following error when starting a BOM, the SaveWizard or a CategoryMaker test
issue_x64java

you’ve to manually register the library named msado15.dll and located in a folder under

c:program files (x86)common filessystemado

Please note that the dll to register is under

c:program files (x86)

and not under

c:program files

since Bom engine, SaveWizard and CategoryMaker use the 32bit version of it.

Look for it, open a msdos window on the containing folder and type

regsvr32 msado15.dll

If successfull, a message will inform you:
issue_x64ado

20090113
Java Exception error is raised during BOM creation, SaveWizard or other applications

This issue is usually verified on 64bit machines.

In case you obtain the following error when starting a BOM, the SaveWizard or a CategoryMaker test
issue_x64java

you’ve to manually register the library named msado15.dll and located in a folder under

c:program files (x86)common filessystemado

Please note that the dll to register is under

c:program files (x86)

and not under

c:program files

since Bom engine, SaveWizard and CategoryMaker use the 32bit version of it.

Look for it, open a msdos window on the containing folder and type

regsvr32 msado15.dll

If successfull, a message will inform you:
issue_x64ado

20081215
AdvancedFilter, FullPreview and Workflow tabs don't work anymore

If you cannot see properly the following tabs:

  • Advanced Filter
  • Full Preview
  • Workflow

since a message is raised asking for finding or saving a .vbd file, it means some dll/exe registrations have been corrupted on your installation.

issue_vbd

To solve this issue, you have to download a zipped .exe from here, unpack it and run it.

If the problem persists even after executing the above file:

  1. Go to
    C:Program FilesCommon FilesSystemado

    (on x86 platforms)

    C:Program Files (x86)Common FilesSystemado

    (on x64 platforms)

  2. make sure the file msado15.dll is existing (otherwise write to support@mechworks.com asking for it)
  3. open a msdos command prompt on such folder and regsiter the dll by typing:
    regsvr32 msado15.dll

    (on x86 platforms)

    "C:WindowsSysWOW64regsvr32" msado15.dll

    (on x64 platforms)

    a message will inform you about the success of the registration
    issue_vbd1

  4. Finally go to
    C:Program FilesDBWorksbin

    (on x86 platforms)

    C:Program Files (x86)DBWorksbin

    (on x64 platforms)

    and execute (double click) the files DBWAx64.exe, DBWAx64FP.exe and DBWorkflowAx.exe.

20081215
AdvancedFilter, FullPreview and Workflow tabs don't work anymore

If you cannot see properly the following tabs:

  • Advanced Filter
  • Full Preview
  • Workflow

since a message is raised asking for finding or saving a .vbd file, it means some dll/exe registrations have been corrupted on your installation.

issue_vbd

To solve this issue, you have to download a zipped .exe from here, unpack it and run it.

If the problem persists even after executing the above file:

  1. Go to
    C:Program FilesCommon FilesSystemado

    (on x86 platforms)

    C:Program Files (x86)Common FilesSystemado

    (on x64 platforms)

  2. make sure the file msado15.dll is existing (otherwise write to support@mechworks.com asking for it)
  3. open a msdos command prompt on such folder and regsiter the dll by typing:
    regsvr32 msado15.dll

    (on x86 platforms)

    "C:WindowsSysWOW64regsvr32" msado15.dll

    (on x64 platforms)

    a message will inform you about the success of the registration
    issue_vbd1

  4. Finally go to
    C:Program FilesDBWorksbin

    (on x86 platforms)

    C:Program Files (x86)DBWorksbin

    (on x64 platforms)

    and execute (double click) the files DBWAx64.exe, DBWAx64FP.exe and DBWorkflowAx.exe.

20081212
Variant notes don't work anymore in SolidWorks 2009

A known bug (SPR 458328) in SW2009 makes not working the DBWorks variant notes (@DBW=…) present in templates created with previous versions of Solidworks.

When saving an old format drawing in sw2009, the variant note is lost:

issue_sw2009varnotes

SolidWorks support plans to solve such bug in SW2009 sp2

20081212
Variant notes don't work anymore in SolidWorks 2009

A known bug (SPR 458328) in SW2009 makes not working the DBWorks variant notes (@DBW=…) present in templates created with previous versions of Solidworks.

When saving an old format drawing in sw2009, the variant note is lost:

issue_sw2009varnotes

SolidWorks support plans to solve such bug in SW2009 sp2

20081028
Add/Remove all doc to a proj doesn't work

If the the button bar entry issue_AddRemProj1 issue_AddRemProj2  Add/remove the node and all the children from the project is not working properly, maybe it’s because for some reasons you chose to never confirm the add/remove to projects with a persistent check-box.

To solve the issue try to delete the following registry key

HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks <your solidworks version>MechWorks-CheckBoxes
20081028
Add/Remove all doc to a proj doesn't work

If the the button bar entry issue_AddRemProj1 issue_AddRemProj2  Add/remove the node and all the children from the project is not working properly, maybe it’s because for some reasons you chose to never confirm the add/remove to projects with a persistent check-box.

To solve the issue try to delete the following registry key

HKEY_CURRENT_USERSoftwareSolidWorksSolidWorks <your solidworks version>MechWorks-CheckBoxes
20081020
Get duplicated position number in a BOM

If you create a BOM and you notice that more than 1 element has the same bom position number, it means some entry are wrongly set in the PARENT_CHILD table.

issue_bom1 issue_bom2

Unfortunately there is not an out-of-the-box solution for such behavior but you can run some check to get warned about wrong values so to avoid sending wrong BOMs along the production process.

  1. Run the script UpdateDatabaseActiveDoc
    • Open an assembly (it doesn’t matter if its state is writeable or not)
    • Run the script
    • Close the assembly WITHOUT saving
  2. Run the script Check for parent-child duplicated BOMpos that’s in the Analysis section of the shortcutbar

    issue_bom3

  3. ExcelBOM embedded checkStarting from build 20081017 a new options is supported by the PARDBWBOM_*.TXT ExcelBOM parameter files:
    OPTIONS
    	...
    	ERROR_ON_DUPLICATE_POSITIONS	
    	...

    In case the created BOM contains duplicates in position, the creation fails and shows a clear error reporting the faulty position. This check is very important if you have a connected ERP system that reads data from the BOMs.

20081020
Get duplicated position number in a BOM

If you create a BOM and you notice that more than 1 element has the same bom position number, it means some entry are wrongly set in the PARENT_CHILD table.

issue_bom1 issue_bom2

Unfortunately there is not an out-of-the-box solution for such behavior but you can run some check to get warned about wrong values so to avoid sending wrong BOMs along the production process.

  1. Run the script UpdateDatabaseActiveDoc
    • Open an assembly (it doesn’t matter if its state is writeable or not)
    • Run the script
    • Close the assembly WITHOUT saving
  2. Run the script Check for parent-child duplicated BOMpos that’s in the Analysis section of the shortcutbar

    issue_bom3

  3. ExcelBOM embedded checkStarting from build 20081017 a new options is supported by the PARDBWBOM_*.TXT ExcelBOM parameter files:
    OPTIONS
    	...
    	ERROR_ON_DUPLICATE_POSITIONS	
    	...

    In case the created BOM contains duplicates in position, the creation fails and shows a clear error reporting the faulty position. This check is very important if you have a connected ERP system that reads data from the BOMs.

20081015
Error in opening CHM help modules

Description

After installing security update 896358 or Windows Server 2003 SP1, you may find that you cannot view the topics in an HTML help (CHM) file.
issue_CHM

solution 1

  1. Download the CHM file.
  2. Right-click on file, and choose Properties.
  3. Click Unblock.
  4. Open the file.

solution 2

  • Read a PDF file that explain how to modify registry settings
  • Download a .reg file to modify the registry (x86 and x64) automatically

solution 3

  • Adding the machine IP to the IE trusted sites list is also helpful
    issue_CHM1

Further information:

20081015
Error in opening CHM help modules

Description

After installing security update 896358 or Windows Server 2003 SP1, you may find that you cannot view the topics in an HTML help (CHM) file.
issue_CHM

solution 1

  1. Download the CHM file.
  2. Right-click on file, and choose Properties.
  3. Click Unblock.
  4. Open the file.

solution 2

  • Read a PDF file that explain how to modify registry settings
  • Download a .reg file to modify the registry (x86 and x64) automatically

solution 3

  • Adding the machine IP to the IE trusted sites list is also helpful
    issue_CHM1

Further information:

20081015
DBWForms don't start anymore?

If you encounter problems in running DBWForms (TreeMaterial, EditTreeMaterial, CustomProperties Manager, …) it could be a matter of an antivirus that’s blocking some files.

We had reports about that from users that installed

  • G DATA Antivirus:
    A test to verify this is to try opening declare.bas library file (usually located in c:Program FilesCommon FilesMechWorksDBWORKS folder) with notepad: you should not be able to open it.
  • McAfee Antivirus: In this case an error such as “Buffer overrun” could be raised
    Try to disable antivirus to verify it.
20081015
DBWForms don't start anymore?

If you encounter problems in running DBWForms (TreeMaterial, EditTreeMaterial, CustomProperties Manager, …) it could be a matter of an antivirus that’s blocking some files.

We had reports about that from users that installed

  • G DATA Antivirus:
    A test to verify this is to try opening declare.bas library file (usually located in c:Program FilesCommon FilesMechWorksDBWORKS folder) with notepad: you should not be able to open it.
  • McAfee Antivirus: In this case an error such as “Buffer overrun” could be raised
    Try to disable antivirus to verify it.
20081015
How to solve the CRC Error at installation time

When trying to run the installer for DBWorks, DBInventor or DBStandalone, you could be notified about a CRC error:
the downloaded file could be corrupted.

issue_CRC_error

As first try, you can rename the InstallSheld folder has been created in Common Files directory (simply change its from InstallShield).
Then restart the installer executable.

issue_CRC_error1

If the above method doesn’t work, another workaround is to extract manually installation files in a temporary folder and to run setup.exe from there.

To do like so, open a MSDOS window and digit:

dbworks.exe /extract_all:c:tempdbw_install_folder

where c:tempdbw_install_folder is the folder to which extract all setup files.

then explore that folder run setup.exe file.

issue_CRC_error_workaround

Once installed, you can delete the whole c:tempdbw_install_folder folder.

20081015
How to solve the CRC Error at installation time

When trying to run the installer for DBWorks, DBInventor or DBStandalone, you could be notified about a CRC error:
the downloaded file could be corrupted.

issue_CRC_error

As first try, you can rename the InstallSheld folder has been created in Common Files directory (simply change its from InstallShield).
Then restart the installer executable.

issue_CRC_error1

If the above method doesn’t work, another workaround is to extract manually installation files in a temporary folder and to run setup.exe from there.

To do like so, open a MSDOS window and digit:

dbworks.exe /extract_all:c:tempdbw_install_folder

where c:tempdbw_install_folder is the folder to which extract all setup files.

then explore that folder run setup.exe file.

issue_CRC_error_workaround

Once installed, you can delete the whole c:tempdbw_install_folder folder.

20081015
How to install DBWorks on Microsoft Vista

If security settings on folders are not properly set, you may encounter such error at startup:
issue_vista04

To properly install DBW2007 on Vista operating system follow these steps from an administrative login:

  1. Disable UAC (User Account Control, click here to know how disable it)
    issue_vista01
  2. Install DBWorks with DBWorks.exe installer (do not use DBWorks.msi)
  3. Start Solidworks and DBWorks so to create USERS folders
  4. Exit from DBWorks and Solidworks
  5. for the following folders
    <drive>:program filescommon filesmechworks

    and

    <drive>:DBWORKS_SERVER

    give FULL CONTROL right to the EVERYONE user (create it if not already existing)issue_vista02 issue_vista03

  6. If needed, set readonly rights selectively on files or scripts under the DBWORKS_SERVER path
  7. Then you can exit from the administrative login and start working loggin in with standard (non administrator) user login too
20081015
How to install DBWorks on Microsoft Vista

If security settings on folders are not properly set, you may encounter such error at startup:
issue_vista04

To properly install DBW2007 on Vista operating system follow these steps from an administrative login:

  1. Disable UAC (User Account Control, click here to know how disable it)
    issue_vista01
  2. Install DBWorks with DBWorks.exe installer (do not use DBWorks.msi)
  3. Start Solidworks and DBWorks so to create USERS folders
  4. Exit from DBWorks and Solidworks
  5. for the following folders
    <drive>:program filescommon filesmechworks

    and

    <drive>:DBWORKS_SERVER

    give FULL CONTROL right to the EVERYONE user (create it if not already existing)issue_vista02 issue_vista03

  6. If needed, set readonly rights selectively on files or scripts under the DBWORKS_SERVER path
  7. Then you can exit from the administrative login and start working loggin in with standard (non administrator) user login too
20081015
Get a TLB error message when starting standalone

If you got the following message when starting standalone client, it’s maybe because you’re running it for the first time on Vista OS and with UAC activated.

issue_tlb

The resolution is as follows:

  1. Disable UAC
  2. Install Standalone Client (if it’s already installed you don’t need to re-install it)
  3. Run Standalone Client
  4. Enable UAC
20081015
Get a TLB error message when starting standalone

If you got the following message when starting standalone client, it’s maybe because you’re running it for the first time on Vista OS and with UAC activated.

issue_tlb

The resolution is as follows:

  1. Disable UAC
  2. Install Standalone Client (if it’s already installed you don’t need to re-install it)
  3. Run Standalone Client
  4. Enable UAC
20081015
Custom properties and SW2007 sp1.x

Since of the change of the encoding schema used by SW 2007 sp1.x for text properties (changed from Single-byte to Multi-byte), German Umlaut characters as well as any character in the following list

ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ½

were causing wrong properties to be written in the Structured Storage of the file itself.

 

The problem was visible when directly accessing the file Custom Properties (for example, after a Rename or Edit), with the model currently closed.
No problems were happening if the model was opened, since of the use of the SW custom properties manager.
issue_sw2007sp1x

20081015
Custom properties and SW2007 sp1.x

Since of the change of the encoding schema used by SW 2007 sp1.x for text properties (changed from Single-byte to Multi-byte), German Umlaut characters as well as any character in the following list

ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ½

were causing wrong properties to be written in the Structured Storage of the file itself.

 

The problem was visible when directly accessing the file Custom Properties (for example, after a Rename or Edit), with the model currently closed.
No problems were happening if the model was opened, since of the use of the SW custom properties manager.
issue_sw2007sp1x

20081015
Error after installing DBWorks 2007 on SolidWorks 2008

If you install SolidWorks2008 on a machine on was already installed SolidWorks2007 you may encounter an error about DBWorks incompatibility with SW2008.
issue_SW2008addin01

This is because DBWorks is a single application while SW2007 and SW2008 are two different ones. The DBWorks dll that has to be loaded is different according to the CAD version.

In SolidWorks addin list you’ve to enable the correct one:

issue_SW2008addin02
Solidworks 2007 requires BINVS6DBWorks.dll library

issue_SW2008addin03
Solidworks 2008 requires BINVS2005DBWorks.dll library

Keep both Solidworks2007 and 2008 version

You may also keep both versions (for SW2007 and SW2008) on the same machine.
To allow this, you need to open SW, disable the add-in, close SW, start the other SW, enable the add-in.

Examples:

from SW2008 to SW2007:

  • open SW2008
  • disable DBWorks for SW2008
  • close SW2008
  • open SW2007
  • enable DBWorks for SW2007

 

from SW2007 to SW2008

  • open SW2007
  • disable DBWorks for SW2007
  • close SW2007
  • open SW2008
  • enable DBWorks for SW2008
20081015
Error after installing DBWorks 2007 on SolidWorks 2008

If you install SolidWorks2008 on a machine on was already installed SolidWorks2007 you may encounter an error about DBWorks incompatibility with SW2008.
issue_SW2008addin01

This is because DBWorks is a single application while SW2007 and SW2008 are two different ones. The DBWorks dll that has to be loaded is different according to the CAD version.

In SolidWorks addin list you’ve to enable the correct one:

issue_SW2008addin02
Solidworks 2007 requires BINVS6DBWorks.dll library

issue_SW2008addin03
Solidworks 2008 requires BINVS2005DBWorks.dll library

Keep both Solidworks2007 and 2008 version

You may also keep both versions (for SW2007 and SW2008) on the same machine.
To allow this, you need to open SW, disable the add-in, close SW, start the other SW, enable the add-in.

Examples:

from SW2008 to SW2007:

  • open SW2008
  • disable DBWorks for SW2008
  • close SW2008
  • open SW2007
  • enable DBWorks for SW2007

 

from SW2007 to SW2008

  • open SW2007
  • disable DBWorks for SW2007
  • close SW2007
  • open SW2008
  • enable DBWorks for SW2008
20081015
Issues for x64 systems

Basics

DBWorks can run only on environment where both operating system and CAD application are 64bits version.

You don’t need a specific installer for 64bit version. DBWorks.exe automatically detects the system and install itself properly.
Only make sure that after installing, the Solidworks addin points correclty to BINX64DBWorks.dll library:
issue_x64addin


Datasources

At the moment you can only connect the 64bit to an existing DBWorks database on SQLServer.

That’s because under 64bit there are no mdb drivers.
This means that after installing on Xp64 with SW 64bit you are not able to run on the standard MDB database.

What you can do

  • Create a DBWORKS DSN on the dbworks.mdb running odbcad32.exe under syswow64 (that’s the 32bit version of the odbc manager)
  • After that run AdminTools→Database→Upsize (or direclty DBCustomizer) to upsize to Sql server (please refer to the main help, topic “Upsize database”, for further info on the upsize process).
  • Then remove that DSN and create a new one with the odbcad32.exe under system (the one you have in control panel, (that’s the 64bit version of the odbc manager).

DBWorks 64bit only connects to datasources declared in 64bit odbc datasource manager.

DBWorks/DBInventor core application is compiled in 64bit (so it uses the x64 datasource) while other modules and application that run inside/beside the core applications are still compiled in 32bit (so they need the x32 datasources).

Pay attention to USER DSN datasources declared in ODBC panel because are merged (x32 and x64) in a misunderstanding way.

How to set datasources properly

The correct way to make the Mechworks applications working properly together with other applications is to declare only SYSTEM DSN datasources
Both in x86 ODBC (%SYSTEMROOT%SysWOW64odbcad32.exe ) and in x64 ODBC (%SYSTEMROOT%system32odbcad32.exe) you’ve to set datasources as follows:

issue_odbc01  issue_odbc02

Technical details on DBWorks run under 64bit systems

  • Core: DBWx64 can run ONLY on a machine were NO SW 32-bit is installed (only SW 64bit)
  • DLLs: they are located in BINx64
  • Registry: installer creates properly entries in both x32 registry and x64 registry
  • 64bit: only the DLLs are compiled in native 64bit mode – all the accessory objects are still in 32bit mode
  • Scripts: scripts runs in 32bit mode, by launching the 32bit WSCRIPT process
  • DBWFRM: any .DBWFRM runs in 32bit mode
  • eDrawings viewer: no 64bit version is available for eDrawings, so DBWx64 uses an out-of-process implementation – this is not really stable, since of problems in eDrawings itself
  • WebClient: it is not affected by 32/64 bit issues
  • Multisite: it is not affected by 32/64 bit issues
  • Bugs report: please attach always a LOG of the session
20081015
Issues for x64 systems

Basics

DBWorks can run only on environment where both operating system and CAD application are 64bits version.

You don’t need a specific installer for 64bit version. DBWorks.exe automatically detects the system and install itself properly.
Only make sure that after installing, the Solidworks addin points correclty to BINX64DBWorks.dll library:
issue_x64addin


Datasources

At the moment you can only connect the 64bit to an existing DBWorks database on SQLServer.

That’s because under 64bit there are no mdb drivers.
This means that after installing on Xp64 with SW 64bit you are not able to run on the standard MDB database.

What you can do

  • Create a DBWORKS DSN on the dbworks.mdb running odbcad32.exe under syswow64 (that’s the 32bit version of the odbc manager)
  • After that run AdminTools→Database→Upsize (or direclty DBCustomizer) to upsize to Sql server (please refer to the main help, topic “Upsize database”, for further info on the upsize process).
  • Then remove that DSN and create a new one with the odbcad32.exe under system (the one you have in control panel, (that’s the 64bit version of the odbc manager).

DBWorks 64bit only connects to datasources declared in 64bit odbc datasource manager.

DBWorks/DBInventor core application is compiled in 64bit (so it uses the x64 datasource) while other modules and application that run inside/beside the core applications are still compiled in 32bit (so they need the x32 datasources).

Pay attention to USER DSN datasources declared in ODBC panel because are merged (x32 and x64) in a misunderstanding way.

How to set datasources properly

The correct way to make the Mechworks applications working properly together with other applications is to declare only SYSTEM DSN datasources
Both in x86 ODBC (%SYSTEMROOT%SysWOW64odbcad32.exe ) and in x64 ODBC (%SYSTEMROOT%system32odbcad32.exe) you’ve to set datasources as follows:

issue_odbc01  issue_odbc02

Technical details on DBWorks run under 64bit systems

  • Core: DBWx64 can run ONLY on a machine were NO SW 32-bit is installed (only SW 64bit)
  • DLLs: they are located in BINx64
  • Registry: installer creates properly entries in both x32 registry and x64 registry
  • 64bit: only the DLLs are compiled in native 64bit mode – all the accessory objects are still in 32bit mode
  • Scripts: scripts runs in 32bit mode, by launching the 32bit WSCRIPT process
  • DBWFRM: any .DBWFRM runs in 32bit mode
  • eDrawings viewer: no 64bit version is available for eDrawings, so DBWx64 uses an out-of-process implementation – this is not really stable, since of problems in eDrawings itself
  • WebClient: it is not affected by 32/64 bit issues
  • Multisite: it is not affected by 32/64 bit issues
  • Bugs report: please attach always a LOG of the session
20081015
SQLServer views change owner

Description

Views in SQL server database change owner when modified (for example, by adding a field).

Scenario (for this example)

  • The domain name is SITE1.
  • The login user on the machine is demo06.
  • The group the user belongs to is SITE1DBWorksServer.
  • The database name is DBWorks000.

 Conditions to reproduce the behavior

Originally the views in the database are correctly owned by dbo.

The ODBC connection accesses the database with a NT authentication using the network login.

This means that the personality used is the group SITE1DBWorksServer. The group rights are set as follows:

This group has the System Administration flag unchecked (usually the case to deny users the ability to modify any database on the server)

With these settings, a user opens the DBCustomizer and adds a field to a view (for example the field TEST000 to the view GENERIC)

As a consequence, the GENERIC view in the database structure has changed the owner to SITE1demo06.

Solution

First set the views owner back to dbo.
Then, for future modifications, use DBCustomizer 4.3.00 or better.

20081015
SQLServer views change owner

Description

Views in SQL server database change owner when modified (for example, by adding a field).

Scenario (for this example)

  • The domain name is SITE1.
  • The login user on the machine is demo06.
  • The group the user belongs to is SITE1DBWorksServer.
  • The database name is DBWorks000.

 Conditions to reproduce the behavior

Originally the views in the database are correctly owned by dbo.

The ODBC connection accesses the database with a NT authentication using the network login.

This means that the personality used is the group SITE1DBWorksServer. The group rights are set as follows:

This group has the System Administration flag unchecked (usually the case to deny users the ability to modify any database on the server)

With these settings, a user opens the DBCustomizer and adds a field to a view (for example the field TEST000 to the view GENERIC)

As a consequence, the GENERIC view in the database structure has changed the owner to SITE1demo06.

Solution

First set the views owner back to dbo.
Then, for future modifications, use DBCustomizer 4.3.00 or better.

20081015
how to reinstall jvm

Sometimes scripting or components stop working as expected and a Java Virtual machine reinstallation is required

  • Remove completely (also from RecycleBin/not rename ) the file msjava.dll (usually c:system32msjava.dll)
  • Download a java virtual machine installer
  • Install by double click on the downloaded file
20081015
how to reinstall jvm

Sometimes scripting or components stop working as expected and a Java Virtual machine reinstallation is required

  • Remove completely (also from RecycleBin/not rename ) the file msjava.dll (usually c:system32msjava.dll)
  • Download a java virtual machine installer
  • Install by double click on the downloaded file

MechworksPDM R23 has been released pic.twitter.com/VS1m2g94ps

Latest releases

 

Error: Contact form not found.