Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Thank you Mark! It works perfectly.
Hi Mark,
Can you please let me know if you do have any sample code to retrieve the latest drawing for a CAD Part or some sample API Regarding the same.
Thanks in advance.
Best Regards,
Aditya
Here is an exampleAPI to get Models (.prt /.asm) from drawing. You can trytweaking this code and check the reverse can be done.
List<epmdocument> models = new ArrayList<epmdocument>();
spec.appendClassList(EPMReferenceLink.class, false);
while (refIterations.hasMoreElements()) {
EPMDocument doc = (EPMDocument) perData[1];
models.add(doc);
}
}
ConfigSpec cSpec = null;
EPMAsStoredConfig asStoredcSpec = (EPMAsStoredConfig) asStoredConfigReference.getObject();
cSpec = EPMAsStoredConfigSpec.newEPMAsStoredConfigSpec(asStoredcSpec);
return null;
return null;
return cSpec;
Thanks