Quantcast
Channel: PTC Community : Popular Discussions - Windchill
Viewing all 3136 articles
Browse latest View live

Issue with seeing comments from workflow

$
0
0

Hello

 

I was wondering if any of you had any ideas on how to sort out an issue that I am having.

 

 

I have a pretty simple review, approve release workflow that is initiated every time a certain type of object is created.

 

Now when it goes through the default type activities in the workflow you can add a comment in the comment field and select a routing.

 

What I am having a problem with is the fact that these comments, which should be showing up in the process status section of the task but they only appear if you are an admin and I need them to be there for standard users.

 

Is there also a better way of communicating changes/comments on a standard task to the next user in the cahin other than this process.

 

Bear in mind that I am not a developer and have limited Java knowledge. I just utilise the configuration tools to help me get thesystem up and running.

 

Thanks in advance

 

Oleg


Windchill 10 Eclipse Configuration

$
0
0

Hi,

 

I have install Windchill 10 with Information modeler in my System but I think I have missed some jar file to configure I am getting compilation error while using the annotaions class and some other class as well can any one please help me to identify which jar files I should configure in my eclipse

How to search multiple WTDocument numbers through WC API

$
0
0

Hi,

 

I am trying to find multiple document numbers through WC API.

If I use only one part number in below code, it works fine. If I use search string like "65832A00.*;1234.*" it won't return anything.

 

qs = new QuerySpec(wtDocCls);

          

                SearchCondition sc = new SearchCondition(WTDocument.class, WTDocument.NUMBER, SearchCondition.LIKE, "65832A00.*;1234.*");

                qs.appendWhere(sc);

                qr = PersistenceHelper.manager.find(qs);

 

How can I search multiple documents using API?

Include new participants after the workflow has started.

$
0
0

Hi!

I have a workflow starts, it opens a task for a role.

But I have been asked to include new participants after the workflow has started.

For new entrants to access the task we perform Reassign Life Cycle in documents that have already initiated the workflow.

Does anyone know another way to do this?

 

Thanks!

How to remove a ghost object (asm) when revising a prt file

$
0
0

My coworker opened a single part & drawing for revison.

Altered one sketch.  Opened the drawing and added the necessary dims.

Upon saving the part a ghost assembly file was generated of a very old legacy file.

The legacy cad file itself does not exist, yet an assembly file seems to be linked to this part.

 

Question:  How can we remove this assembly ghost file so we can check in the revised component part?

Simply trying to delete the ghost alone DOES NOT work.  You get a referential integrity error message when attempting a check in or one when trying to remove only the ghost as WC says the ghost is attached to the (revised) part.  As a point of reference, the ghost does not appear at the lower revision or until you first save it.  Attempts to backup or save as have the same affect.

 

Re-creating whole files is not an option.

 

Any real step by step procedure would be greatly appreciated.  This is WC9.1, Pro-E WF4.0..

 

Thanks

Creating custom scheduled jobs

$
0
0

I am looking to fill in a couple gaps in my knowledge how to create a custom scheduled job that will appear in WVS Job Scheduler Administration.   I have been using the Windchill Customizer's Guide 9.1 for the initial set of steps.

 

I see I have to add some entries to the wvs.properties.xconf file as shown below  from the guide.

Add the following to your wvs.properties.xconf file (edit as needed):

<Property default="MyCustomJob" name="myJob.description"/>

<Property default="ext.wvs.CustomJobs" name=" myJob.class"/>

<Property default="myCustomJob" name=" myJob.method"/>

<Property default="true" name=" myJob.enableOnContainers"/>

<Property default="myJob" name="schedulejobs<N>"/>

 

 

I have to create the java class (myJob.java) and then compile it to create the myJob.class.

 

I have two areas I am having difficulties getting through succesfully.

 

  1. How to correctly create the SearchCondition in the java class.  Below is an exerpt from the Customizer's Guide.  What I want to search for are all representations that were created in a date range.  For example, I want to republish all representations (thumbnails) that were created between 2013-06-01 and 2013-09-01 and in a specific context and folder.  I am not sure what the correct syntax.

 

*******

