Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all 8876 articles
Browse latest View live

How to collect and release multiple view versions in promotion request

$
0
0

We use Design View and Plant View for WTPart.  and attach specification document to both views -- as design view and plant view could be different spec.

 

When promoting the specification document to release,  it would collect related WTPart in the promotion process.  However, it would only collect the latest one revision of object --  i.e., not the latest of Design and Plant view revision but latest one either Design or Plant view depending which one was modified latest.  Even if manually collect both views in to promotion form, it says promotion can only deal with one version of object, and hence for me to choose between the Design View or Plant View.

 

Obviously the users do not like it, as they can only promotion one view with the spec doc revision (likely design view), and have to go to individual plant view to manually attach the newly release spec. document.

 

wondering anyone else having the same problem.


Anyone try the new PSM 5.0 F000 yet?

$
0
0

PTC released the PSM 5.0 F000.  Has anyone try it out yet?

 

I am currently testing PSM 4.0 M010 in Test env.  Not sure if I should wait for PSM 5.0 M010 (or later), or I should try F000.  I always try to avoid the F000 build code.

If anyone has try this, can you share your experiences?

 

Thanks,

 

Thomas Chao

Re: What are the differences between Watermarks and Stamps on PDFs ?

$
0
0

If we put some dumb text in title block area of our native ECAD drawings to say something like "this is an uncontrolled working copy, only PDFs from Windchill will show current version number and state", then could we hide that with a PDF stamp that has a solid white background, text labels and dynamic text showing <WC_attributes> in the foreground ?

 

No idea.  Seems feasible.  I'd suggest talking directly to Simon at Wincom or Rick at Fishbowl.

 

Slightly off topic, you said the following:

We have configured and customised Windchill PDMLink to show some of the CAD Document information on native MCAD drawings created with Creo Parametric and SolidWorks, by using a combination of implicit mapping of Attributes and customised copies of the "download delegate" and the Promotion workflows.  At the end of the workflows, the Lifecycle state changes and the drawings get re-published by WVS and the cadworkers, to make new PDFs showing the latest version, Lifecycle state, etc.  Hence both the native CAD drawings and the PDF viewable copies show exactly the same information in the drawing title block.

I'm aware of mapping additional Windchill attributes via the download delegate, but I didn't think these values would automatically appear inside the Creo models unless manually added first (like the system attributes do.)  How are you displaying the approver on the drawing during republishing if the corresponding Creo parameter isn't already present?

 

Thanks.

Re: What are the differences between Watermarks and Stamps on PDFs ?

$
0
0

Posts that have been replied to cannot be edited. Probably to prevent people changing the tone of the reply by changing the target of the reply. Many other forums do allow post-reply editing to make the thread more compact, but many don't.

Re: What are the differences between Watermarks and Stamps on PDFs ?

$
0
0

The Attributes added by the download delegate show up as Windchill system attributes rather than User-Defined attributes, and so they don't need to be mapped or present in the start part templates, as they can't (sensibly...) be edited by the user in CAD or in the Workspace/WGM, but they can still be shown on drawings.

 

Our promotion workflow updates the values of our three Change Note attributes because we use our Change Notes to cover a change of status as well as design.  We display a mixture of User-Defined & Windchill system Attributes in our drawing title blocks, and arranged these to look the same for both Creo and SolidWorks drgs.

 

Originally we setup a bunch of Global Attributes for migration from Intralink v3.4, but we only use some of these in our current templates, and the old ones are now marked as Historical Use only.  We have the same list of File-Properties defined in our SolidWorks template, with their names in CAPITALS so they work with implicit mapping.

Params_#1.PNG

When a file is saved to a Workspace for the first time, it gets a bunch more Attributes/Parameters/File-Properties added automatically (and for Creo this includes some old PDM and Intralink ones, perhaps because we migrated files from Intralink ?).  Annoyingly this list is different with the WGM when used for example with SolidWorks, as I have written about previously on this forum - and that led to us customising the download delegate in order to get the "same behaviour" in both programmes.  You can see we have added four Attributes :

Params_#2.PNG

When the file is saved and uploaded for the second time, that triggers the download delegate to run (I assume because it displaces a copy in the server side cache..), and the system Attributes get populated with values which show up in session if you Update the Creo file or reopen it after closing and erase-not-displayed (or you just save twice in SolidWorks, if you have set the Preference for Upload upon Save) :

Params_#3.PNG

Our four custom Attributes are there to allow us to get a consistent display of information in both Creo and SolidWorks, in particular to append the timezone to the modified_on date and time, and to re-create the behaviour of the old system Attribute PDMREV, which we could still use in Creo but is not present for SolidWorks.  Hence we use a combination of {PTC_WM_REVISION.CC_WM_ITER_DISPLAY CC_WM_MOD_DISPLAY} instead, which will show the text "NEW" for new files and append a + sign if the file is not new but is modified, as indicated by PTC_MODIFIED = Yes

Params_#4.PNG

Here is what it looks like for a modified working copy.  We have added our own Attribute CC_WM_ITER_DISPLAY to overcome the inconsistent behaviour of PTC_WM_ITERATION which stays on the current value until check-in for Creo but jumps up to the next value in anticipation of being checked-in in the WGM !!!

