SOFA GmbH [software fabrikation] Logo
Components + Competence for CAD-Programming
.NET Wrapper for OpenCascade 6.2
Programming with C# is very prolific. So for our new product "CADability dotNET" we use the .NET framework. But how to access "legacy" DLLs and libraries? For a few methods this is not a big deal: there is "pinvoke" in .NET which does the job. But for a huge library like OpenCascade this is alot of work.
Since OpenCascade is free we thought we do our part and offer the .NET wrapper that we use ourselves in "CADability dotNET" for free too.
3d-modelling
The wrapper is automatically generated from the Open cascade *.cdl files by a program we designed. You will need two DLLs to use the wrapper:
  • "OpenCascade6.2.dll" which is a .NET DLL the contains all the namespaces, classes and methods. In your application you will have to "refernce" this dll 
  • "OCasToDotNet.dll" which is a C++ DLL and is called by "OpenCascade6.2.dll" via P-Invoke. Put it to some directory where it can be loaded from, e.g. the directory where all the other TK*.dll files are.
  • Then there is a third file "OpenCascade6.2.xml" which gives you the intellisense help in the Visual Studio and takes all its information from the cdl files. (This is a very valuable source of documentation of OpenCascade)
3d-modelling
Learn about the look and feel of OpendCascade with .NET at this page.

Currently the following packages are wrapped:
Standard, Geom, Geom2d, Geom2dAPI, Geom2dGcc, GeomProjLib, GeomAbs, Geom2dConvert, GeomAPI, Geom2dAdaptor, GeomConvert, GC, GCE2d, gce, gp, Bnd, Quantity, GccEnt, TColStd, TColgp, TCollection, Standard, MMgt, TopLoc, ShapeExtend, ShapeAnalysis, ShapeConstruct, ShapeUpgrade, ShapeFix, TopoDS, TopTools, HLRAlgo, HLRBRep, Prs3d, GProp, LProp, LProp3d, TopAbs, TopExp, IGESControl, STEPControl, IFSelect, IGESCAFControl, STEPCAFControl, BRep, BRepAlgoAPI, BRepBuilderAPI, BRepPrimAPI, BRepAdaptor, BRepTools, BRepExtrema, BRepCheck, BRepFilletAPI, BRepLib, BRepOffset, BRepOffsetAPI, BRepGProp, BRepLProp, BRepAlgo, Poly, BRepMesh, IntPoly, Interface, ChFi2d, ChFi3d, ChFiDS, ChFiKPart, XSAlgo, XSControl, XSDRAW, XSDRAWIGES, XSDRAWSTEP, XSDRAWSTLVRML, XSMessage, XSTEPResource, TDocStd, TDF, TNaming, TDataStd, XCAFDoc, IGESAppli, IGESBasic, IGESConvGeom, IGESData, IGESDefs, IGESDimen, IGESDraw, IGESFile, IGESGeom, IGESGraph, IGESSelect, IGESSolid, IGESToBRep, StepAP203, StepAP209, StepAP214, StepBasic, STEPConstruct, StepData, StepDimTol, STEPEdit, StepElement, StepFEA, StepFile, StepGeom, StepRepr, StepSelect, STEPSelections, StepShape, StepToGeom, StepToTopoDS, StepVisual.


Download here

If you have any questions feel free to ask here
Navigator  • CADability dotNET  • 3D Modelling  • SOFA GmbH  • Download  • Advisory Service  • Contact