Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

How to call a Variable Rule Formula URL with a space?

Experimenter
Experimenter

I have inharited a folder that cannot be changed. the folder name contains spaces in it (e.g. "I:\PARTS LIB FOR Solid Edge\Vendors\..."). I get an error of Unknown variable name: PARTS when I am trying to call my VBA code in the folders within this root. My current workaround is just placing my VBA code in "I:\VBA\...". I have tried putting single and double quoats around the file path. Is there anything I can do to make this work so I don't have to put all my code in the VBA folder, placeing the code with the parts instead?

3 REPLIES

Re: How to call a Variable Rule Formula URL with a space?

Gears Phenom Gears Phenom
Gears Phenom

I might try to create a subroutine instead of a function, 

within the Sub define a variable "Path"

Set Path = "I:\PARTS LIB FOR Solid Edge\Vendors\..."

 

then in your equation call "PATH"

 

have not tested but seems like a logical way to eliminate the spaces throwing error


Matt Johnson
Solid Edge Certified Professional (ST7 & ST8)
Solid Edge ST9 (SEEC) - Production
SE2019 Pre-Production Testing
NX11 (Tc Integration) Pre-Production Testing
Teamcenter 10.1.7

Re: How to call a Variable Rule Formula URL with a space?

Experimenter
Experimenter

Wouldn't that have the same issue? It is the way solid edge is calling the path.

Betreff: How to call a Variable Rule Formula URL with a space?

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Hi @Nick-Daihen

 

 

maybe You will be better advised to post that question in the programmers forum?

 

There for sure You will get at least the better answers.

 

regards
Wolfgang