Hi,
I get an error (java.lang.NullPointerException) when executing the following lines at :
Representation rep = RepresentationHelper.Service.getDefaultRepresentation(CurrEPM)
This is the code :
When I request info from the EPMDocument (CurrEPM) like this :
TracePath = TracePath + "\n" + "+2.2 " + "Number: " + CurrEPM.getNumber() + " Name: " + CurrEPM.getName() + " Status: " + CurrEPM.getLifeCycleState.toString() + " Version: " + CurrEPM.getVersionIdentifier().getValue() + " Iteration: " + CurrEPM.getIterationIdentifier().getValue();
I get :
+2.2 Number: M000056923.DRW Name: FOLDER PLATE Status: DESIGN Version: B Iteration: 1
Solved! Go to Solution.
Found it, there was no representation...
Should really give no exeption just a null result.
Has the RepresentationHelper object been initialized?
Found it, there was no representation...
Should really give no exeption just a null result.
Hi Bernard,
You can try the following method.
VisualizationHelper vzh = VisualizationHelper.newVisualizationHelper();
Representation rep = vzh.getRepresentation((Persistable) epmDoc);
Thanks and Regards,
Kaushik