I have a workflow for a WTReferenceDocument soft type object. I also have custom attributes for the object. Once the workflow has started, I would at some point like to route the workflow based on the value of the attribute. How would I write the Routing expression in the conditional connector. Case in point, the possible values for the attribute are "Tim, Tom, Barry or Steve", The name of the attribute "Judge" and the object is a soft type of the WTReferenceDocument called. Summons.
Workflow routing based on an attribute.
Can Soft Types be used in Replication Rules?
In the early days of using the Replication Server only modeled ovjects could be specified in a Replication Rule? Does anyone know if this is true for Windchill PDMLink 10.0 and up?
Windchill PDMLink Packaging - What Buisness Problem is intended to solve?
My understanding of Windchill PDMLink Packaging is that it was designed to help share requirements, design, or specification with an external group in an effort to improve collaboration. I find that there are some users in the community that entertain the thought of using Packaging to solve other issues like synchronization of two PDMLink systems.
My questions are:
- What are some valid Use Cases for the use of Windchill PDMLink Packaging?
- Can Packaging be used to collaborate with a 2nd party if they do not have a PDMLink to import the Package? If so, how efficient would this be?
- Can Packaging be used as a synchronization mechanisim? What issues would be expected to work around?
My concerns are:
- PTC put considerable effort into this functionality, but yet when I try to find users in the field that are actually utilizing this functionality they are hard to find. Is this capability that is widely used? If not, then why?
- There appears to be a fair amount of overhead associated with managing the package. Does anyone have experience with just how costly this is?
Anyone know how to control what documents are created in what Library?
If we only want some doc types created in a particular library – how do we manage that?
For example we have a DMR Library that we only want Production type documents in and another Library that we only want Regulatory type documents in.
I can Deny the Users Group the ability to Create for that Doc Type within the Policy Admin for that Library, but is there a better way than using deny?
MultiLevel BOM Report
Hi All,
my requirement is to get Multilvel BOM from Windchill using API.
i have below code which gives me only the child parts from first node in assebly.
here is my code::
--------------------------------------
package ext.util.javaP;
import java.util.ArrayList;
import wt.fc.PersistenceHelper;
import wt.fc.QueryResult;
import wt.part.WTPart;
import wt.part.WTPartUsageLink;
import wt.query.QuerySpec;
import wt.query.SearchCondition;
import wt.vc.VersionControlHelper;
import wt.vc.config.LatestConfigSpec;
import wt.vc.struct.IteratedUsageLink;
import wt.vc.struct.StructHelper;
public class StructureNavigator {
WTPart part;
ArrayList<WTPart> partList;
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Inside the Main Method");
StructureNavigator navigator = new StructureNavigator(args[0]);
if(navigator.getPart()==null)
{
System.out.println("Assembly not found!!");
return;
}
System.out.println("In Naviagtor !!!");
ArrayList<WTPart> pList = navigator.getPartList();
System.out.println("pList size: "+pList.size());
for(int i=0;i<pList.size();i++)
{
WTPart current = (WTPart)pList.get(i);
if(current!=null){
System.out.println(current.getNumber());
}
}
}
public static ArrayList<WTPart> getWTPartList(String partNumber){
ArrayList<WTPart> parts=new ArrayList<WTPart>();
StructureNavigator navigator = new StructureNavigator(partNumber);
if(navigator.getPart()!=null){
System.out.println("Inside the if of naviagator.getpart() "+navigator.getPart());
parts=navigator.getPartList();
System.out.println("After parts ###### "+parts);
}
else{
System.out.println("#### Structure Navigator is empty #### ");
}
return parts;
}
public WTPart getPart()
{
System.out.println("Inside the getPart() Method::"+part);
return part;
}
public ArrayList<WTPart> getPartList()
{
System.out.println("Inside the ArrayList getPartList() Method" +partList);
return partList;
}
public StructureNavigator(String prt)
{
partList = new ArrayList<WTPart> ();
try{
QuerySpec qs = new QuerySpec(WTPart.class);
SearchCondition sc = new SearchCondition(WTPart.class, WTPart.NUMBER,
SearchCondition.EQUAL, prt.trim());
qs.appendWhere(sc);
QueryResult queryResult = PersistenceHelper.manager.find(qs);
if (queryResult == null) {
part = null;
}
else
{
if(queryResult.hasMoreElements())
{
part = (WTPart) queryResult.nextElement();
getPartStructure(part);
}
}
}catch(Exception e){e.printStackTrace();}
}
public void getPartStructure(WTPart parentPart) throws Exception {
//System.out.println("In getPartStructure!!"+parentPart.getNumber());
try{
//Get Part data
if(!partList.contains(parentPart))
{
partList.add(parentPart);
}
LatestConfigSpec lcs = new LatestConfigSpec();
QueryResult usesLinks = StructHelper.service.navigateUses(parentPart, false);
while(usesLinks.hasMoreElements()){
//FileWriter writer = new FileWriter(path, true);
WTPartUsageLink usageLink = (WTPartUsageLink) usesLinks.nextElement();
WTPart childPart = (WTPart) lcs.process(VersionControlHelper.service.allVersionsOf(((IteratedUsageLink)usageLink).getUses())).nextElement();
getPartStructure(childPart);
}
}catch(Exception e){
System.out.println("###########Exception while getting structure!!! ######## - in get part structure");
e.printStackTrace();
}
}
}
// END********************************************//
***************************
I Pass the run time Argument to this i.e my TOP Level Asm Number: 1234567.
it gives me output::
Inside the Main Method
Inside the getPart() Method::wt.part.WTPart:96042
#########Something here!!#######
Inside the ArrayList getPartList() Method[wt.part.WTPart:96042, wt.part.WTPart:96050, wt.part.WTPart:110026, wt.part.WTPart:110037]
pList size: 4
1234567
0000000021
0000000022
00000000023
***********************************************
Here is the my BOM Snap from Windchill.
and below is my Requirement
Please check my code and suggest the modifications so i can get my required BOM.
Thanks,
Vivek
Do you currently have an attribute that contains the same information as Part Usage Line Number or Find Number ?
PTC is currently considering an enhancement to the build process to allow an attribute in the CAD Document Uses Link Soft Type to be mapped to either the WTPart Usage Find or Line Numbers.
From a dev perspective, it would be much cleaner to require:
- The preference for Line Number ONLY allows attributes that are of type INTEGER.
- The preference for Find Number ONLY allows attributes that are of type STRING.
Requiring this means that the build process (and thus check in of the CAD Document) would never fail due to value/type mismatch.
However, we (PMs) are wondering if that would be too restrictive.
Do you currently populate Assembly Drawing Balloons or BOM Balloon numbers to an attribute?
Do you know what type (i.e. integer, string, other) of attribute is being used?
Thanks for your feedback.
Jennifer
Moving a context to another shared team
Hey,
I succeeded to move a Product from the PDM domain to the domain of a Shared Team. But when I now try to move this Product to another shared team (I'm playing on a test server), I get the message: "ERROR: Xxxxx is already associated to the shared team Yyyyy."
Reason is that our Windchill Products and Libraries were setup in Windchill 8, we are now on 9.1 and we are preparing to upgrade to 10.1. I hesitate to move old Products and Libraries to shared teams, since once in a shared team, they are stuck. Since I can't prevent my CEO to do acquisitions that jeopardize my shared team conventions, it's tricky for me to implement shared teams.
Unless of course someone is aware of actual or future tools to get this move done.
TIA and Regards, Hugo.
WindChill Business Reporting
Our consultant was trying to install Windchill Business reporting this weekend and ran into an issue. The error we got was: Cognos doesn't support SQL server 2012 or 2008 R2......well we are running R2. Is there another version of WBR software we should install, anyone else run into this issue?
Calling LoadFromFile utility in Custom java class ??
Hello All, Normally for Legacy data loading we use LoadFromFile Utility from Windchill shell.
I made .csv file. now i want to pass this csv file to this LoadFromFile utility in a seprate java programe without using Windchill shell.
first i need to call wt.load.util.CSV2XML and then wt.load.LoadFromFile.
How i can achieve this by java program.
Regards,
Vivek
CR Authors able to Update team at CR state Open?
This is what I want to be able to do... perhaps you can help?
I have a list of Roles in the CR team that I want the CR author to be able to add Participants into at the Submit CR task only when the CR is in Open state.
The roles are visible on the Process tab of the CR but the Members do not have the Add Participant icon!
I tried granting the Author of the CR in the Policy full control – at Open state. No luck.
Change primaryBusinessObject
Hi everyone,
I really need your help. I would like to change the primaryBusinessObject within a workflow. The problem is that I want to create multiple objects (documents, CAD-parts ...) within this workflow and I would like to change these objects by using the method robot (e.g. lifecycle state). Unfortunately, I wasn't able to pass the created object on to the method robot.
The easiest way might be to declare the created object temporarily as primaryBusinessObject and then change the object with the method robot.
Does anybody know if that works and how to declare the created object as primaryBusinessObject?
Thank you for your help.
Willi
ProjectLink 10.1 : Baseline to measure the project performances
To be able to get control and stay in control we need a Baseline in our project that allow us to measure the progress.
At this time ProjectLink doesn't support the Baseline and for our organization this shortage is a very real problem.
In the PTC Knowledge Base I have found the Document CS118721 that describe a partial solution, but this is not enough for us.
I have add in my ProjectLink 2 custom attributes : 'Baseline Start' (internal name 'SOFT_ATTTRIBUTE_1) and 'Baseline Finish' (internal name
'SOFT_ATTTRIBUTE_2)
The activity soft attribute is mapped to column likes PTC.SOFT_ATTRIBUTE_1 and PTC.SOFT_ATTRIBUTE_2 in Microsoft Project.
At this point we need to compare the baseline with the estimated date, but we have 2 problems:
1 - PTC.SOFT_ATTRIBUTE_1 and PTC.SOFT_ATTRIBUTE_2 in MS Project are exported as text instead of date
2 - even if they are date fields, I can't compare them because aren't put into baseline field
For solve my problem, I need that when I export the Project Plan from ProjectLink to MSProject, the system generate an XML that contain the
baseline TAG, like this :
...
<Baseline>
<Number>0</Number>
<Start>2013-07-09T09:00:00</Start>
<Finish>2013-09-20T18:00:00</Finish>
<Duration>PT432H0M0S</Duration>
</Baseline>
...
I would like to know if anyone has encountered the same problem and how it was eventually resolved.
I'd like to know if is possible customize the XML of Project Plan exported by ProjectLink.
Thanks at all for answers.
V10 Exporting Lifecycle Error
trying to export a lifecycle template from windchill v10...but getting the following error
(wt.lifecycle.lifecycleResource/224) wt.util.WTException: Do not support export on a disabled life cycle template. 2013-07-17 17:32:56,437 INFO [RMI TCP Connection(175)-10.171.33.5] wt.system.out aub_admin - at wt.lifecycle.LifeCycleExportImportHandler.exportTemplateAsStringBuffer(LifeCycleExportImportHandler.java:175) The lifecycle template is however enabled! Has anyone seen this before??
How to access old iteration saves?
Can I open an old save iteration of a part in windchill? I have just been saving my part into my workspace, haven't checked anything in yet.
I used to save everything on my harddrive, and it would save newer versions like "part.prt.3". If i screwed up iteration 3, I could just delete the *.3 file in windows explorer and Creo would open the *.2 iteration. Now in Windchill, i can't see the old iterations, and it always says *.1 in the creo window title when i have a part opened. Is there any way to go back to an old save? Is creo saving the file on my local machine before it sends it to the EPDM server?
Thanks,
Phil
Trouble uploading multiple documents (via .zip).
I am trying to populate a new folder with documents that exist in a folder on my PC. I've created a .zip file and attempted to upload using the "Upload Documents from Compressed File" feature.
I get a dialog box with the following message:
ATTENTION:
java.io.IOExeception: There is not enough space on the disk
This happens with 1 or more files in the .zip archive.
I can upload documents one-at-a-time jst fine.
Any hints/suggestions??
Windchill10
How can i fetch related WorkItems from Change Task with the help of code
I need to fetch all Work Items(class wt.workflow.work.WorkItem) from Change Task( wt.change2.WTChangeActivity2) UI with the help of code.
Also i need to fetch the details of the Work Items(class wt.workflow.work.WorkItem) wiht the help of Java code.
ProjectLink 10.1 : customize 'new project' page
In ProjectLink, when we start a new Project, we would like to be able to set by default the value of 'Execution Control' = 'Automatic'
Is possible customize the radio button for choose by default the 'Execution Control' = 'Automatic' ?
I have noted that these options are described in the file <%WT_HOME%>\codebase\netmarkets\jsp\project\showCheckBoxes.jspf.
Is possible customize this jsp page for to obtain what we want?
Thanks in advance for answer.
Using Windchill information onto the drawing.
In Windchill 10, how do I use the information from the "Where used" tab, and add this to any part or assembly drawing, without typing it into the drawing manually?
How to put a copy of the Primary Business Object in server folder?
Hi,
Does anyone have a recommendation on the best way to put a copy of the PBO from a workflow into a local folder on the server? We have Excel files that are being saved and routed in PDMLink (10.0), and at a certain point in the approval process we want to do some outside processing with the file. Basically, the file would be placed into a folder on an FTP server, and then an ERP system would be updated with the location of the file. This is all easy to do, except I don't know the best way to get a copy of the file into a local folder on the server.
If someone could point me in the right direction I would appreciate it.
Thanks,
Micah
PROBLEM: Windows auto close when browse file for check-in
Hello,
We have this problem.
After select Check-in of a file in our database a new windows appear.
In this windows you can select the file for the check in drugging it on the screen or selecting "Browse..." button.
In all case, after the selection or when you drop the file on the windows, the windows automatically close.
I've made some check, it doesn't dipend by Java version, IExplorer is the same for all version 9 32 Bit.
How I can solve?
Please help us if you have had the same issue.
Thanks