我正在使用带有 JSDAI 的 Eclipse 从 STEP 文件中提取数据。我已按照教程进行操作,但最终出现错误,
模式“config_control_design”(jsdai/SConfig_control_design/CONFIG_CONTROL_DESIGN_DICTIONARY_DATA)缺少字典数据文件
这是我的代码
public class StepExtraction {
public static void main(String args[]) throws SdaiException {
java.util.Properties prop = new java.util.Properties();
prop.setProperty("repositories", "/Users/name/Repos");
SdaiSession.setSessionProperties(prop);
SdaiSession session = SdaiSession.openSession();
SdaiTransaction transaction = session.startTransactionReadWriteAccess();
SdaiRepository repository = session.importClearTextEncoding("MyRepo", "/Users/name/Downloads/cylinder.stp", null);
if(!repository.isActive()) {
repository.openRepository();
}
transaction.commit();
ASdaiModel models = repository.getModels();
SdaiIterator modelIterator = models.createIterator();
while(modelIterator.next()) {
SdaiModel model = models.getCurrentMember(modelIterator);
}
}
}
谢谢!