Программирование под Teamcenter начал изучать недавно. Нашел пример как создать TCComponentItem, с ним вроде все понятно. Вопрос: как создать деталь, чтобы допустим пользователь вводил имя, id, ревизию?
public static TCComponentItem createItem(String id, String rev, String type, String name) throws TCException {
TCComponentItem search = searchItem(id);
if (search == null) {
TCComponentItemType typeItem = (TCComponentItemType)session.getTypeComponent("Item");
search = typeItem.create(id, rev, type, name, "", new TCComponent());
return search;
}