Exported APIs for solidworks Write Library. More...
Data Structures | |
class | FileDescription |
This class provides several informations about a Solidworks File. It can be used with solidworksw::OpenPart and solidworksw::OpenAssembly functions to specify file properties. More... | |
class | Instance |
This class provides Instance about a Solidworks File. It can be used with solidworksw::OpenAssembly functions to Add Instance. More... | |
Enumerations | |
enum | language { french =0, english =1, italian =2, deutch =3, chinese =4 } |
Functions | |
Dtk_ErrorStatus | AddEntity (const Dtk_EntityPtr &inEntity) |
Write the entity provided in parameter. More... | |
Dtk_ErrorStatus | AddInstanceComponent (Instance &inInstance) |
Add an instance into the Current Assembly (sldasm). More... | |
Dtk_ErrorStatus | AddMetaData (const Dtk_MetaDataPtr &inEntity) |
Dtk_ErrorStatus | AddParasolidFile (const Dtk_string &inParasolidFile) |
Add parasolid file. More... | |
Dtk_ErrorStatus | AddParasolidId (const Dtk_Int32 &inParasolidId) |
Add parasolid Id body. More... | |
Dtk_ErrorStatus | CloseAssembly () |
Write effectively the Assembly initialized by solidworksw::OpenAssembly. More... | |
Dtk_ErrorStatus | ClosePart () |
Free data allocated by solidworksw::OpenPart More... | |
Dtk_ErrorStatus | EndWriter () |
Free the Solidworks Writer More... | |
Dtk_ErrorStatus | InitWriter (const Dtk_string &inLogFile, Licence_dtk inLicFct, solidworksw::language inLanguage=solidworksw::english) |
Initialize the Solidworks Writer More... | |
Dtk_ErrorStatus | OpenAssembly (const Dtk_string &inFileName, const solidworksw::FileDescription &inFileDescription=solidworksw::FileDescription(), Dtk_Unit inUnit=DTK_UNIT_MM, const Dtk_string &inConfigurationName=Dtk_string()) |
Initialize a Assembly . More... | |
Dtk_ErrorStatus | OpenPart (const Dtk_string &inSolidworksFile, const solidworksw::FileDescription &inFileDescription=solidworksw::FileDescription(), Dtk_Unit inUnit=DTK_UNIT_MM, const Dtk_string &inConfigurationName=Dtk_string()) |
Initialize the part More... | |
void | OptionRemoveComment (Dtk_Int32 inRemoveComment) |
option to not store the comment More... | |
void | OptionStoreBodyColor (Dtk_Int32 inStoreBodyColor) |
option to store the body color More... | |
void | SetIsAlreadyStart (const Dtk_Int32 &inStop) |
ONLY for PSKERNEL user. More... | |
Exported APIs for solidworks Write Library.
Dtk_ErrorStatus solidworksw::AddEntity | ( | const Dtk_EntityPtr & | inEntity | ) |
Write the entity provided in parameter.
[in] | inEntity | : The Entity to be written |
Dtk_ErrorStatus solidworksw::AddInstanceComponent | ( | Instance & | inInstance | ) |
Add an instance into the Current Assembly (sldasm).
[in] | inInstance | : Instance definitionwith (Full path name , instance name and position. |
Dtk_ErrorStatus solidworksw::AddMetaData | ( | const Dtk_MetaDataPtr & | inEntity | ) |
Dtk_ErrorStatus solidworksw::AddParasolidFile | ( | const Dtk_string & | inParasolidFile | ) |
Add parasolid file.
[in] | inParasolidFile | : Name of the Parasolid File to be added. |
Dtk_ErrorStatus solidworksw::AddParasolidId | ( | const Dtk_Int32 & | inParasolidId | ) |
Add parasolid Id body.
[in] | inParasolidId | : Id of the Parasolid body to be added. |
Dtk_ErrorStatus solidworksw::CloseAssembly | ( | ) |
Write effectively the Assembly initialized by solidworksw::OpenAssembly.
Dtk_ErrorStatus solidworksw::ClosePart | ( | ) |
Free data allocated by solidworksw::OpenPart
Dtk_ErrorStatus solidworksw::EndWriter | ( | ) |
Free the Solidworks Writer
Dtk_ErrorStatus solidworksw::InitWriter | ( | const Dtk_string & | inLogFile, |
Licence_dtk | inLicFct, | ||
solidworksw::language | inLanguage = solidworksw::english |
||
) |
Initialize the Solidworks Writer
[in] | inLogFile | : Log file |
[in] | inLicFct | : Licence fuction or Null |
[in] | inLanguage | : by default solidworksw::english |
Dtk_ErrorStatus solidworksw::OpenAssembly | ( | const Dtk_string & | inFileName, |
const solidworksw::FileDescription & | inFileDescription = solidworksw::FileDescription() , |
||
Dtk_Unit | inUnit = DTK_UNIT_MM , |
||
const Dtk_string & | inConfigurationName = Dtk_string() |
||
) |
Initialize a Assembly .
[in] | inFileName | : Name of the Solidworks Assembly (sldasm) file to be written. |
[in] | inConfigurationName | : Name of the configuration of the Solidworks Assembly (sldasm) file to be written. |
[in] | inFileDescription | : Description File |
Dtk_ErrorStatus solidworksw::OpenPart | ( | const Dtk_string & | inSolidworksFile, |
const solidworksw::FileDescription & | inFileDescription = solidworksw::FileDescription() , |
||
Dtk_Unit | inUnit = DTK_UNIT_MM , |
||
const Dtk_string & | inConfigurationName = Dtk_string() |
||
) |
Initialize the part
[in] | inOutputFile | : Name of the Solidworks Part (sldprt) file to be Written. |
[in] | inFileDescription | : Description File |
[in] | inConfigurationName | : Name of the Configuration of the Solidworks Part (sldprt) file to be Written. |
void solidworksw::OptionRemoveComment | ( | Dtk_Int32 | inRemoveComment | ) |
option to not store the comment
[in] | inRemoveComment | : used DTK_TRUE for not removing comment |
void solidworksw::OptionStoreBodyColor | ( | Dtk_Int32 | inStoreBodyColor | ) |
option to store the body color
[in] | inStoreBodyColor | : used DTK_TRUE for enabled |
void solidworksw::SetIsAlreadyStart | ( | const Dtk_Int32 & | inStop | ) |
ONLY for PSKERNEL user.
[in] | inStop | : set -1 after StartParasolid |