Quantcast
Channel: PTC Community : All Content - Windchill
Viewing all 6049 articles
Browse latest View live

Printing in Windchill

$
0
0

All,

Is there anyway to print a page out of Windchill?  We will be implementing Change Management here in about a month and I need to come up with a way to print the actual change document (what you see on your screen).  Currently when you print using IE9 or Firefox, it acts like a print screen and will not print the whole page.  I have seen where companies have paid to have very nice reports created, but I was hoping to do this without spending MORE money.


Multi Complete Task

$
0
0

Hi everybody. I need a help, please.

 

I need an API to complete many tasks at one time.

 

These tasks are on Home Assignments Interface. I need to complete a lot clicking once.

 

Has anyone did this before? Or know how to do?

 

Thanks

LoadFromFile: Creating a Soft-Type of WTDocument with a Primary content and multiple Secondary contents

$
0
0

Hi Gurus,

 

We are in a process of migrating data from a Legacy system to ProjectLink.

 

We have a scenario where we want to create soft types of WTDocument with primary and multiple secondary contents using "wt.load.LoadFromFile" utility

 

Is it possible to create a Soft-Type of WTDocument with a Primary and multiple Secondary contents using "wt.load.LoadFromFile" ?

 

If Yes, Kind request to share details

 

-Pradeep Shinde

Developing code in Workflow Template Administrator

$
0
0

I . . I'm a windchill starter user and i have skills in JAVA , now i'm trying to construct a Expression in Workflow Template Administrator and i need to get the PDF (Representation File) from a EPM Document received in a Promotion Request and copy that to a specific folder ...

 

I get this piece of code from internet but i get errors showed in bottom...

 

try{
QueryResult theQueryResult = MaturityHelper.service.getPromotionTargets(thePromotionNotice);
Versioned theVersioned = null ;if (theQueryResult != null){while(theQueryResult.hasMoreElements()){
theVersioned = (Versioned)theQueryResult.nextElement();if (theVersioned instanceof EPMDocument) { ... }}}catch(...){}       //primaryBusinessObject
QueryResult theQueryResult;
wt.maturity.PromotionNotice pn = (wt.maturity.PromotionNotice)primaryBusinessObject;try{    theQueryResult = MaturityHelper.service.getPromotionTargets(pn);    Versioned theVersioned = null ;    if (theQueryResult != null){        while(theQueryResult.hasMoreElements()){            theVersioned = (Versioned)theQueryResult.nextElement();            if (theVersioned instanceof EPMDocument) {                System.out.println("IS A EPM DOCUMENT");                //É Preciso procurar o PDF AGORA.....                 System.out.println("NOW GET THE PDF DOCUMENT");                // . . .             }else{                System.out.println("THIS IS NOT AN  EPM");            }        }    }}catch(Exception e){    System.out.println("ERROR EXPORTING PDF: " + e.getMessage());    errorMsg = "ERROR EXPORTING PDF Promotion Request: " + e.getMessage();    }

 

 

Five errors reported in check Syntax..

 

 

1)  WfExpression45853891.java:36: cannot find symbol
symbol  : class QueryResult
location: class wt.workflow.expr.WfExpression45853891
QueryResult theQueryResult;
^  
2)  WfExpression45853891.java:39: package MaturityHelper does not exist    theQueryResult = MaturityHelper.service.getPromotionTargets(pn);                                   ^ 
3)  WfExpression45853891.java:40: cannot find symbol
symbol  : class Versioned
location: class wt.workflow.expr.WfExpression45853891    Versioned theVersioned = null ;    ^  
4)  WfExpression45853891.java:43: cannot find symbol
symbol  : class Versioned
location: class wt.workflow.expr.WfExpression45853891            theVersioned = (Versioned)theQueryResult.nextElement();                            ^  
5)  WfExpression45853891.java:44: cannot find symbol
symbol  : class EPMDocument
location: class wt.workflow.expr.WfExpression45853891            if (theVersioned instanceof EPMDocument) {

 

I need help here because and dont know all structure of Windchill API classes

Calling LoadFromFile utility in Custom java class ??

$
0
0

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

Unable to run the setup script

$
0
0

I am launching the installer for Apache/ Tomcat or anything, I get the error that there was no suitable JAAV VM  included and/ or PATH is not correctly set, I've tried a few things

  

1. Manually setting Java_Home

2. Updated the PATH Environment variable to have Java parth

3. installed Java in c:\program files and int c:\ptc\java

4. tried version j2sdk-1_4_2_12-windows-i586-p and jdk-1_5_0_15-windows-i586-p

   5. It is server 2003 enterprise SP1

6. The installables are stored in c:\windchill\apache (tomcat) folder

7. This is a brand new OOTB machine nothing on it

 

I did get a few calls for the same error but my PTC id is not allowing me to get access to those documents

  

I can only think of two things now,

a. the installables i have are screwed up

b. I am doing something really silly and cannot figure it out!

 

Any help will be appreciated (see screen shots)

 

Regards,

NitinError_PTC_2.pngError_PTC.png

CR Authors able to Update team at CR state Open?

$
0
0

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.

setContainer in a Workflow

$
0
0

Hi everyone,

 

i would like to set the container for an object within an Workflow. Can I use the "setContainer" methode and declare the path for the container directly in that methode? And how do I phrase such a path declaration for a container ?

(I do not want to use the primaryBusinessObject for this)

 

Can anybody please help me?

 

Thank you for your help.

 

Best Regards,

Willi


generate PDF from drawings and store in Windchill

$
0
0

Hi,

 

I have a range of drawings that I have stored on Windchill. How do I genereate PDF files of these drawings? And is there a way of storing them/ exporting them to an external location outside of Windchill?

 

Is this something that is done within Creo or Windchill?

 

Thnaks.

Change primaryBusinessObject

$
0
0

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

$
0
0

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.

MultiLevel BOM Report

$
0
0

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.

 

BOM In Windchill.jpg

and below is my Requirement

 

BOM Requirement.jpg

 

Please check my code and suggest the modifications so i can get my required BOM.

 

Thanks,

Vivek

V10 Exporting Lifecycle Error

$
0
0

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??

 

 

Trouble uploading multiple documents (via .zip).

$
0
0

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 to access old iteration saves?

$
0
0

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


How can i fetch related WorkItems from Change Task with the help of code

$
0
0

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

$
0
0

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.

$
0
0

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?

$
0
0

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

In Pro/I migration, do we need to assign organization to users before migration

$
0
0

In Pro/I migration, we have 500 users. Windchill is integrated with AD. We are not adding users from Windchill LDAP, so it will not allow migrator to add new user / make any changes. Users are already available at site level. Do we need to modify user to assign organization before migration?

Viewing all 6049 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>