Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hi Everyone,
Good Morning.
I know there is one utility which will help us to get all soft attributes attached with it for a given soft type.
Can you please help me in getting the URL for the same?
Thanks in advance.
Best Regards,
John
Hi @jselvaraj,
I hope you must be looking at http://support.ptc.com/cs/help/windchill_hc/wc102_hc/index.jspx?id=WC_WebjectLib_DescribeAttr&action=show
Below is the example I created for this:
<%@page language="java" session="false"%> <%@page access="http"%> <%@taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie"%> <% String instance = wt.util.WTProperties.getLocalProperties().getProperty("wt.federation.ie.VMName"); System.out.println("*** Instance -> " + instance); %> <ie:webject name="Describe-Attributes" type="OBJ"> <ie:param name="INSTANCE" data="<%=instance%>"/> <ie:param name="ATTRIBUTE" data="$(@form[0]attribute[0])" delim=","/> <ie:param name="INCLUDE_SOFT_ATTRIBUTES" data="true"/> <ie:param name="INCLUDE_DESCRIPTORS" data="true" /> <ie:param name="INCLUDE_ATTRIBUTES_FROM_SOURCE" data="SURFACE"/> <ie:param name="TYPE" data="wt.part.WTPart"/> </ie:webject>
I hope it helps you.
Regards,
Shirish
Here are some references for you:
https://www.ptc.com/en/support/article?n=CS97049
https://www.ptc.com/en/support/article?n=CS59855
Thanks,
Shirish