For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Here is one line that doesn`t work on my PC

Omar Msaaf's picture
Forums: 

DRAWDEFAULT=%DRAWHOME%\\DrawDefault Can anyone tell me why ?? I have the error message DRIVENAMEPATHS... without nothing separating the path i mean the : and the \ So can any help ? thanxs

Omar Msaaf's picture

Hello new users to cascade, as you have seen it, this not an easy to use environment because explanations are not always given and errors exist in the samples that we have to use. For example when you set DRAWDEFAULT=%DRAWHOME%\\DrawDefault This an all faulty set, because you must not have single "\" when showing a pth. You must a double "\\", which means DO NOT DEFINE DRAWHOME as c:\cascade\draw instead use c:\\cascade\\draw Hope this can help Thanks for reading me

Jennifer Whitby's picture

I'm finding it frustrating trying to launch the demo.bat file owing to the errors others have mentioned ( '\', '/', '\\', etc.). If someone could fix it or post it here that would be great.

Also, when I 'think' I've almost got it launched the Draw window comes up with an error message: "MDI: Load Accel failure" Am I missing a resource file for accelerator definitions or what? I understand that this program was developed in French - perhaps they have assumed that US Windows NT installations work the same way?

I'm using the binaries (I.e. not compiled by me)

Thanks,

Jen

Matt Powley's picture

You will not need the "demo.bat" file if all the environmental variables are set as described in this page.

http://www.opencascade.org/needhelp/faqenvvar.html

After these have been set, simply run the executable.

I hope this helps you on your first point. I also get the same error message when starting the demo. An answer to the problem would be appreciated.

I have found that the MFC examples are a very good demonstration and are worth the download time.

Etienne Cocquebert's picture

> I'm finding it frustrating trying to launch
> the demo.bat file owing to the errors others
> have mentioned ( '\', '/', '\\', etc.). If
> someone could fix it or post it here that
> would be great.

here it is :

*** beginning *** echo off

echo " Open CASCADE " if not DEFINED CASCADEHOME set CASCADEHOME=C:\cascade\binary\ echo CASCADEHOME = %CASCADEHOME%

if not DEFINED VERSIONNAME Set VERSIONNAME=CAS3.0 echo VERSIONNAME = %VERSIONNAME%

if not DEFINED CASROOT set CASROOT=%CASCADEHOME%\%VERSIONNAME% echo CASROOT = %CASROOT%

if %PROCESSOR_ARCHITECTURE% EQU x86 Set STATION=Windows_NT echo STATION = %STATION%

rem ========================================= rem rem LD_LIBRARY_PATH definition rem rem =========================================

if NOT DEFINED OLDPATH set OLDPATH=%PATH% echo OLDPATH = %OLDPATH%

set PATH=%PATH%;%CASROOT%\%STATION%\dll echo PATH = %PATH%

rem the Path where Tcl is installed set PATH=%PATH%;C:\tcl\bin echo PATH = %PATH%

rem ====================================== Set DrawExe=%CASROOT%\%STATION%\bin\TTOPOLOGY.exe echo DRAWEXE = %DRAWEXE%

Set DRAWHOME=%CASROOT%\src\DrawResources echo DRAWHOME = %DRAWHOME%

rem set DRAWDEFAULT=%DRAWHOME%\DrawDefault set DRAWDEFAULT=C:\\cascade\\binary\\CAS3.0\\src\\DrawResources\\DrawDefault echo DRAWDEFAULT = %DRAWDEFAULT%

Set MMGT_CLEAR=1

pause

%DRAWEXE% *** end ***

> Also, when I 'think' I've almost got it
> launched the Draw window comes up with an
> error message: "MDI: Load Accel
> failure" Am I missing a resource file
> for accelerator definitions or what? I

as previously said in this forum, this message can be ignored without any problem...

Hope this help Etienne