qs.appendWhere(new SearchCondition(WTDocument.class,

Iterated.LATEST_ITERATION,

SearchCondition.IS_TRUE),

******

 

  2.  actually compiling the myJob.java file.  I included the import statements as shown below.  I receive a lot of errors when I try to use 'javac' to compile the myJob.java routine.  As I write this, I am wondering if my path variable is not set correctly to compile the routine cleanly.    Any hints are greatly appreciated.

 

*******

package provisur.wvs.CustomJobs;

 

 

import java.util.Iterator;

import org.apache.log4j.Level;

import org.apache.log4j.Logger;

 

 

import wt.doc.WTDocument;

import wt.epm.EPMDocument;

import wt.epm.build.EPMBuildRule;

import wt.fc.ObjectIdentifier;

import wt.fc.ObjectReference;

import wt.fc.ObjectVector;

import wt.fc.ObjectVectorIfc;

import wt.fc.Persistable;

import wt.fc.PersistenceHelper;

import wt.fc.QueryResult;

import wt.fc.collections.WTArrayList;

import wt.fc.collections.WTList;

import wt.inf.container.ContainerSpec;

import wt.inf.container.WTContained;

import wt.inf.container.WTContainerHelper;

import wt.inf.container.WTContainerRef;

import wt.log4j.LogR;

import wt.part.WTPart;

import wt.pds.StatementSpec;

import wt.pom.PersistenceException;

import wt.query.ClassAttribute;

import wt.query.QuerySpec;

import wt.query.SearchCondition;

import wt.query.SubSelectExpression;

import wt.representation.Representable;

import wt.representation.RepresentationHelper;

import wt.util.WTAttributeNameIfc;

import wt.util.WTException;

import wt.vc.Iterated;

import wt.vc.IterationInfo;

import wt.vc.VersionControlHelper;

import wt.vc.Versioned;

import wt.viewmarkup.DerivedImage;

import com.ptc.wvs.common.util.WVSProperties;

import com.ptc.wvs.server.util.PublishUtils;

 

******

Prevent Complete Task if an object is checked out?

$
0
0

How can I prevent the workflow continuing to the next task, if the user still has the "Resulting Objects" checked out?  (Windcill PDMLink 9.1).

 

When the user clicks "Complete Task", and an object is still checked out the workflow breaks (stalls).  What can I add so the workflow checks for the checked out object and pops up a message to the user that the object is still checked out?  I have very little programming.  Thanks.

GUI fix - multiple vertical table views are terrible

$
0
0

Last rant for the day.  I can't figure out why Windchill table views are so jacked up.  Example: In the details tab of the implemention plan (or change task) screeen, the attachments are above the Affected objects, which are above resulting objects table.  For some reason the display views default to where I can barely see what is in the resulting objects (example is true for any display of multiple vertical tables on the screen).  It should be simple right?  Just shrink the affected objects by dragging the table in.  Well not really.  The display manages to bring the above "don't care" features into view, and leave the resulting objects table near the bottom of the screen. 

 

I'm not sure how you software geeks programmed the display views, but this is some seriously stupid functionality and it just ends up in multiple drags and some serious display manipulation, i.e. serious waste of time, i.e. inefficient.  How did this pass beta testing?  I cannot see one reason why this would be better user experience  Just make the tables open and close normally, just like any other program.  I've got a lot of work to do and I don't want to waste my time manipulating screens every time I navigate to a new page. 

 

If you want to spend time making the experience better, then how about there is some algorithm that can tell how I manipulate my table display (column widths, table size) every single time I view them, and then after successive times of similar manipulation, it should just update my default table view settings.

 

Please and thank you. 


Lifecycle based document type

$
0
0

Hello

 

I have a problem that I need to resolve in a fairly manual non integrated manner.

 

I need to be able to have a system where a s ingle object can have two data types based on its lifecycel state.


For example when a word object is in draft and reviewed it will still be a word document  as soon as it goes to released it will need to be a pdf. Now the creation of the pdf can be done manually outside the windchill system and then uploaded but I have no idea how toset up and tie up this type of behaviour.

 

Thanks in advance

 

Oleg

Insert new iteration of an object.

$
0
0

Is there a way to insert a new object in between its revisions via code ?

How to search multiple WTDocument numbers through WC API

$
0
0

Hi,

 

I am trying to find multiple document numbers through WC API.

If I use only one part number in below code, it works fine. If I use search string like "65832A00.*;1234.*" it won't return anything.

 

qs = new QuerySpec(wtDocCls);

          

                SearchCondition sc = new SearchCondition(WTDocument.class, WTDocument.NUMBER, SearchCondition.LIKE, "65832A00.*;1234.*");

                qs.appendWhere(sc);

                qr = PersistenceHelper.manager.find(qs);

 

How can I search multiple documents using API?

Drawings are not opening in Pro-e after they are released to production in WIndchill

$
0
0

I have a problem;

Some of the drawings belonging to certain ECN are released to production in WIndchill. After this when I try to open in PRo-E it's not opening. An error message shows as "can not be retrieved". When I check event manager it says, Download failed after maximum number of retries. I am using Windchill 9.0 (date code 080) & Pro-E wildfire 4.0.

 

Thanks in advance

Ganaraj

How to rewrite comments in AssignedActivity ?

$
0
0

If the AssignedActivity is done and the comments has been write in DB,how could I rewrite it?

 

 

 

WTDocument doc_1 = null;

doc_1 = cc.getDoc(docNumber,false);          //get WTDocument handle

 

wt.fc.QueryResult QR = wt.workflow.work.WorkflowHelper.service.getWorkItems(doc_1);

 

while(QR.hasMoreElements())

{

    wt.workflow.work.WorkItem workitem = (wt.workflow.work.WorkItem)QR.nextElement();

    wt.workflow.engine.WfActivity wfactivity = (wt.workflow.engine.WfActivity)workitem.getSource().getObject();

 

    if(wfactivity.getName().equals(TaskaName))            

    {

        wt.workflow.work.WfAssignedActivity  ac=(wt.workflow.work.WfAssignedActivity)workitem.getSource().getObject();

        wt.workflow.engine.ProcessData processData = ac.getContext();

 

        processData.setTaskComments("new comments");          //set new comments

 

       

        //----------------I try to update AssignedActivity and WTDocument, but it has no effect

        //PersistenceServerHelper.manager.update(ac);

        //PersistenceServerHelper.manager.update(doc_1);

 

        out.print("done~");

        break;

    }                               

}

 


‼Windchill & Creo Direct Drafting‼ Could this be real?

$
0
0

The current situation:

ProE Wildfire 4 M200

CoCreate Drafting

Windchill 9.1

 

The situation after upgrade:

Creo Parametric 2.0

Creo Elements / Direct Drafting (with Workgroup Manager)

Windchill 10.2.

 

Two simple yes-or-no questions:

 

1. Does Workgroup Manager acts like a portal between Creo Elements / Direct Drafting (aka CE/DD) and Windchill? (Like PDMLink for Pro/Engineer)

 

 

 

2. Is it possible to sent information from CE/DD to Windchill? (You can show WT.Part attributes in the drawing, can you assign those attributes in the drawing?)

 

 

 

Any help is greatly appreciated.

Noob With ProE, Help Needed

$
0
0

Hey everyone,

  I just recently started an engineering internship and this company uses ProE WF4.  I don't have any CAD work under my belt except for a semester at Purdue. I am having some troubles and can't seem to find a solution. I've tried looking around the forums with no luck, probably because I don't think it should be that hard to fix.

 

Anyhow, my troubles are as follows. I created a sheetmetal part then flattened all of it using the unbend function in the right-hand side toolbar. I flattened the entire part to make a sketch on the flat surface in which I was trying to cut away some slots. the slots I was trying to cut away do go through a bend although my part fails to generate when I rebend the part (supress the unbend feature).

 

Am I going about this the wrong way? I really get caught up with some of the nit-picky things in ProE, the software we used at Purdue sure seemed a lot more straight forward but I'm sure this software has its advantages as I'm aware it's used throughout many companies. I know it's probably a dumb question but I've been stuck for a few hours now.  I thought of it like how it would be manufactured in the fact that the slots would be cut away before the part was bent. Does this make sense? I can upload pictures if need be. Appreciate any and all help in advance.

 

Thanks all!


How to remove a ghost object (asm) when revising a prt file

$
0
0

My coworker opened a single part & drawing for revison.

Altered one sketch.  Opened the drawing and added the necessary dims.

Upon saving the part a ghost assembly file was generated of a very old legacy file.

The legacy cad file itself does not exist, yet an assembly file seems to be linked to this part.

 

Question:  How can we remove this assembly ghost file so we can check in the revised component part?

Simply trying to delete the ghost alone DOES NOT work.  You get a referential integrity error message when attempting a check in or one when trying to remove only the ghost as WC says the ghost is attached to the (revised) part.  As a point of reference, the ghost does not appear at the lower revision or until you first save it.  Attempts to backup or save as have the same affect.

 

Re-creating whole files is not an option.

 

Any real step by step procedure would be greatly appreciated.  This is WC9.1, Pro-E WF4.0..

 

Thanks

Creating custom scheduled jobs

$
0
0

I am looking to fill in a couple gaps in my knowledge how to create a custom scheduled job that will appear in WVS Job Scheduler Administration.   I have been using the Windchill Customizer's Guide 9.1 for the initial set of steps.

 

I see I have to add some entries to the wvs.properties.xconf file as shown below  from the guide.

Add the following to your wvs.properties.xconf file (edit as needed):

<Property default="MyCustomJob" name="myJob.description"/>

<Property default="ext.wvs.CustomJobs" name=" myJob.class"/>

<Property default="myCustomJob" name=" myJob.method"/>

<Property default="true" name=" myJob.enableOnContainers"/>

<Property default="myJob" name="schedulejobs<N>"/>

 

 

I have to create the java class (myJob.java) and then compile it to create the myJob.class.

 

I have two areas I am having difficulties getting through succesfully.

 

  1. How to correctly create the SearchCondition in the java class.  Below is an exerpt from the Customizer's Guide.  What I want to search for are all representations that were created in a date range.  For example, I want to republish all representations (thumbnails) that were created between 2013-06-01 and 2013-09-01 and in a specific context and folder.  I am not sure what the correct syntax.

 

*******

qs.appendWhere(new SearchCondition(WTDocument.class,

Iterated.LATEST_ITERATION,

SearchCondition.IS_TRUE),

******

 

  2.  actually compiling the myJob.java file.  I included the import statements as shown below.  I receive a lot of errors when I try to use 'javac' to compile the myJob.java routine.  As I write this, I am wondering if my path variable is not set correctly to compile the routine cleanly.    Any hints are greatly appreciated.

 

*******

package provisur.wvs.CustomJobs;

 

 

import java.util.Iterator;

import org.apache.log4j.Level;

import org.apache.log4j.Logger;

 

 

import wt.doc.WTDocument;

import wt.epm.EPMDocument;

import wt.epm.build.EPMBuildRule;

import wt.fc.ObjectIdentifier;

import wt.fc.ObjectReference;

import wt.fc.ObjectVector;

import wt.fc.ObjectVectorIfc;

import wt.fc.Persistable;

import wt.fc.PersistenceHelper;

import wt.fc.QueryResult;

import wt.fc.collections.WTArrayList;

import wt.fc.collections.WTList;

import wt.inf.container.ContainerSpec;

import wt.inf.container.WTContained;

import wt.inf.container.WTContainerHelper;

import wt.inf.container.WTContainerRef;

import wt.log4j.LogR;

import wt.part.WTPart;

import wt.pds.StatementSpec;

import wt.pom.PersistenceException;

import wt.query.ClassAttribute;

import wt.query.QuerySpec;

import wt.query.SearchCondition;

import wt.query.SubSelectExpression;

import wt.representation.Representable;

import wt.representation.RepresentationHelper;

import wt.util.WTAttributeNameIfc;

import wt.util.WTException;

import wt.vc.Iterated;

import wt.vc.IterationInfo;

import wt.vc.VersionControlHelper;

import wt.vc.Versioned;

import wt.viewmarkup.DerivedImage;

import com.ptc.wvs.common.util.WVSProperties;

import com.ptc.wvs.server.util.PublishUtils;

 

******

Where can I find the libraries for SAK ?

$
0
0

I like to make an info*Engine task using Java and am using NetBeans to do this.

I know that the correct import line is:

 

Naamloos.png

but I am missing the folder setup where the libraries reside. Can someone tell me where to find these libraries on a Windchill9.1 server ?

Thanks,

Bernard

Need a simple search UI for Viewables

$
0
0

Any recommendations for a simple UI to retreive drawings from Windchill/PDMLink?  Our shop floor users need a simple interface where they enter a part number, click search, a list of associated viewables and/or non-CAD documents is returned, they select the desired object, and it opens.  Navigating to viewables using Windchill search tools is too complex and time consuming for that particular user base.  I'm wondering if others have been down this road and, if so, what they've done as a solution.

 

Regards,

Jim

Windchill 10.1 WGM $ Creo Schematics 2.0

$
0
0

WOW.....what an improvement over the 10.0 WGM! After installing Creo Schematics 2 and the 10.1 WGM you register the Creo application to the WGM. When you launch Creo Schematics 2 the WGM launches also. Create a new design ins Creo Schematics and Save. Refresh the WS and you have the .rsd file while the design folder resides in your working directory. There is a Windchill tab in Creo Schematics that provides for Check In and other WC actions. This is pretty good stuff and as always we want more.....we'd like to have Windchill embedded and not require the stand alone and seperate WGM to install, maintain and update.

Viewing all 3136 articles
Browse latest View live


Latest Images

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