Thanks Ravi,
I had posted another question here which is also related to WBM.
Can you also tell me the difference between File Based Attributes and Ad Hoc Attributes in Windchill ?
Thanks Ravi,
I had posted another question here which is also related to WBM.
Can you also tell me the difference between File Based Attributes and Ad Hoc Attributes in Windchill ?
What is DRM?
Solution is to create for number field DataUtility that extends com.ptc.core.components.factory.dataUtilities.NumberDataUtility (default data utility for number field).
Code example for this data utility:
public Object getDataValue(String componentId, Object o, ModelContext modelContext) throws WTException {
GUIComponentArray guiComponentArray = new GUIComponentArray();
AttributeInputCompositeComponent numberInput = (AttributeInputCompositeComponent) super.getDataValue(componentId, o, modelContext);
guiComponentArray.addGUIComponent(numberInput);
PickerIconButton pickerIconButton = new PickerIconButton(WTMessage.getLocalizedMessage("someYourResourceBundle", "YOUR_PICKER_LABEL"));
pickerIconButton.setFieldId("number_picker");
pickerIconButton.setColumnName(componentId);
pickerIconButton.addStyleClass("pickerInputComponentFindButton");
pickerIconButton.addJsAction("onclick", createJsOnLickAction());
guiComponentArray.addGUIComponent(pickerIconButton);
return guiComponentArray;
}
private String createJsOnLickAction() {
StringBuilder onClickActionBuilder = new StringBuilder();
onClickActionBuilder.append("popupAction('launchPicker', 'path to your jsp where itemPicker is defined'");
onClickActionBuilder.append(", '', '', '', '', '', '', '', '', '', '', '', '', 'portlet', 'poppedup', 'context', null");
onClickActionBuilder.append(", 'oid', null, null, 'none', 'com.ptc.netmarkets.search.NmSearchCommands', 'callSearchPicker'");
onClickActionBuilder.append(", 'height=768,width=550', null, null, false, '', 'component', '', false, null");
onClickActionBuilder.append(")");
return onClickActionBuilder.toString();
}
Good for:
- keeping all brain cells really busy and working hard
- keeping us all humble
How good you feel when you find the problem seems to be in proportion to how hard it is to find the problem.
I realize this is an old thread but does anyone have an update to your use cases?
I'd be curious to hear any pros/cons you may have run into using Project Link.
Also, how are you handling outside data if you do NOT use Project link?
In particular, CAD (.stp) files? Does anyone run those through a workflow before propagating into a Product Assembly (.asm)?
Are you applying a Release State to those particular objects and if so, how? Manually? Workflow?
Or by virtue of their import location [into Windchill] is access restricted somehow, to prevent modification, etc.?
Thanks in advance!
-Adam
Configuration & Data Manager
OrbitalATK
When a user checks in a drawing in Windchill, a .plt is created. The view that's created is showing datum planes and coordinate systems and points. Does anyone know how/where to tell Creo View to not show those items?
Mike Szwabowski
I answered my own question. I set the following options to "no" in the config.pro file on the server:
display_coord_sys
display_planes
display_points
After nosing around this site for a while, I pieced together enough information to achieve the outcome I was looking for. I determined the publisher was pulling that information from the startup directory on the server.
Thanks for all the tips.
Hi Bill,
Yes. It is possible.
High level steps:
1. Copy Windchill folders to other nodes.
2. Setup the cluster properties.
3. Setup the load balancer settings.
You can refer 'http://support.ptc.com/WCMS/files/168953/en/WCAdvDeployGuide.pdf' guide 'Configuring the Windchill Environment for Clustering' section for more details.
Thanks & Regards,
Ravi Kandepu.
Joseph, did Aleksandr's explanation answer your question? If so, can you please mark the thread as answered?
You also cannot have the config option COMPRESS_OUTPUT_FILES set to YES. At least in 10.1. See this:
Hello Bill,
Windchill monolithic to Cluster is possible with below Cluster properties in Master and slave after copying windchill folder from master to slaves.
**************************************************************************************
1. Defining cluster properties on Master
Created a new xconf file clusterMaster.xconf under Windchill directory
wt.properties on Master node
-> java.rmi.server.hostname=<master.company.com>
-> wt.server.hostname=$(wt.rmi.server.hostname)
-> wt.rmi.server.hostname=$(java.rmi.server.hostname)
-> wt.httpgw.hostname=<loadbalancer.company.com> or <Server alias Name>
-> wt.cache.master.slaveHosts=<slave1.company.com>,<slave2.company.com>,
< slave3.company.com>,<master.company.com>,<IP_Address for slave1>, <IP_Address for slave2>,<IP_Address for slave3>,<IP Address for master>
-> wt.server.codebase=<http\://AiasName.company.com/windchill>
-> wt.cache.master.codebase=<http\://master.company.com/windchill>
-> wt.cache.master.hostname=<master.company.com>
<Windchill>/codebase/WEB-INF/ieStructProperties.txt on Master node
-> ie.ldap.serviceName=<loadbalancer.company.com>or <Server alias Name>
1. Defining cluster properties on Slaves
Created a new xconf file clusterMaster.xconf under Windchill directory
wt.properties on Slave node
-> java.rmi.server.hostname=<Slave1.company.com>
-> wt.server.hostname=<Slave1.company.com>
-> wt.rmi.server.hostname=<Slave1.company.com>
-> wt.httpgw.hostname=<loadbalancer.company.com> or <Server alias Name>
-> wt.cache.master.slaveHosts=<slave1.company.com>,<slave2.company.com>,
<master.company.com>,<IP_Address for slave1>, <IP_Address for slave2>,
<IP Address for master>
-> wt.server.codebase=<http\://AiasName.company.com/windchill>
-> wt.cache.master.codebase=<http\://master.company.com/windchill>
-> wt.cache.master.hostname=<master.company.com>
<Windchill>/codebase/WEB-INF/ieStructProperties.txt on Slave1 node
-> ie.ldap.serviceName=<loadbalancer.company.com>or <Server alias Name>
****************************************************************************************************************
Load balancing can be done with Hardware load balancing as per PTC recommendation or Apache load balancing.
Please refer PTC document as given by Ravi mail above.
Regards,
Nandish
I am currently facing an issue were users are getting added to site administrators group and are not removed. This is causing access discrepancies.
The difficult part is we cannot find a pattern as the user who gets added is not always same and the frequency of occurrence is also not predictable.
Is there a means to get notified when a user gets added the administrators group.
Hi Stuart,
Were you able to find that API that would automatically export Product/Library Templates?
I am currently in search for such APIs and its methods. It would be really helpful, if you could give some information about it
Thanks in Advance.
Thanks,
Ganesh.
It works with following method:
/**
* Saves the context template to disk
*
* @param template
* @param basePath
* @param filename
*/
public static void saveContainerTemplateToDisk(WTContainerTemplateMaster template, Path basePath, String filename) throws WTException {
DefaultWTContainerTemplate containerTemplate = template.getContainerTemplate();
Path filePath = basePath.resolve(filename);
logger.debug("filePath = " + filePath);
File file = filePath.toFile();
InputStream inputStream = null;
OutputStream outputStream = null;
QueryResult queryResult;
try {
queryResult = ContentHelper.service.getContentsByRole(containerTemplate, ContentRoleType.BUSINESS_JAR);
if (queryResult.size() == 1) {
ContentItem contentItem = (ContentItem) queryResult.nextElement();
if (contentItem instanceof ApplicationData) {
if (!file.getParentFile().exists()) {
file.getParentFile().mkdirs();
}
if (file.exists()) {
file.delete();
}
ApplicationData applicationData = (ApplicationData) contentItem;
Streamed streamed = (Streamed) applicationData.getStreamData().getObject();
inputStream = streamed.retrieveStream();
outputStream = new FileOutputStream(file);
int read;
byte[] bytes = new byte[1024];
while ((read = inputStream.read(bytes)) != -1) {
outputStream.write(bytes, 0, read);
}
}
}
} catch (WTException e) {
throw new WTException(e);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
if (inputStream != null) {
try {
inputStream.close();
} catch (IOException e) {
e.printStackTrace();
}
}
if (outputStream != null) {
try {
outputStream.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
}
We have planning to integrate PLM with Oracle ERP R12, the project is at initial discussion. So want to know the possibilities/products available for the integration.
Jeff,
Where/when can we use Structure Annotations in PSB instead of PSE?
Ben,
That will be one of the last items to move to HTML - I don't have an exact target at this date.
Need the log file
We are using part configurations and part instances to track serial numbers of high value items in our assemblies. I would like to have an attribute on the instances for some general notes. Currently this is a global attribute which I have added to the 'Part Instance' type, it is added to the edit layout, the visibility is set to read/edit, and the policy administration gives the 'modify' permission to users. It correctly shows the attribute on the item information page. However, there is no edit option on the action dropdown box on the part instance. There is no checkout/checkin for these type of objects either. How can I enable a user to be able to edit an attribute? Attached is a screenshot of the attribute setup and layout for this type.
How can I enable the visualization tab to be also shown in document structure?
We have in in wtparts, but it would be quite useful for documents as well:
I don't understand what's the point of document structure without visualization..? What does it help to have a structure if the documents must be viewed externally? It's enabled by default in wtparts structure.
greetings