InterOp:Connect/Translating Parasolid Entities
From DocR18
Connect supports translating Parasolid entities in memory with the SPAIParasolidDocument class. SPAIParasolidDocument is a subclass of SPAIDocument and can be used as a source document. However, unlike regular documents, SPAIParasolidDocument is initialized with entities for translation rather than with a file path or a file pointer.
The following example illustrates how to use the SPAIParasolidDocument in order to translate Parasolid entities in memory:
#include "SPAIParasolidDocument.h" #include "SPAIConverter.h" #include "SPAIDocument.h" void translateParasolidEntities(const int iPartCount, const SPAXMILPart ipParts[]) { SPAIParasolidDocument src(iPartCount, ipParts); SPAIDocument dst("C:\model.CATPart"); SPAIConverter converter; converter.Convert(src, dst); }
ParasolidExport sample
This sample demonstrates how to export Parasolid to the supported format.
Usage
ParasolidExport -i file -o file -oformat format
Options
-i : input file -o : output file -oformat : output format
