  | 
  
    DATAKIT API
    V2025.4
    
   
   | 
           
 | 
 
 
 
 
◆ IfcWriteSample()
      
        
          | int IfcWriteSample  | 
          ( | 
          const Dtk_string &  | 
          inResultDirectory | ) | 
           | 
        
      
 
  199      cout << endl << 
"----------------------------------------------" << endl;
 
  200      cout << 
"Ifc Write start" << endl;
 
  203      outputDirectory = inResultDirectory + L
"Ifc/";
 
  205      outputDirectory.
mkdir();
 
  220      outputFileName = outputDirectory + L
"sample.ifc";
 
  237      cout << 
"=> " << outputFileName.
c_str() << endl << 
"Ifc Write end" << endl;
 
 
 
 
◆ ProcessBasicWall()
   36           cout << 
"Can't write object " << errorStatus << endl;
 
 
 
 
◆ ProcessMultiMeshWall()
  150      inParameters.
SetName( L
"myWall" );
 
  152      inParameters.
SetLevel( L
"Ground floor" );
 
  153      inParameters.
SetGUID( L
"00024NEV9DMsnaPcrdUcjs" );
 
  161      myMetadatum2->SetCategory( 
"Identity Data" );
 
  177           cout << 
"Can't write object : " << errorStatus << endl;;
 
  188      mesh->Transform( 
Dtk_transfo( 
Dtk_dir( 1, 0, 0 ), 
Dtk_dir( 0, 1, 0 ), 
Dtk_dir( 0, 0, 1 ), 
Dtk_pnt( 0, 87, 0 ) ) );
 
 
 
 
◆ ProcessPrototypedColumns()
  102      myColumnType.
SetName( std::move( name ) );
 
  105      myColumnType.
SetID( 1 );
 
  111      myColumnType.
AddProperty( myMetadatum2, L
"Identity Data" );
 
  120           cout << 
"Can't write type : " << errorStatus << endl;;
 
  125      for( 
int i = 0; i < columnNumber; i++ )
 
  132           inInstanceParameters.
SetName( std::move( nameInst ) );
 
  134           inInstanceParameters.
SetLevel( L
"Ground floor" );
 
 
 
 
◆ ProcessWallClassification()
   65      inParameters.
SetName( L
"wallClassified" );
 
   77           cout << 
"Can't write object : " << errorStatus << endl;;
 
 
 
 
 
 
void SetPredefinedType(const Dtk_string &inType)
Setter for IfcType predefined type.
 
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
 
Dtk_ErrorStatus ProcessBasicWall(Dtk_bool inMesh)
Definition: testlibifcwrite.cpp:22
 
void SetGUID(Dtk_string inGUID)
Setter for IfcElement GUID.
 
