Wed, 11/10/2004 - 14:05
Forums:
Hi all,
Anyone, please tell me how to integrate the open cascade wizards such as WOK and Draw Test Harness with .NET framework. It might be looking like a foolish question, but i'm totally confused in utilizing the packages, DLLs and so forth in .NET environment using C#.
Thanks in advance,
hems
Wed, 11/10/2004 - 18:55
Sorry to disappoint you, but currently the wizards are not available for .NET. If you are just starting you better try to compile and understand the examples first.
Regards,
Udo
Thu, 11/11/2004 - 12:25
Hi udo,
Thanks for your reply. I am doing the same what u said. But the problem is, I am unable run lot of commands which were given in User manuals of Open Cascade (on Windows Platform). I am facing problems in executing TCL Coomands in Draw Test Harness and C++ commands in WOK (for which I need to enter into Software Factory where I can create my own Workshop, Workbench, Package and so forth). For every command it is just giving "invalid command name". I don't know why?. Can you please guide me in proceding with TCL commands, or Is there any Text book to go through, other than the Open Cascade Technical Documentation and User's manual. If you go through my other posts, you may get clear idea of my problem.
Thanks in advance,
hems
Thu, 11/11/2004 - 16:40
Ok, can you start the WOK Shell and do you get a command prompt?
Did you manage to create your own factory, with fcreate -d MyFactoryName?
If this does not work the installation of your WOK environment has probably failed.
And why would one try to put C++ commands into the WOK shell? You can modell your classes in CDL and then use WOK to build C++ header files and prototypes.
If you use .NET, why are you not using the team management tool implemented there?
What kind of application are you planning to build?
Regards,
Udo
Tue, 11/23/2004 - 14:17
Hi Udo, Thanks for your patience in analyzing my problem. Actaually, I am getting the command prompt, but unable to create own Factory. I re-installed the OpenCASCADE 5.2 Software several times and getting the same problem. Regarding the C++ commands in WOK shell (I just want to test some commands). Moreover, it was given in the WOK development Process manual, Here is the content from the manual:
//"3. Development Process
3.1. WOK Environment
The WOK interface is based on tcl, a command language provided by the Regents of the
University of California and Sun Microsystems, Inc. The WOK development environment is in fact
a tcl session. Before you run a tcl session you must make sure that your account is configured for
using tcl, see the “Configuring Your Account for Tcl and WOK” section.
To start a tcl session use the command:
% tclsh
Within this session, all WOK commands are available as well as standard tcl commands. You can
also use tcl language extensions, if these are installed.
To exit from a tcl session use the command:
> exit
Online help is provided with tcl. To access this, use the following command:
% tclhelp &
Online help is also available for all WOK commands. To display help on a particular WOK
command, give the command name followed by the -h flag, as in the following example:
> wokcd –h
3.2. Steps
Implementation of an application is based on the following steps:
1. Enter the software factory using the command wokcd MyFactory
2. Enter a workshop using the command wokcd MyWorkshop
3. Open a workbench using the command wokcd MyWorkbench
4. Search for the data types required among the existing Open CASCADE libraries
5. Define one or more packages which will contain the classes
6. Define new data types as classes
7. Implement the methods of those classes in C++
8. Implement any package methods in C++
9. Unite the test packages
10. Define any nocdlpacks (if any)
11. Test the components
NOTE
Steps 1-3 can be performed in a single WOK command:
> wokcd MyFactory:MyWorkshop:MyWorkbench "//
But, I'm unable to implement any of these things.
Yes, I can use CDL for modelling Classes, methods and so forth. I'm little bit confused in working with CDL. Could you please tell me how to work with CDL?. I mean how to implement Classes, Methods, or define Packages in CDL?
I didn't get your point of implementing Team Management Tool in .NET?. Could you please explain it in detail?
Actually, We are planning to implement a 3D Modelling and Visualization Software for which we are using OpenCASCADE 5.2 along with another software from which we can implement (or import) the Libraries and user defined Classes in .NET to develop an User Interface and finally to export the file onto the Web.
Please rectify my problem and suggest me the right way to approach.
Thanks in advance,
Hems.
Tue, 11/23/2004 - 14:36
Hi Hems,
this might sound stupid but - are you sure you really need WOK?
you can use all the OCC stuff without using CDL!
Greets,
Patrik