![Logo](tetiere_ht.jpg) |
DATAKIT API
V2025.1
|
|
#ifdef WIN32
#include <windows.h>
#endif
int
{
cout << endl << "----------------------------------------------" << endl;
cout << "Parasolid Write start" << endl;
Dtk_string outputDirectory = inResultDirectory + L
"dtk/Parasolid/";
Dtk_string outputFileName0 = outputDirectory + L
"sample_listofbody.x_t";
{
return status;
}
for( i = 0; i < l; ++i )
{
}
else
cout <<
"=> " << outputFileName0.
c_str() << endl;
Dtk_string outputFileName1 = outputDirectory + L
"sample_assemblyofbody.x_t";
for( i = 0; i < l; ++i )
{
if( returnID.
size() > 1 )
{
{
}
partID[ i ] = outIdass;
}
else
partID[ i ] = returnID[ 0 ];
}
for( i = 0; i < l; ++i )
{
Matrix1->setOrigin(
Dtk_pnt( 100.0, 0.0, 0.0 ) );
Matrix2->setOrigin(
Dtk_pnt( 100.0, 100.0, 100.0 ) );
instName2.
add_int( (
int )(i + l));
}
{
}
else
cout <<
"=> " << outputFileName1.
c_str() << endl;
cout << "Parasolid Write end" << endl;
return 0;
}
uint32_t Dtk_ID
Definition: define.h:689
DtkErrorStatus psw_CreateInstance(Dtk_ID inIdAss, Dtk_ID inIdPart, Dtk_transfoPtr &Matrix, Dtk_ID &outIdInst)
Create an Instance item of a part referenced by inIdPart.
Dtk_ErrorStatus SetName(Dtk_string inName)
DtkErrorStatus psw_InitFile(const Dtk_string &inFileOut, Dtk_bool muteMode, Dtk_Int32 inVersion=180)
Initialise a file to be written.
static Dtk_SmartPtr< Dtk_transfo > create()
#define DTK_TRUE
Definition: define.h:727
This is a high level string class.
Definition: dtk_string.hpp:58
size_t Dtk_Size_t
Definition: define.h:712
char Dtk_bool
Definition: define.h:725
void add_int(const int integer, int force_unsigned_int=0)
concat an int to the Dtk_string (convert the int to Dtk_string)
DtkErrorStatus psw_CreateAttribut(Dtk_ID inIdCompo, Dtk_InfoPtr &info)
Create all attribut attached to a component (body, assembly, instance)
int ParasolidWriteSample(const Dtk_string &inResultDirectory)
Definition: testlibparasolidwrite.cpp:16
int32_t Dtk_Int32
Definition: define.h:687
DtkErrorStatus psw_CreateEmptyAssembly(Dtk_ID &outIdass)
Create the entry item of an assembly.
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_ErrorStatus SetId(const Dtk_Int32 &inId)
Definition: util_ptr_dtk.hpp:37
Dtk_string dtkTypeError(Dtk_Int32 errNumero)
const char * c_str() const
Retrieve the ASCII conversion string.
int mkdir() const
File Utility : Create a Directory.
This is a mathematical point class.
Definition: dtk_pnt.hpp:22
Dtk_ErrorStatus psw_WriteBody(Dtk_BodyPtr &inBody)
Writes a Body of a 3D part (3D content of a product), of any kind (solid, shell / faces,...
void FixPathSeparator()
File Utility : Fixes path separator consistency. It lets you replace the '\' or '/' by the OS needed ...
This is a high level array class.
Definition: util_stl_dtk.hpp:85
Dtk_BodyPtr CreateCube()
Definition: testcreatecube.cpp:1249
Dtk_Size_t size() const
Returns the size of the array.
Definition: util_stl_dtk.hpp:502
DtkErrorStatus psw_EndFile(Dtk_tab< Dtk_ID > &inTabIds, Dtk_bool binForceListOfBody=DTK_FALSE)
Ends the writing of the Parasolid (x_t or x_b) file.
Dtk_BodyPtr CreateCurves()
Definition: testcreatecube.cpp:1292
@ dtkNoError
Definition: error_dtk.hpp:140
void push_back(const T &x)
Inserts an element at the end of the array.
Definition: util_stl_dtk.hpp:415
DtkErrorStatus psw_LinkAttribut(Dtk_ID inIdAss)
link all attribut attached to an assembly
void clear(int no_delete=0)
Resets the Dtk_tab content.
Definition: util_stl_dtk.hpp:351
void CreateOpenShell(std::map< Dtk_ID, Dtk_EntityPtr > &outArrayTopo, const Dtk_BodyPtr &inDtkBody)
Definition: testcreatecube.cpp:1194
static Dtk_SmartPtr< Dtk_Info > create()