JSDAI error: Dictionary data file is missing for schema
JSDAI error: Dictionary data file is missing for schema
我正在使用 Eclipse 和 JSDAI 从 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);
}
}
}
谢谢!
好的,我自己修好了。我刚刚使用来自 steptools.com 的模式源代码为 config_control_design 制作了自己的 EXPRESS jar,然后将其添加到我的库依赖项中并且它起作用了!
希望这对将来的人有用。
我正在使用 Eclipse 和 JSDAI 从 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);
}
}
}
谢谢!
好的,我自己修好了。我刚刚使用来自 steptools.com 的模式源代码为 config_control_design 制作了自己的 EXPRESS jar,然后将其添加到我的库依赖项中并且它起作用了!
希望这对将来的人有用。