Windchill 高级查询 获取分类节点可实例化设置

Windchill 高级查询 获取分类节点可实例化设置

开发环境:windchill 11.0 M030
如题,目标是查询partsLink模块中,分类节点的可实例化设置。
执行sql如下:

select a2.value 
from LWCPropertyDefinition a1, LWCPropertyValue a2, LWCStructEnumAttTemplate a3 
where a1.ida2a2=a2.ida3a4 and a2.ida3b4=a3.ida2a2 and 
a3.deletedid is null and a1.name='instantiable' and a3.name='分类节点内部名称'

需要注意:
如果可实例化的值,不是手动设置的,而是继承得到的,则上面的sql查不出来。
在这里插入图片描述
使用高级查询,代码实现如下

import com.ptc.core.lwc.server.LWCPropertyDefinition;
import com.ptc.core.lwc.server.LWCPropertyValue;
import com.ptc.core.lwc.server.LWCStructEnumAttTemplate;

import wt.fc.PersistenceHelper;
import wt.fc.QueryResult;
import wt.query.ClassAttribute;
import wt.query.QuerySpec;
import wt.query.SearchCondition;
import wt.query.TableColumn;

/**
 * @author 彭秉浪 PengBingLang@dingtalk.com
 */
public class TestUtil {
   
	public 
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值