Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. 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