FAQ
How to identify the type of an object (Rerpesentation, Scene Graph Element, Appearance, etc.)?
In order to return the type of a ModelData_BaseObject, use its IsOfType method. See also: Bill of Materials (BOM) Example.
How to measure distance between Shapes, lengths of Edges and surface area in Web Toolkit
To measure the minimal distance between two selected Shapes, use createDistanceFromShapes method of ModelPrs_MeasurementFactory class. To measure the length of an Edge, use computeEdgeLength method of ModelAlgo_CurveLength class. It will be computed ...
How to import and visualize 2D drawings in Web Toolkit
We have a ready-made Drawing Viewer Example that shows drawings: sheets, layers, elements in a browser. Its source code is available here on GitHub. It can be implemented into your solution. In order for the Web Toolkit to display the drawing, the ...
How to import CATIA models with hidden elements
CAD Exchanger SDK does not import hidden elements from CATIA by default. To import them, enable the ImportHiddenObjects parameter for CAT_Reader: CAT_Reader aReader; CAT_ReaderParameters aParams; aParams.ImportHiddenObjects() = true; ...
Is it possible to import semantic (textual) PMI into Unity?
Since there are no entities in Unity that can contain it, semantic PMI can not be transferred to Unity with our plugin. We can suggest working with ModelData_Model class to get semantic PMI data using our SDK - please see our PMI Example. Note that ...
How to simplify models in CAD Exchanger SDK
1. If your model contains B-Rep data, you can generate a mesh representation using ModelAlgo_BRepMesher. Setting different ModelAlgo_BRepMesherParameters will result in different output quality. See our ready-made Visualization Mesher Example and ...
Can CAD Exchanger SDK identify specific features like holes, pockets, milling faces, bosses, etc. in a given part?
We offer a module for our SDK dedicated to work with CNC machining and sheet metal models called Manufacturing Toolkit (MTK). Its functionalities do include CNC Machining Feature Recognition. See CNC Machining Features for a full list of features ...
How to import PMI into Unity
CAD Exchanger Unity plugin can import PMI into Unity. See our ready-made Unity PMI Viewer Example. ModelData_ModelReader has the ReadPMI parameter. It has to be set to True using SetReadPMI method. This will make CAD Exchanger import PMI from the ...
How to generate meshes for Finite Element Analisys (FEA) in CAD Exchanger SDK
CAD Exchanger SDK includes Computational Meshers intended for FEA mesh generation out of BReps (Boundary Representations). See our ready-made Netgen Mesher Example and Mefisto Mesher Example. The time it will take for the algorithm to complete ...
How to assign UUID
UUIDs are set to scene graph elements using SetUuid() method. Uuid() method can be used to get UUID. CreateRandom() method can set random UUIDs. AssignUuids() method assigns UUIDs to multiple elements in the scene graph. If you're looking for ...
How to retrieve the color of a point (in a BRep model)
1. Get the ModelData_BRepRepresentation of a part; 2. Get a list of all the Bodies that belong to this Part: ModelData_BodyList aBodyList = theBRep.Get(); 3. Use Appearance(aBody) method of the ModelData_BRepRepresentation object to retrieve ...
How to work with PMI (Product Manufacturing Information)?
Work with PMI should be performed using ModelData_PMIData class. We have a number of examples demonstrating: - Traversal of PMI in a 3D model - Visualization of PMI from a 3D model - Working with PMI in Unity - Visualization of PMI in a web-browser ...
I'm writing a plugin for Siemens NX. CAD Exchanger SDK libraries won't load.
Our CadExCore.dll library depends on another system library - dbgeng.dll. In turn, dbgeng.dll depends on another library - dbghelp.dll. Siemens NX loads and uses its own copy of dbghelp.dll instead of the system one. NX's version of this library is ...
Can I deploy an app using CAD Exchanger SDK in Docker?
Absolutely! CAD Exchanger SDK is a set of native software libraries, so apps using it can be run within containers. Please note that even if you're using C#, Java or Python API, it will be calling into native binaries. However there is a tiny ...
Would it be possible to run CAD Exchanger SDK with no internet access?
CAD Exchanger SDK (including core libraries on back-end and WebToolkit on front-end) do not require internet connection.
What is NURBS recognition? What can it be used for?
NURBS recognition is an algorithm in CAD Exchanger SDK that is aimed at converting NURBS (Non-Uniform Rational B-Spline) curves and surfaces that correspond to geometries in analytical form. Examples include circles and ellipses which are represented ...
Does your SDK offer an on-premise way to convert files?
CAD Exchanger SDK libraries are deployed completely on one's own, on premise or in a cloud, so data don't leave one`s premises or cloud.