How To: Read ConceptDraw PROJECT files
ConceptDraw PROJECT writes CDPX, CPDZ and CPDTZ files.
Reading CDPX, CPDZ and CPDTZ files
The simplest way to read a CDPX, CPDZ or CPDTZ file is to use the
UniversalProjectReader
:
import net.sf.mpxj.ProjectFile;
import net.sf.mpxj.reader.UniversalProjectReader;
// ...
UniversalProjectReader reader = new UniversalProjectReader();
ProjectFile project = reader.read("my-sample.cdpx");
You can work directly with the ConceptDrawProjectReader
by replacing
UniversalProjectReader
with ConceptDrawProjectReader
, although this offers
no particular advantage as there are no additional configuration settings
available on the ConceptDrawProjectReader
class.