Thank you Bhagiratham Kontham
Re: How to i get these search Criteria?
If i change this "let_proe_rename_pdm_objects" property in Config.pro file for Creo does it affect a system integrated with Windchill?
.asm structure including merged parts
When looking at the structure tab of a .asm file, it doesn't show any of the merged models. Is there a way to show this?
We have many cases where a forging is merged into a .prt to create the machining features. Of course, .prt files don't have a structure tab, However, in the related objects tab in the References table it does show the forging used.
I have been unable to figure out how to show the forging (related object) int he structure tab of my assemblies. We know the link is tracked by Windchill, so now we just need it to show an accurate assembly structure.
Any ideas or hints?
Re: I have a user of Windchill who needs to use assistive technology as he can't use a mouse. I was hoping that there is a way that he could navigate Windchill either using voice activation software, or use the keyboard to navigate Windchill.
Michaela Ashton wrote:
Has anyone discovered if it is possible to use Windchill without having to rely on using a mouse? Thanks in advance.
How about a track ball mouse? Can they use one of them? ie something like this:
Re: I have a user of Windchill who needs to use assistive technology as he can't use a mouse. I was hoping that there is a way that he could navigate Windchill either using voice activation software, or use the keyboard to navigate Windchill.
Well my thought process here was to get a touch pad tablet device and connect it to your network, as iPad and similar devices would still be able to access Windchill though the browser native to the tablet. While some functionalities may have issues, the user would still be able to do any activities housed within the web browser itself (workflow task activities, administrative tasks like context team setup depending on the user's ACLs, check out/check in though modification of the object content depends on the tablet's abilities too, like a MS tablet modifying MSWord docs, etc).
Creo or other CAD modification likely is out due to software compatibility.
Maybe not the best solution you'll get on this thread, but something to think about.
OIR Folder setting
Before I open a call with PTC to report this as a bug, I want to see if others are having the same issue.
The CS article states that you can change the folder location for things like promotion requests, change requests, change notices, parts, etc.
https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS21487
I have modified my OIR for Promotion Requests to use folder.id of /Default/Promotion Requests/2016. This works fine.
I have done the same for Change Requests, /Default/Change/Change Requests/2016. This also works.
When I set Change Notice to use /Default/Change/Change Notice/2016, change notices fail to be created and I get an error. As soon as I reload the OIR with only /Default for the folder, I can create a change notice.
Shouldn't the folder.id setting work the same across all types of data?
Windchill 10.0 m040.
Re: OIR Folder setting
My company currently provides support for a customer that does exactly this same thing. They have created soft types of CR, CN and CT and both the CR and CN soft types go into a subfolder of the product/library called "/Default/Change Management and Issue Tracking" as defined in the OIR, so what you are describing should in fact work. They use Windchill 10.2 M030, CPS14.
Can you post the specific error message/log stack you receive?
Some of the possible causes off the top of my head:
- You've likely checked this, but does the "/Default/Change/Change Notice/2016" folder actually exist in the context in which you are trying to create the Change Notice?
- Assuming the folder DOES exist, does the user trying to create the CN have appropriate ACLs granting the ability? Is the specific subfolder also have the ACLs granted appropriately (of course you cannot ad-hoc deny, but if the practice is in place to provide ad-hoc grant to subfolders, then that needs to be verified). In other words, does the "Manage Security" page show at least one combination of user, object type, and location having a "Create" access granted?
- While you did not mention this (and is not likely), was the Change Task OIR updated to also change the folder.id attribute? Keep in mind that the OIR for a CT should NOT have a folder.id attribute, as this causes problems (the Change Task effectively sits in the same location as the Change Notice on whose Implementation Plan the Change Task resides).
Re: OIR Folder setting
If I set the folder.id to "/Default/Change/Change Notice/2016, I get the following pop-up message: This task cannot be displayed because you do not have permission to view the subject. Contact your project manager to increase your access rights.
1-Folder does exist, I am manually moving the CN notices from the /Default location to "/Default/Change/Change Notice/2016.
2-I am the system admin so I should have all rights to the system. I can manually put files in that folder, just when I go to create the Change Notice I get the error, unless the folder.id is /Default.
WTChangeOrder2 and WTChangeActivty2 both have create permission for the group that is the Principal of which I am a member.
-Change Task does not have a folder.id set. There are no CT documents created, only CR and CN.
I have previously opened a call with PTC and their answer was to leave it at /Default.
Cop out if there ever was one, as that does not solve my issue. Maybe it is just an issue with WC10.0M040?
Re: OIR Folder setting
I've never gone more than 2 levels deep - possibly you can't have that many. Maybe the space is the issue - always good practice to eliminate spaces. Seems like correct syntax though in general.
Since the error message has nothing to do with folders, it may be something going on with the workflow process. Worth testing with a lifecycle mapped to a minimal workflow template with no Activities.
Re: OIR Folder setting
Mike - I've never gone more than 2 levels deep - possibly you can't have that many. Maybe the space is the issue - always good practice to eliminate spaces. Seems like correct syntax though in general.
/Default/Change/Change Request/2016 and /Default/Change/Promotion Request/2016 both work fine, only /Default/Change/Change Notice/2016 fails to work properly.
Mike - Since the error message has nothing to do with folders, it may be something going on with the workflow process. Worth testing with a lifecycle mapped to a minimal workflow template with no Activities.
The Change Notice and Change Task workflows are basically OOTB from what I have seem by looking at them, just renamed by the prior sys admin. I can run the CR through the CN and complete the task.
Maybe next week I can test it with WC11m010 OOTB that I installed earlier this week as a test.
Re: OIR Folder setting
The error message you are getting suggests an ACL issue to me. The "Project Manager" part in particular is interesting:
If this is for a product/library, making some assumptions about the ACLs in your system, and while this SHOULDN'T be required due to being an administrator, can you verify any of the following ACLs --> membership combinations for your user exist at any level visible at that product/library context, and that you have tested them:
- On WTObject, "All" states, for Product/Library Manager role, access: +Full Control --> user in Product/Library manager role
- On WTChangeOrder2, "All" states, for CAI or CAII role, access: +Full Control --> user in CAI or CAII role
Also, check to make sure there are no explicit "Deny" ACLs on the object - I know, an obvious one, but remember that a deny applied to a group/role can ONLY be overwritten by a grant explicitly to a single user.
I did also find a similar issue on PTC TS, case CS23824. Although it is for a different software, it is the exact error you posted here, so it may be something you can provide to PTC TS.
Lastly, I take it this is the error the user gets upon trying to finish the "New Change Notice" wizard. Have you checked the Windchill MethodServer error logs for any other details? If it produces anything in particular with a logger in the message, you could also increase verbosity on the logger, recreate the error, see if you get more information, and then post here for further investigation.
Where do I find the list of possible end states for WTParts?
I just want the list, but can't seem to find it.
Thanks. James
Re: Where do I find the list of possible end states for WTParts?
You've probably found the list of possible States, either displayed on the details page for the WTPart or by reviewing the lifecycle. "End State(s)" would be dependent on a number of factors such as using Change Management workflows, Promotion Notices or an Advanced Lifecycle. If Advanced, it's going to be determined by the Workflow associated to the Advanced Workflow. If Change Management or Promotion it will be a function of the CM or PN Workflow and the State Change or Promote transition (see the Lifecycle).
Hope this helps, Keir
In Windchill 10.2 M030, apart from removing unreferenced file what are all different activities for managing the Vault size
In Windchill 10.2 M030, apart from removing unreferenced file what are all different activities for managing the Vault size.
Vault file size has gone 98%, please suggest some system admin jobs to control the vault size growth.
Restructuring the old classification structure with a new structure thereby developing a utility
Hi All,
I need to develop a utility where I need to delete the old classification structure and load a new classification structure in the alphabetical order or restructuring of the old classification structure.
Say for suppose within the below sample structure
Structure| Part | Electronic Parts | Capacitors | Capacitor, Aluminum
1.) The changes that has to be made in the first level is replacing the word Structure with Obj
Obj| Part | Electronic Parts | Capacitors | Capacitor, Aluminum
2.) Within the second level there will not be any changes
3.) However in the third level we need to use a single digit alphabet character as shown below
Obj| Part | Electronic Parts | Capacitors | Capacitor, Aluminum
to
Obj| Part | C | Capacitors | Capacitor, Aluminum
So how would I develop it in the form or a utility ?
4.) And we need to use the same classification attributes that were used in the old structure to the corresponding new level definition.
So I need some inputs or some code snippets in case like how to develop that utility. Can anyone please let me know about it once.
Best Regards,
Aditya Achanta
How to download EPMDocumentMaster using API? wt.util.WTRemoteException: Unable to invoke remote method;
I want to use API to download EPMDocumentMaster, see the code as below:
package com.cisco.whichen2;
import java.io.IOException;
import wt.method.RemoteAccess;
import wt.method.RemoteMethodServer;
import wt.part.WTPart;
import wt.pds.StatementSpec;
import wt.pom.PersistenceException;
import wt.pom.Transaction;
import wt.query.QuerySpec;
import wt.util.WTException;
import wt.vc.config.LatestConfigSpec;
import wt.content.ApplicationData;
import wt.content.ContentHelper;
import wt.content.ContentItem;
import wt.content.ContentServerHelper;
import wt.content.FormatContentHolder;
import wt.epm.EPMDocument;
import wt.epm.EPMDocumentMaster;
import wt.fc.QueryResult;
import wt.query.SearchCondition;
import wt.fc.PersistenceHelper;
import wt.content.ContentServerHelper;
public class PartManager implements RemoteAccess{
public static void main(String[] args) throws Exception {
RemoteMethodServer rms=RemoteMethodServer.getDefault();
rms.setUserName("wcadmin");
rms.setPassword("wcadmin");
Class argTypes[]={String.class, String.class};
Object argValues[]={"29-8888-01.prt","C:\\temp\\"};
System.out.println(PartManager.class.getName());
rms.invoke("getEPM", PartManager.class.getName(), null, argTypes, argValues);
}
public static void getEPM (String epmName,String path) throws Exception{
Transaction tx=new Transaction();
tx.start();
EPMDocumentMaster cad = null;
ContentItem primaryContent=null;
if (epmName == null || epmName.trim().length()==0){
System.out.println();
}
QuerySpec qs= new QuerySpec(EPMDocumentMaster.class);
qs.appendWhere(new SearchCondition(EPMDocumentMaster.class,EPMDocumentMaster.NAME,SearchCondition.EQUAL,epmName) , new int[]{0,-1});
System.out.println(qs);
QueryResult qr = PersistenceHelper.manager.find((StatementSpec)qs);
System.out.println(qr.hasMoreElements());
while(qr.hasMoreElements()){
cad = (EPMDocumentMaster) qr.nextElement();
String fullName = path + cad.getCADName();
System.out.println("downloadFile>>>EMPDocumentMaster, writeContentStream:"+fullName);
EPMDocument latest = (EPMDocument) wt.vc.VersionControlHelper.service.allVersionsOf(cad).nextElement();
System.out.println("Get the latest version successful");
primaryContent=ContentHelper.getPrimary((FormatContentHolder)latest);
System.out.println("The primary content is:");
ContentServerHelper.service.writeContentStream((ApplicationData)primaryContent,fullName);
}
tx.commit();
}
}
The error information is:
com.cisco.whichen2.PartManager
Exception in thread "main" wt.util.WTRemoteException: Unable to invoke remote method; nested exception is:
java.rmi.ServerRuntimeException: Server exception; nested exception is:
java.lang.NullPointerException
at wt.method.RemoteMethodServer.invoke(RemoteMethodServer.java:788)
at com.cisco.whichen2.PartManager.main(PartManager.java:36)
Caused by: java.lang.NullPointerException
... 2 more
Who can help me?
Thanks.
White
Re: workflow activity - pull comments into Special Instructions
If you need to use the code in a task transition you need to modify first part of function self.getObject()
You should change following line from
wt.fc.collections.WTArrayList auditCol = (wt.fc.collections.WTArrayList) wt.workflow.engine.WfEngineHelper.service.getVotingEvents((wt.workflow.engine.WfProcess)self.getObject(), null, null, null);
To
wt.fc.collections.WTArrayList auditCol = (wt.fc.collections.WTArrayList) wt.workflow.engine.WfEngineHelper.service.getVotingEvents((wt.workflow.engine.WfProcess)((wt.workflow.work.WfAssignedActivity)self.getObject()).getParentProcess(), null, null, null);
If there are multiple comments all ale added to the comment parameter as aditional string.
Re: Where do I find the list of possible end states for WTParts?
To expand on Keir's response, if you do not see a desired life cycle state in the default in the enumcustomize utility, you can always add your own custom state.
In order to make it take effect, you will also have to shut down Windchill, run the ant -f makejar.xml command, and then start Windchill back up.
Check-in file from Adobe Illustrator
Is there an option available to check-in and check-out files from Adobe Illustrator using Windchill PDMLink? If yes, can someone kindly guide me with the steps to be followed to achieve this functionalities?
Re: Check in failed because "ModelCHECK failed on model(s) in the context "
You also need to set Modelcheck Mode and Modelcheck Configuration in Windchill.
Modelcheck Configuration could look like
Default:check/std.mch,start/std.mcs,constant/std.mcn
which need to be the same value as the modelcheck parameter that gets automatically created -
and Mode can be like 'regenerate explicit'.
Take attention on the exact error message you get at checkin, this should tell you where to refine the settings.
Example: If it says Modelcheck was not performed after regeneration, than this should be solved first.