I cannot create a global variable in Solidworks 2018 Premium under Window 10 Enterprise with all latest win updates. I always get "The syntax of this equation is incorrect."
It does not matter how I try to create the variable. I have tried creating it from modifying a dimension as well and when I do that and then go to equation editor, the variable is not there.
I have completely uninstalled SW 2018 and reinstalled SW to no avail.
These are the steps I try to minimally get a global variable
- Open Solidworks 2018 Prem.
- Sketch a rectangle on the top plane
- Open up the Equation Editor
- Under Global Variables, I click in “Add global
variable” text box - Type testVal1
- Hit tab
- Type 10; SW automatically changes this to =10
- Hit enter
- Get the popup message “The syntax of this equation is
incorrect.”
I've tried the info here GoEngineer - Knowledge Base .
Can anyone help with this?
Try to reinstall VB
Failed to initialize Visual Basic for Apps, equations and macros will not work. W10 2016 SP02
We found that uninstalling VSTA allows you to proceed. Otherwise, you may need to re-install VBA7.1 and then repair SOLIDWORKS to have it reinstall them.
The VBA 7.1 components do not show in Control Panel > Programs > Programs and Features. There are two ways to uninstall these components:
1. Right click on the respective MSI files from your source media and choose "Uninstall".
2. Specify an "msiexec /x" command line script. For example, to remove the components on an English machine, run the following two commands:
msiexec /x "<path to MSI>\vba71.msi
msiexec /x "<path to MSI>\vba71_1033.msi
Alternatively, you can specify the component GUID in the msiexec command. you can find the GUID in the Windows Registry Editor at:
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
Install vba71_1033.msi as an administrator