Enviroment variables....

Hi !

It would be nice if it would be possible to use CAS without setting all these environment variables, a minimum is at least the CSF_GraphicsShr which must be set to find the opengl driver.

It would be nice if you could give the path to this driver with an argument to some function you call to initialize Open casacde or something like that.

On windows for example you can find the path to where the application is with the GetModuleFileName() function and use that path.

On Linux/UNIX it is no problem to ask the user to et some environment variables, but asking an ordinary Windows user to mess around with environment variables on a Windows 2000 for example can get messy, most ordinary Windows users don't have a clue to how to do this.

So if the application that use Open Cascade could do this on itäs own, it would be much better, maybe even more interesting if Open Cascade is included with the application.

By the way, is it okay to create an application and include the needed Open Cascade DLL files with the app ?, just so that this would not violate something in the license, this would make it much simpler beacuse you only need to include the dlls that the application use and nothing more, and these files can be installed in the same directory as the application so they don't mess up something else on the computer.


Philippe Poncot's picture

We are working on this problem . It is already made for CSF_GraphicShr , DRAWHOME and DRAWDEFAULT . We want to define a default value for all this variable. So they will be not mandatory .

But, if we want to define them , the define value will be taken account as before.

Available in next Version .