DATAKIT API
V2025.2
Main Page
API Reference
Functions
EnableReaders.cpp File Reference
Functions
void
EnableReaders
()
Dtk_ErrorStatus
SetSchemaDirectory
(
Dtk_API
*inoutMyApi)
Function Documentation
◆
EnableReaders()
void EnableReaders
(
)
13
{
14
// Supported Format : extensions
15
//Acis : sat
16
//Catiav4 : model (both 2d and 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
//Solidedge : par,asm
26
//Solidworks : sldprt,sldasm
27
//Step : step,stp
28
//Unigraphics: prt (both 2d and 3d)
29
//Vda : vda
30
//First You have to Enable the readers you want to use
31
_3dmReader::Enable
();
32
AcisReader::Enable
();
33
#ifndef Linux
34
#ifndef ARM64
35
CaddsReader::Enable
();
36
#endif
37
#endif
38
CatiaV4Reader::Enable
();
39
CatiaV5Reader::Enable
();
40
CatiaV6Reader::Enable
();
41
CerconReader::Enable
();
42
CerecReader::Enable
();
43
CgmReader::Enable
();
44
CgrReader::Enable
();
45
CreoviewReader::Enable
();
46
DcmReader::Enable
();
47
#ifndef CENTOS
48
#ifndef ARM64
49
DwgReader::Enable
();
50
#endif
51
#endif
52
F3dReader::Enable
();
53
FbxReader::Enable
();
54
GltfReader::Enable
();
55
IfcReader::Enable
();
56
IgesReader::Enable
();
57
InvReader::Enable
();
58
JtReader::Enable
();
59
LavaReader::Enable
();
60
NavisReader::Enable
();
61
ObjReader::Enable
();
62
PlmXmlReader::Enable
();
63
ProCeraReader::Enable
();
64
ProeReader::Enable
();
65
#ifdef USE_PSKERNEL
66
XmtReader::Enable
();
67
#else
68
PsReader::Enable
();
69
#endif
70
QifReader::Enable
();
71
RevitReader::Enable
();
72
SmgReader::Enable
();
73
StlReader::Enable
();
74
StepReader::Enable
();
75
#ifndef ARM64
76
SolidEdgeReader::Enable
();
77
#endif
78
SwReader::Enable
();
79
UgReader::Enable
();
80
VdaReader::Enable
();
81
}
◆
SetSchemaDirectory()
Dtk_ErrorStatus
SetSchemaDirectory
(
Dtk_API
*
inoutMyApi
)
85
{
86
Dtk_ErrorStatus
SchemaStatus;
87
Dtk_string
SchemaDirectory =
"./Schema"
;
88
89
//Set the Schema directory needed for readers based on Pskernel (UG, Solidworks, Solidedge), or CADDS
90
#ifndef Linux
91
char
TmpFullPathSchemaDir[_MAX_PATH];
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
cout <<
"Schema Directory error -needed for readers based on Pskernel (UG, Solidworks, Solidedge), or CADDS- : "
<<
dtkTypeError
(SchemaStatus).
c_str
() << endl;
104
}
105
#endif
106
return
SchemaStatus;
107
}
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()
JtReader::Enable
static Dtk_bool Enable()
CgmReader::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()
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:58
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()
DwgReader::Enable
static Dtk_bool Enable()
InvReader::Enable
static Dtk_bool Enable()
ProCeraReader::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:140
VdaReader::Enable
static Dtk_bool Enable()
SolidEdgeReader::Enable
static Dtk_bool Enable()
QifReader::Enable
static Dtk_bool Enable()
AcisReader::Enable
static Dtk_bool Enable()
ClientsCMake
SampleSources
LibReadersSample
RunThroughAPI
GetStarted
EnableReaders.cpp