Class for importing a scene graph from a CAD file. More...
#include <Inventor/io/CAD/SoCADInputReader.h>
Public Member Functions | |
SoCADInputReader () | |
virtual | ~SoCADInputReader () |
virtual bool | canConvert (SoInput *) |
virtual SoSeparator * | convert (SoInput *) |
This class can import data from a number of CAD file formats to an Open Inventor scenegraph.
Note that for each format, if the required license are available reading a file into Open Inventor is just like reading in an Open Inventor format file. Open Inventor will open the file and automatically detect its format and use this class to do the import.
List of supported formats:
File extensions | File Format |
.catpart, .catproduct | CATIA V5. See CATIAV5_DETAILS. |
.3dxml | CATIA V6. See CATIAV6_DETAILS. |
.iges, .igs | IGES reader. See IGES_DETAILS. |
.jt | JT. See JT_DETAILS. |
.xmt, .x_t, .x_b | ParaSolid. see PARASOLID_DETAILS. |
.par, .asm, .psm, .pwd | SolidEdge. see SOLIDEDGE_DETAILS |
.sldprt, .sldasm | SolidWorks. see SOLIDWORKS_DETAILS |
.prt | Unigraphics. see UNIGRAPHICS_DETAILS |
.step, .stp, .stp.Z | STEP. see STEP_DETAILS |
.dwg | Autocad Dwg. see DWG_DETAILS. |
.asm, .prt, .xar, .xpr | PROECREO. see PROECREO_DETAILS. |
.vda | VDA. |
Important Notes:
Part names will be imported, but since the names are assigned directly to nodes, the Open Inventor node name limitations will be enforced automatically (see SoBase::setName()). For example ' ' (blank or space) characters are replaced with '_' (underscore) characters and a leading '#' (hash or pound sign) character will be replaced with "_" (underscore).
ProE/Creo Parametric Input details:
SoInput, SoInputParameters, SoCADFileFormat, SoCADInputReaderParameters
SoCADInputReader::SoCADInputReader | ( | ) |
Constructor.
virtual SoCADInputReader::~SoCADInputReader | ( | ) | [virtual] |
Destructor.
virtual bool SoCADInputReader::canConvert | ( | SoInput * | ) | [virtual] |
Returns true if the specified input source can be converted by this plugin. Note that the input source (SoInput object) may be a file or a buffer (memory). This method should return false if the input source is a buffer and the reader does not support reading from a buffer. SoInput::getCurFile() returns NULL if the input source is a buffer.
Implements SoInputReader.
virtual SoSeparator* SoCADInputReader::convert | ( | SoInput * | ) | [virtual] |
Returns the specified input source in the form of an Open Inventor scene graph. Note that the input source (SoInput object) may be a file or a buffer (memory). This method should return NULL if the input source is a buffer and the reader does not support reading from a buffer. SoInput::getCurFile() returns NULL if the input source is a buffer.
Implements SoInputReader.