DATAKIT SDK  V2026.2
EnableReaders.cpp File Reference

Functions

void EnableReaders ()
 
Dtk_ErrorStatus SetSchemaDirectory (Dtk_API *inOutMyApi)
 

Function Documentation

◆ EnableReaders()

void EnableReaders ( )
13 {
14  // Supported formats and their extensions:
15  // Acis: .sat
16  // Catiav4: .model (2D/3D), .session, .dlv
17  // Catiav5: .CATDrawing, .CATPart, .CATProduct
18  // Cgr: .cgr
19  // Dwg: .dwg
20  // Iges: .igs, .iges
21  // Inventor: .ipt, .iam
22  // Jt: .jt
23  // Parasolid: .x_t, .x_b, .xmt
24  // Proe: .prt, .asm
25  // Solid Edge: .par, .asm
26  // Solidworks: .sldprt, .sldasm
27  // Step: .step, .stp
28  // UG NX: .prt (2D/3D)
29  // Vda: .vda
30  // ZW3D: .z3prt, .z3asm, .z3
31 
32  // Enable the readers you want to use.
35 #ifndef Linux
36 #ifndef ARM64
38 #endif
39 #endif
63 #ifdef USE_PSKERNEL
65 #else
67 #endif
78 }

◆ SetSchemaDirectory()

Dtk_ErrorStatus SetSchemaDirectory ( Dtk_API inOutMyApi)
83 {
84  Dtk_ErrorStatus schemaStatus;
85 
86  // Define the schema directory path.
87  Dtk_string schemaDirectory = "./Schema";
88 
89 #ifndef Linux
90  char tmpFullPathSchemaDir[_MAX_PATH];
91 
92  if (_fullpath(tmpFullPathSchemaDir, schemaDirectory.c_str(), _MAX_PATH) != NULL)
93  schemaStatus = inOutMyApi->SetSchemaDir(tmpFullPathSchemaDir);
94  else
95  schemaStatus = inOutMyApi->SetSchemaDir(schemaDirectory);
96 #else
97  schemaStatus = inOutMyApi->SetSchemaDir(schemaDirectory);
98 #endif
99 
100 #ifdef USE_PSKERNEL
101  if (schemaStatus != dtkNoError)
102  {
103  std::cout << "Schema directory error (required for readers based on PsKernel or CADDS): "
104  << dtkTypeError(schemaStatus).c_str() << std::endl;
105  }
106 #endif
107 
108  return schemaStatus;
109 }
ObjReader::Enable
static Dtk_bool Enable()
CgrReader::Enable
static Dtk_bool Enable()
SmgReader::Enable
static Dtk_bool Enable()
NavisReader::Enable
static Dtk_bool Enable()
LavaReader::Enable
static Dtk_bool Enable()
CgmReader::Enable
static Dtk_bool Enable()
DwgDtkReader::Enable
static Dtk_bool Enable()
GltfReader::Enable
static Dtk_bool Enable()
StlReader::Enable
static Dtk_bool Enable()
SwReader::Enable
static Dtk_bool Enable()
_3dmReader::Enable
static Dtk_bool Enable()
JtReader::Enable
static bool Enable()
CerconReader::Enable
static Dtk_bool Enable()
F3dReader::Enable
static Dtk_bool Enable()
Dtk_string
This is a high level string class.
Definition: dtk_string.hpp:53
PlmXmlReader::Enable
static Dtk_bool Enable()
CatiaV4Reader::Enable
static Dtk_bool Enable()
StepReader::Enable
static Dtk_bool Enable()
RevitReader::Enable
static Dtk_bool Enable()
Dtk_API::SetSchemaDir
Dtk_ErrorStatus SetSchemaDir(const Dtk_string &inSchemaDir)
Set Schema Directory needed for Unigraphics, Parasolid, Solidedge, Solidworks and Jt readers.
ProeReader::Enable
static Dtk_bool Enable()
CaddsReader::Enable
static Dtk_bool Enable()
InvReader::Enable
static Dtk_bool Enable()
ProCeraReader::Enable
static Dtk_bool Enable()
Zw3dReader::Enable
static Dtk_bool Enable()
UgReader::Enable
static Dtk_bool Enable()
CatiaV5Reader::Enable
static Dtk_bool Enable()
IgesReader::Enable
static Dtk_bool Enable()
CatiaV6Reader::Enable
static Dtk_bool Enable()
IfcReader::Enable
static Dtk_bool Enable()
Dtk_ErrorStatus
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
DcmReader::Enable
static Dtk_bool Enable()
PsReader::Enable
static Dtk_bool Enable()
dtkTypeError
Dtk_string dtkTypeError(Dtk_Int32 errNumero)
Dtk_string::c_str
const char * c_str() const
Retrieve the ASCII conversion string.
CerecReader::Enable
static Dtk_bool Enable()
CreoviewReader::Enable
static Dtk_bool Enable()
XmtReader::Enable
static Dtk_bool Enable()
FbxReader::Enable
static Dtk_bool Enable()
dtkNoError
@ dtkNoError
Definition: error_dtk.hpp:149
VdaReader::Enable
static Dtk_bool Enable()
SolidEdgeReader::Enable
static Dtk_bool Enable()
QifReader::Enable
static Dtk_bool Enable()
AcisReader::Enable
static Dtk_bool Enable()