DATAKIT API  V2025.4
solidworksw.hpp File Reference

Go to the source code of this file.

Data Structures

class  sw::sww::FileDescription
 This class provides several informations about a Solidworks File.
It can be used with sw::OpenPart and OpenAssembly functions to specify file properties. More...
 
class  sw::sww::Instance
 This class provides Instance about a Solidworks File.
It can be used with sw::sww::OpenAssembly functions to Add Instance. More...
 

Namespaces

 sw
 Exported APIs for solidworks Write Library.
 
 sw::sww
 

Enumerations

enum  sw::sww::language {
  sw::sww::french = 0, sw::sww::english = 1, sw::sww::italian = 2, sw::sww::deutch = 3,
  sw::sww::chinese = 4
}
 

Functions

Dtk_ErrorStatus sw::sww::AddEntity (const Dtk_EntityPtr &inEntity)
 Write the entity provided in parameter. More...
 
Dtk_ErrorStatus sw::sww::AddInstanceComponent (Instance &inInstance)
 Add an instance into the Current Assembly (sldasm). More...
 
Dtk_ErrorStatus sw::sww::AddMetaData (const Dtk_MetaDataPtr &inEntity)
 
Dtk_ErrorStatus sw::sww::AddParasolidBodyStream (const char *inFlux, size_t inSize, const Dtk_InfoPtr &inInfo)
 Add parasolid stream with only one body without header. More...
 
Dtk_ErrorStatus sw::sww::AddParasolidFile (const Dtk_string &inParasolidFile)
 Add parasolid file. More...
 
Dtk_ErrorStatus sw::sww::AddParasolidId (const Dtk_Int32 &inParasolidId)
 Add parasolid Id body. More...
 
Dtk_ErrorStatus sw::sww::CloseAssembly ()
 Write effectively the Assembly initialized by OpenAssembly. More...
 
Dtk_ErrorStatus sw::sww::ClosePart ()
 Free data allocated by sw::sww::OpenPart
More...
 
Dtk_ErrorStatus sw::sww::EndWriter ()
 Free the Solidworks Writer
More...
 
Dtk_ErrorStatus sw::sww::InitWriter (const Dtk_string &inLogFile, Licence_dtk inLicFct, sw::sww::language inLanguage=sw::sww::english)
 Initialize the Solidworks Writer
More...
 
Dtk_ErrorStatus sw::sww::OpenAssembly (const Dtk_string &inFileName, const sw::sww::FileDescription &inFileDescription=sw::sww::FileDescription(), Dtk_Unit inUnit=DTK_UNIT_MM, const Dtk_string &inConfigurationName=Dtk_string())
 Initialize a Assembly . More...
 
Dtk_ErrorStatus sw::sww::OpenPart (const Dtk_string &inSolidworksFile, const sw::sww::FileDescription &inFileDescription=sw::sww::FileDescription(), Dtk_Unit inUnit=DTK_UNIT_MM, const Dtk_string &inConfigurationName=Dtk_string())
 Initialize the part
More...
 
void sw::sww::OptionRemoveComment (Dtk_Int32 inRemoveComment)
 option to not store the comment More...
 
void sw::sww::OptionStoreBodyColor (Dtk_Int32 inStoreBodyColor)
 option to store the body color More...
 
void sw::sww::SetIsAlreadyStart (const Dtk_Int32 &inStop)
 ONLY for PSKERNEL user. More...