DATAKIT API  V2025.1
Solidworks reader

Solidworks Read Library allows you to read Solidworks 3D and 2D files.
Warning: Some information (color, visibility, name, construction tree, FDT, ...) are only processed from Solidworks 2006.

//Set the Schema directory needed for readers based on Parasolid Read Library (UG, Solidworks, Solidedge)
MyAPI->SetSchemaDir(inRepSchema);

To integrate Solidworks 3D Read Library, you should :



Notable changes :

  • Since V2018.2 :
    • Tree of Dtk_Node inside part is modelled on Solidworks construction tree.Geometry doesn't have the same directory. Like in Solidworks you can find bodies into "Solid Bodies" and "Surface Bodies" folders. Sketches and curves are mixed in the construction tree.PMIs are classified by a view.
  • Since V2019.4 :
    • DimXpert FDTs default color has changed.From Solidworks 2016, this color has been changed as you can see in these two screenshots of the same file.The color was updated to be consistent with Solidworks.

    • FDTs name has changed.From Solidworks 2020, FDT names have been added in construction tree.Names are based on this version.
  • Since V2020.2 :
    • Metadata are now only on prototype components.And the children of the catalog component are now prototype components.
  • Since V2020.3 :
    • In 2D reader mesh(display style shaded view) edges are now all black.That's more consistent to Solidworks. Now color of faces are only associated to Dtk_MeshPtr.
  • Since V2021.1 :
    • Drawing scales haven't been considered for sheet size.
  • Since V2022.2 :
    • Angle unit of features have been changed : In order to unify readers we deliver angle values of features in degree.
  • Since V2022.4 :
    • Scale has been added to Dtk_View of drawings.Elements inside of Dtk_Views now have their real size, and scale has to be applied to them to have the proper display.
  • Since V2023.3 :
    • Dtk_RenderInfos processing has been changed : Ambiant and diffuse colors are similar, transparent ratio is properly stored in its member(before it was in ambiant ratio) and diffuse ratio is read
  • Since V2024.3 :
    • There are now two modes for reading drawing files (SLDDRW extension). The already existing one that reads graphic data, and the new one that reads semantic data.
Dtk_API::SetSchemaDir
Dtk_ErrorStatus SetSchemaDir(const Dtk_string &inSchemaDir)
Set Schema Directory needed for Unigraphics, Parasolid, Solidedge, Solidworks and Jt readers.
PsReader::Enable
static Dtk_bool Enable()