Moving this to the Windchill Community for their thoughts.
Re: Dimension Layer is missing Windchill Representation
Re: Re-Type a Document (change soft-type)?
Indeed this has been kicked around several times. It is covered best with PTC documents CS7287 and CS52368. They basically say the same thing.
CS7287 is the preferred source. There are .class files that need to be downloaded and put into your codebase if you haven't already done it at some other point in time.
Note that the output from the tool will give you database command(s) that will change all objects from one type to another type. If that is not your intention, then you'll need to modify the command(s) before executing them. For example, I joined in the WTDOCUMENTMASTER table so that I could input specific WTDOCUMENTNUMBER values. An example is below.
--Update WTDocs from any type to "EATS Document" type drop table wtdocument_bak; create table wtdocument_bak as select * from wtdocument; UPDATE WTDocument b SET branchIdA2typeDefinitionRefe = 512941047, idA2typeDefinitionReference = 514725322 WHERE exists (select * from wtdocumentmaster a where b.ida3masterreference=a.ida2a2 and a.WTDOCUMENTnumber like 'EATS%' ); commit;
Re: Re-Type a Document (change soft-type)?
We have used the mechanism Ben has described several times with lots of success, one catch that may or may not apply is that if the two types have differing lifecycles this does not reassign lifecycles as it re-types them. We usually just use the Reassign lifecycle function in the UI to sort that out.
Re: Changing the Windchill Preference: Default Promotion Processes
Marc
We have used this quite a lot, Provided the workflow is written so that it is not expecting a primary business object type of a specific class then it should be ok.
You can also restrict the workflows available based on the state transitions if that is of use.
Paul
Re: Poor Windchill Performance after upgrade to 10.2 M030 CPS02
We are yet to go live with M030 but have experienced several issues as a result of that specific Maintenance release, as a result we are waiting for CPS04 and will revisit the update to M030 at that point.
What Windchill OS and DB are you using?
I am interested to hear if you uncover the root cause of the issues and any resolutions.
Re: Generate representation for STEP file for WTDocuments
Hi,
Its working now. There was problem with object adapter.
Thanks,
Winchill Service Temporarily Unavailable
Hi all,
Do you experience this kind of error while opening windchill? After how many days of not opening the server because we re-arrange our office, now I cannot log on windchill and it prompt me in the browser "Service Temporarily Unavailable" The server is temporarily unabel to service your request due to maintenance downtime or capacity problems. Please try again later.
The server is up to 1 hr now and I get the same error in my browser. Please help.
Thank you.
Luar
Created user picker using datautility throws error on callback function.
Created a userpicker in a custom datautility and regiseterd it on a string attribute. Picker renders correctly in UI. On selecting user clicking finish windchill throws error for custom callback function saying that we cannot set value for null. Also mc.getRawValue() always returns null in the below code.
//Get datavalue method of datautilty
public Object getDataValue(String component_id, Object object, ModelContext mc) throws WTException {
buildUserPickerConfig(component_id, mc);
Object localObject = null;
System.out.println(mc.getRawValue());
if (mc.getRawValue() != null)
{
localObject = mc.getRawValue();
defaultProps.put(PickerRenderConfigs.DEFAULT_HIDDEN_VALUE, localObject.toString());
} else
{
localObject = "";
}
PickerInputComponent pic = new PickerInputComponent("UserPicker",localObject.toString(), defaultProps);
pic.setColumnName(component_id);
return pic;
}
//Callback JS
function userPickerCallback(objects, pickerID)
{
var updateHiddenField = document.getElementById(pickerID);
alert(updateHiddenField);
var myJSONObjects = objects.pickedObject;
for(var i=0; i< myJSONObjects.length;i++) {
var oid = myJSONObjects[i].oid;
alert(oid);
// Here “fullName” is the displayAttribute requested
updateHiddenField.value=oid;
}
}
Error Screenshot.
Re: How to track replacement history in a structure?
Hi Cameron,
Windchill has Supersedes/Superseded By linkages between WTParts. It is global rather than per application/usage, and would relate to a part being made "Obsolete".
You reference the event that made the modification, which brings Change Management to mind. The Change Notice would provide authorization and documentation of the change, as well as potentially the Effectivity (when the Change occurs in physical terms). I have not used it but I recall a capability to include/attach a differences report.
Re: How do you disable the "submit the change object now" prompt?
Hartley, he already did :-)
%WT_HOME%/codebase/netmarkets/javascript/change2/changeWizard.js
Where %WT_HOME% maps to the filesystem folder on your Windchill server where it is installed.
To clarify: it is not in the Windchill UI!
Re: How do you disable the "submit the change object now" prompt?
Policy Admin priority
I have a sub-type for WTChangeOrder2 (Change Notice) and for WTChangeActivity2 (Change Activity) workflows. The main (non-sub-) type for each is the Engineering Dept release process. The sub-type for each is Manufacturing's 'production release'. Each of the two workflows uses different roles and responsible people so, naturally, each needs to have different permissions for the various stages (states).
Everything is working as I wanted it to in testing so now it's time to do up the Policy for all the various roles in each workflow.
My dilemma is about the priority of policy concerning main types and sub-types. Here is what i have.
When I get Policy set for WTChangeOrder2, does that override any policy set for MfgECO?
Or does MfgECO override WTChangeOrder2?
I assume MfgECO would inherit any policy settings from WTChangeOrder2 if I forget to set it in the sub-type, but correct me if I'm wrong.
Any traps I should be aware of?
Re: Policy Admin priority
Hi
Why are you creating not two SubTypes of the WTChangeOrder2? Modify the out of the box WTChangeOrder2 type that no instance can be created and set the tick to the sub types. So each type can have separete attributes and access rights.
I would answer your question, that the access is being inherited from the default type to the subtype. So if you allowed to create a Change Order you also allowed to create the subtype.
Regards
BJörn
Re: Policy Admin priority
I only have a single sub-type because the main Change Notice workflow was initiated over a year before I was asked to expand it into manufacturing as well. It wasn't necessary to create a new sub-type to get both of the workflows to work correctly so I didn't bother.
re: inherited from the default type to the subtype
Do you mean that if I set policy for the subtype that is different from the main type then the subtype ignores its specific setting and defers to the main type? Or does it just defer if I don't set something in the subtype?
Re: How to get request object in workflow robots?
Check out the ChangeService2 API (in wt.change2 package) which has methods to support your use case. ChangeService2 methods can be called by ChangeHelper2.service.anyMethod(). Methods of interest are most likely getChangeablesBefore() to get Affected Objects and getChangeablesAfter() to get Resulting Objects. Note - I've left out the parameters for simplicity so refer to the JavaDoc.
Re: advanced lifecycle and attached workflows need expression robot to terminate from lifecycle
I am unable to make sense of your issue, but why not just connect to the End Node of the Workflow?
Re: Error running Cognos reports
That's a Cognos error message. Take a look at this article from IBM's knowledge base regarding this error message:
IBM DPR-ERR-2082 The complete error has been logged by CAF with SecureErrorID. - United States
From this article, it sounds like the error message in the MS log is fairly generic, and you'll need to look up the actual error message in the cogserver.log.
Re: How to track replacement history in a structure?
Hello Keir,
I would like to get more information about this. Is this something you are using? How do you implement this exactly? We are using WC 10.1 m050, what version of Windchill is this supported in?
Thanks for the help.
Cam
Re: How to track replacement history in a structure?
Hi
the superseded link is released in 10.2
haven't test it in heavily. but can create it in a Change Activity (directly from impacted and resiulting datas tables) or "manually outside a change process" in the action menu
a specific table diplay a multi level superseded report (you can directly see the case where A is replaced by B, and then B replaced by C , etc ...)
and a specific glyph appear on the Part info page to inform that it is now "obsolete/superseded"
Good feature that I'm waiting for a long time ....
A best practice can be also to use BOM line numbers or find numbers . Notably if you use index baloons in your drawings. Replace A by B at the same find number
regards
Re: Poor Windchill Performance after upgrade to 10.2 M030 CPS02
Our OS is Windows Server 2008 R2 and our DB is SQL Server 2008 R2.
Its currently looking like the upgrade script removed some indexes from the DB that Windchill was using to assist with performance issues. We recreated the missing Indexes in the DB and that has significantly improved our performance. We are still have some issues with deadlocked methodservers but PTC is working on getting us a hotfix for it. Being told this hot fix is coming out with CPS04