Params_#5.PNG

 

We have never tried to amend the values of any of the OOTB Windchill system Attributes or the custom ones from the download delegate with a Workflow.

 

Hope that helps,

Nick

Re: Getting Routing choices from a Work Item

$
0
0

Hi Preeti,

 

Can you try following API to check if you get the routing list.

 

    ObjectIdentifier oid= ObjectIdentifier.newObjectIdentifier("wt.workflow.work.WorkItem:xxxxxx");

  wt.workflow.work.WorkItem work=(WorkItem) PersistenceHelper.manager.refresh(oid);

  WfActivity activity = (WfActivity)(work.getSource().getObject());

  System.out.println(activity.getUserEventList());

Re: After creating a New Project from a Project Template (Having a Document Structure), Document Structure is not propagated in the newly created project.

$
0
0

Hi Prasad,

 

I believe this is limitation of the software, currently only documents are populated the structure is not retained.

 

Regards,

Bhushan

Re: wt.util.WTRemoteException: Unable to invoke remote method;

$
0
0

Can you share the logs generated when executing the java file. Are you able to run it successfully if the file if executed from the server machine?

 

Regards,

Bhushan


Re: Exploring ThingWorx for Completing Work Item tasks

$
0
0

Hi Preeti,

 

In Windchill there are few API's but unsupported to complete the task with voting:

 

wt.workflow.work.WorkflowHelper.service.workComplete

wt.workflow.engine.WfEventHelper.createVotingEvent

 

Regards,

Bhushan

Re: Getting Routing choices from a Work Item

$
0
0

Thanks Bhushan for your help. I found it already. It was just tedious to get to this api. :-)

 

Preeti

Re: Exploring ThingWorx for Completing Work Item tasks

$
0
0

thanks again Bhushan. I could complete the task using above workComplete method. The workflow moves forward to next activity depending on the routing choices.

I haven't got success yet for creating Voting event.

 

:-)

Preeti

Re: Getting Routing choices from a Work Item

$
0
0

Hi Preeti,

Yes, the dataUtility on this page gets the routing options from the commandBean and it is not easy to figure out how the bean gets populated with the values. Can you share your findings or mark if the above API worked for you.

 

Regards,

Bhushan

Re: Getting Routing choices from a Work Item

$
0
0

Yes Bhushan. The api worked liked a charm. :-)

 

java.util.Vector v=((wt.workflow.work.WfAssignedActivity) workItems.getSource().getObject()).getUserEventList();

Re: Hide/Show a wizard step based on type selected

$
0
0

Hi Praseeth,

 

You question is not clear to me as which wizard your taking about - New Part wizard, New Change Request wizard or some other.

 

I recently work on such requirement where I wanted to hide/show Affected Objects wizard step for one of sub type. And I add below JavaScript to "<WT_HOME>\codebase\netmarkets\jsp\changeRequest\create.jsp" file and it worked for:

 

<script language="JavaScript">  PTC.driverAttributes.on("afterRefresh",function() {      customToggleCreateCADDocStep('affectedDataStep');    });  // wizard step should be in format type.action  function customToggleCreateCADDocStep(wizardStep) {  var type_beingCreated = document.getElementById("createType").value;  var allowed_type1 = "wt.change2.WTChangeRequest2";  var allowed_type2 = "wt.change2.WTChangeRequest2|com.ptc.ptcnet.SubTypeTest1";  if (type_beingCreated == allowed_type1 || type_beingCreated == allowed_type2) {       insertStep(wizardStep);  } else {       removeStep(wizardStep)  }  }</script>

 

Thanks,

Shirish

Re: Exploring ThingWorx for Completing Work Item tasks

$
0
0

This works Bhushan.

wt.workflow.engine.WfEventHelper.createVotingEvent


Re: Windchill tool option not available

$
0
0

Hi Sharan,

 

Did you check this in embedded browser, it should be visible there.

 

Regards,

Bhushan

Re: Change Notice creation permission

$
0
0

Yes, I caught that preference early on in the setup of Change Requests.

Re: Windchill tool option not available

$
0
0

HI Bhushan,

 

Can you please give me some more clarity, i am not getting what is embedded browser.

 

Best Regards

Sharan.

How to clear/remove the unsuccessful migration data from Data base

$
0
0

Am migrating a data from Pro/Intralink 3.4 to PDMLink 9.1 system using Pro/Intralink Data Migrator.  While running the Document loader I found the Revision Series mapped for migration was wrong. We noticed it within minutes and aborted the migration. Then I mapped the correct Revision Series and restarted the migration.

Now the Migrator took the right Revision Series and ran till Family Tables Loader. However we later noticed that 2 Family Tables did not get migrated as it threw an exception in the logs. While investigating that issue we found that some more objects did not get migrated at all though we couldn’t trace the errors in the logs for the missing objects.  Now we need to guidance to solve the issue so that we can proceed with the migration.

Re: Windchill tool option not available

$
0
0

You will have to login to workspace from Cad Tool e.g. Creo and the action should be visible.

 

Regards,

Bhushan

Viewing all 8876 articles
Browse latest View live


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