Dtk_ErrorStatus WriteEntity(const Dtk_EntityPtr &inEntity, const Dtk_transfo &inMat=Dtk_transfo())
Write the entity provided in parameter. The entity corresponds to current object geometry (e....
 
void SetLevel(Dtk_string inLevel)
Setter for IfcElement level.
 
void SetBuildingElementType(const Dtk_string &inType)
Setter for IfcType building element type.
 
void AddProperty(Dtk_MetaDataPtr inProperty, Dtk_string inSetName="")
Adds a property to IfcElement current property set.
 
A IfcType is used to define the common properties of a certain type or style of an entity that may be...
Definition: IFCWriter.h:249
 
DtkErrorStatus InitWrite(const Dtk_string &inOutputFile, const Dtk_string &inLogFile, const WriteOptions &inOptions, ProjectInformation *inProjectInfo=nullptr)
Initialize the Ifc Writer and the IFC version you want to write.
 
void SetColor(const Dtk_RGB &inColor)
Setter for IfcElement color.
 
int versionIndicator
Int representing IFC version to use : 0 ( default ) = IFC2x3; 1 = IFC4.
Definition: IFCWriter.h:28
 
Dtk_bool buildingTypeRecognition
DTK_TRUE : enable building type recognition (deduces if an element is an IFCWALL, IFCWINDOW....
Definition: IFCWriter.h:30
 
This class provides several parameters for the next ifc entity to be written, as its custom property ...
Definition: IFCWriter.h:331
 
DtkErrorStatus InitObject(IfcElement inParameters)
Initialize an ifcobject with various information.
 
This is a high level string class.
Definition: dtk_string.hpp:58
 
DtkErrorStatus EndObject()
Ends the current object.
 
void add_int(const int integer, int force_unsigned_int=0)
concat an int to the Dtk_string (convert the int to Dtk_string)
 
void AddShape(Dtk_EntityPtr inShape)
Adds an entity to IfcType shape representation (geometry)
 
void SetBuildingElementType(Dtk_string inType)
Setter for IfcElement building element type.
 
void SetTypeID(const Dtk_ID &inID)
Setter for IfcElement IfcType ID.
 
Dtk_ErrorStatus ProcessMultiMeshWall()
Definition: testlibifcwrite.cpp:145
 
This class provides several options to tune the IFC Writer. It must be provided to Ifcw::InitWrite me...
Definition: IFCWriter.h:18
 
static Dtk_SmartPtr< Dtk_Entity > DtkDynamicCast(const Dtk_SmartPtr< T2 > &p)
Definition: util_ptr_dtk.hpp:101
 
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
 
void SetClassificationReference(classification::IfcClassificationReference inClassificationRef)
Setter for IfcElement classification reference.
 
Dtk_ErrorStatus ProcessPrototypedColumns(int columnNumber)
Definition: testlibifcwrite.cpp:94
 
DtkErrorStatus EndWrite()
Creation of the output file and free the Ifc Writer
 
void SetID(const Dtk_ID &inID)
Setter for IfcType ID.
 
Dtk_string dtkTypeError(Dtk_Int32 errNumero)
 
const char * c_str() const
Retrieve the ASCII conversion string.
 
Dtk_ErrorStatus WriteType(const IfcType &inType)
Write the type provided in parameter. The type can exists by itself without having entities related t...
 
Dtk_MeshPtr CreateMeshCylinder(int nbpoints)
Mesh Cylinder sample.
Definition: testcreatemesh.cpp:339
 
void AddProperty(Dtk_MetaDataPtr inProperty, const Dtk_string &inSetName="")
Adds a property to IfcType current property set.
 
int mkdir() const
File Utility : Create a Directory.
 
This is a mathematical point class.
Definition: dtk_pnt.hpp:22
 
void FixPathSeparator()
File Utility : Fixes path separator consistency. It lets you replace the '\' or '/' by the OS needed ...
 
void SetName(Dtk_string inName)
Setter for IfcElement name.
 
@ dtkErrorInvalidComponent
Definition: error_dtk.hpp:47
 
This class represent a classification reference to be used for an ifc object, e.g....
Definition: IFCWriter.h:175
 
void addTranslate(const Dtk_dir &V)
Translate the Dtk_transfo.
 
Dtk_BodyPtr CreateCube()
Definition: testcreatecube.cpp:1320
 
@ IfcColumn
Definition: IFCWriter.h:225
 
@ IfcWall
Definition: IFCWriter.h:239
 
Dtk_MeshPtr CreateMeshCuboid(const Dtk_pnt &inFirstPoint, const Dtk_pnt &inSecondPoint)
Definition: testcreatemesh.cpp:460
 
@ dtkNoError
Definition: error_dtk.hpp:144
 
void SetInstanceTrf(const Dtk_transfo &inTrf)
Setter for IfcElement instance transformation matrice.
 
A class that represents a classification system, like UniFormat, Omniclass, SfB...
Definition: IFCWriter.h:117
 
Definition: dtk_rgb.hpp:7
 
void SetName(const Dtk_string &inName)
Setter for IfcType name.
 
This is a mathematical direction class.
Definition: dtk_dir.hpp:15
 
Dtk_ErrorStatus ProcessWallClassification()
Definition: testlibifcwrite.cpp:61