Quantcast
Channel: PTC Community : Discussion List - Windchill
Viewing all 5797 articles
Browse latest View live

Auto numbering documents using context as prefix

$
0
0

Hi,

 

We are trying to make an automatic numbering system for certain product folders. Ideally, we would like to have a prefix that reflects the product folder name and then a sequential number (auto generated).

 

Our current system involves us manually changing the prefix in the OIR. Is there any way to add the context as a prefix by editing the OIR file so that this is automatic for all products created? The current number generating script looks like:

 

<AttrValue id="number" algorithm="com.ptc.windchill.enterprise.revisionControlled.server.impl.NumberGenerator">

                                   <Arg>PROJ-EMR:ZHD-</Arg>

        <Arg>{GEN:wt.enterprise.SequenceGenerator:WTDOCUMENTID_seq:6:0}</Arg>

</AttrValue>

Thanks,

Hannah


Windchill Folder View Customisation

$
0
0

Hi All,

 

Is there a way to customise the folder view (JCA Table) to have custom views/columns specified?

 

Thanks,

 

-Stephen

Connecting to other server via Info*Engine

$
0
0

Hello experts,

 

I have the following sinmple I*E code to connect to the another server to retrieve the wtparts:

 

<ie:webject name="Query-Objects" type="OBJ">

    <ie:param name="INSTANCE" data="windchillxp"/>

    <ie:param name="TYPE" data="wt.part.WTPart"/>

    <ie:param name="ATTRIBUTE"  data="name"/>

    <ie:param name="ATTRIBUTE"  data="number"/>

    <ie:param name="WHERE" data="()"/>

    <ie:param name="SORTED" data="ASC"/>

    <ie:param name="SORTBY" data="name"/>

    <ie:param name="GROUP_OUT" data="power-part"/>

</ie:webject>

 

Where "windchillxp" is the adapter name created in another server.

 

The above webject is executed in Windchill A server, and accessing data in Windchill server B.

 

Getting the following error:

2013-06-03 16:06:45,011 INFO  [ajp-bio-8010-exec-2] wt.system.out wcadmin - ------->Where clause: name=*null*

2013-06-03 16:06:45,135 ERROR [ajp-bio-8010-exec-2] com.infoengine.log.error wcadmin - java.lang.NullPointerException

java.lang.NullPointerException

at com.infoengine.procunit.adapter.Adapter.receive(Adapter.java:662)

at com.infoengine.SAK.ObjectWebject.invoke(ObjectWebject.java:335)

at com.infoengine.compiledTasks.file.D$3a$5cptc$5cWindchill_10$2e1$5cWindchill$5ctasks.ext.part1$2exml.invoke(part1$2exml.java:89)

============================

 

Any other ways to connect from server A to server B thru Infoengine tasks?

 

Thanks,

How to add Actions in Template processed Page ?

$
0
0

Hi,

 

Adding an actions in Info page of WTDocument, WTPart, EPMDocument was easier,

But i could not figure out where the action info are listed in action.xml & action-models.xml.

jcaDebug is not working in Template Processed page.

Please help me in adding actions in Template processed Page.

 

Thank you

Vijayan

HowTo get WTPart Information during Promotion Review

$
0
0

Hi Guys,


I am completely new at customization and inquisitive for knowledge Thank you for your help in Advance !

i wanted to send the number/name of the Part in the Header of the Review PR Task Mail during the Promotion Notice (Workflow).

 

 

For that i created the Variables PR_Description, Part_Number, Part_Name in the Workflow Properties/Variables and added the following code to the first conditional.

 

wt.maturity.PromotionNotice pn = (wt.maturity.PromotionNotice)primaryBusinessObject;

wt.part.WTPart prt = (wt.part.WTPart)primaryBusinessObject;

PR_Description = ext.testpackage.Promotionhelper.get_pn_desc(pn);

Part_Number = ext.testpackage.Promotionhelper.get_part_number(prt);

Part_Name = ext.testpackage.Promotionhelper.get_part_name(prt);

 

The created class includes the following:

 

package ext.testpackage;

import wt.maturity.PromotionNotice;

import wt.part.WTPart;

 

public class Promotionhelper {

    public static void main(String args[]) {

        System.out.println("test");

    }

public static String get_pn_desc (PromotionNotice pn) {

            return pn.getDescription();

    }

       

public static String get_part_number (WTPart prt) {

            return prt.getNumber();

    }              

public static String get_part_name (WTPart prt) {

            return prt.getName();

    }

 

 

The PR_Description works perfectly. It got the mail with the Description, but for PartName and PartNumber i got the following:

 

 

Mo 6/3/13 14:02:05: WfPropagationQueue.PollingThread: Caused by: java.lang.ClassCastException: wt.maturity.PromotionNotice cannot be cast to wt.part.WTPart

Mo 6/3/13 14:02:05: WfPropagationQueue.PollingThread:     at wt.workflow.expr.WfExpression39493.execute_ROUTER_EXPRESSION_(WfExpression39493.java:40)

Mo 6/3/13 14:02:05: WfPropagationQueue.PollingThread:     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Mo 6/3/13 14:02:05: WfPropagationQueue.PollingThread:     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

Mo 6/3/13 14:02:05: WfPropagationQueue.PollingThread:     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

Mo 6/3/13 14:02:05: WfPropagationQueue.PollingThread:     at java.lang.reflect.Method.invoke(Method.java:597)

Mo 6/3/13 14:02:05: WfPropagationQueue.PollingThread:     at wt.workflow.definer.WfExpression.executeRouter(WfExpression.java:2715)

Mo 6/3/13 14:02:05: WfPropagationQueue.PollingThread:     ... 15 more

 

Do you have any clue how i can get the PartName and PartNumber for the Object in Promotion Notice?

How to enable family table view of epmdocument(asm)?

$
0
0

Hi,

 

As reference with windchill help says goto RelatedObjects>family

but i cant find, it is hidden.

when i do jcaDebug it is listed as hidden.

some validator is hiding it and there is no filter for this action.

how can i enable it?

 

1.jpg

 

Thank you

Vijayan

Why No E-Mail - Intralink 3

$
0
0

I am trying to change the way we use Intralink here. Previously, we alerted the promoter that something needed promoting manually. I want Intralink to e-mail the promoter. I know it can do this, because I have seen it in the past.

I have spoken to IT and they have 'created an internal route on the gateway to allow the server to email out'.

My e-mail address is set up in Intralink.

However, when I send myself a RTP form, I receive no email. The RTP form is there, all present and correct.

IT tell me I need to '

configure the application smtp relay & port as follows:-

 

SMTP address   - whatever they say

Port - likewise

 

Is this true? Or even possible? If so, how?

 

I appreciate any help I can get here.

 

Ilink 3.3, soon to be 3.4

 

 

Thanks,

 

 

John

Creo hangs on Retrieval Window after Crash

$
0
0

Hello all,

 

We are running Creo 1.0 M050 w/ Windchill 10.0 M030.

 

After Creo crashes, I restart the application and it will then hang on the "Retrieval" Window ("Creo Parametric was not closed properly...Click retrieve or continue"). I am pretty sure it has to do with Windchill - in particular two lines in my config file. I know this because if I remove these lines from the config, Creo will not hang on the retrieval window upon startup.

 

The config file lines in question are:

 

pro_format_dir wtpub://Windchill/Libraries/Library/Formats

start_model_dir wtpub://Windchill/Libraries/Library/Formats

 

If I start Creo after a legitimate shutdown (not after a crash), everything loads just fine with no hangs.

 

Any ideas?

 

Andri


windchill zoom in

$
0
0

hello guys i need some help. Some weeks ago my company installed Windchill 10 for all the workstations but mine had some problems.. window zoom is far and i cannot see clearly i have tried to change configurations to my internet explorer but i cannot fix this... anybody knows how to change the window zoom? i have tried to modify some parameters in java but i'm not an expert and maybe i would be affecting more than correcting the problem. thanks in advance if i get an answer...

Add conditions of soft attributes with Info*Engine task?

$
0
0
How can I add some conditions of soft attributes(IBA) with Info*Engine task to query wtpart? Ex. Sort_String is soft attribute(IBA). &lt;%@page language=&quot;java&quot;%&gt; &lt;%@taglib uri=&quot;http://www.ptc.com/infoengine/taglib/core&quot; prefix=&quot;ie&quot;%&gt; &lt;ie:webject name=&quot;Get-Properties&quot; type=&quot;MGT&quot;&gt; &lt;ie:param name=&quot;ATTRIBUTE&quot; data=&quot;wt.federation.ie.VMName&quot;/&gt; &lt;ie:param name=&quot;GROUP_OUT&quot; data=&quot;properties&quot;/&gt; &lt;/ie:webject&gt; &lt;ie:webject name=&quot;Query-Objects&quot; type=&quot;OBJ&quot;&gt; &lt;ie:param name=&quot;INSTANCE&quot; data=&quot;${properties[0]wt.federation.ie.VMName[0]}&quot; default=&quot;Windchill&quot;/&gt; &lt;ie:param name=&quot;TYPE&quot; data=&quot;wt.part.WTPart&quot;/&gt; &lt;ie:param name=&quot;WHERE&quot; data=&quot;number=${@form[0]number[0]}&quot; default=&quot;*&quot;/&gt; &lt;ie:param name=&quot;WHERE&quot; data=&quot;Sort_String=${@form[0]sort_string[0]}&quot; default=&quot;*&quot;/&gt; &lt;ie:param name=&quot;GROUP_OUT&quot; data=&quot;parts&quot;/&gt; &lt;/ie:webject&gt;

How to get ufid from an EPMDocument without using Info*Engine?

$
0
0

Hello!

 

This is my first question as I'm starting to explore this community.

Hopefully I will not screw up in the fora, but please bear with me if I do.

 

So now to my question:

Does anyone happen to know how to get the ufid from an EPMDocument using Java in Windchill 10.0?

I know how to get the short version obid (wt.epm.EPMDocument:1998846842) but not the long one (VR:wt.epm.EPMDocument:1998846842:981783618-1249579887230-31922233-43-20-97-131@vpdmtest4.got.volvo.net) which I have only seen in Info'Engine output according to below:

 

 

The reason not to use Info*Engine is speed due to large volumes.

Any help would be appreciated!

 

Cheers!

/Peter

Driving IBA Values

$
0
0

In Windchill 10 we have a requirement to list down the applicable values in pull downlist for "IBA 2" based on "IBA 1" value. This is required while create WTDocument/WTPart from html page as mentioned below.

Example :
If "IBA 1" has value as "Country", "IBA 2" pull down should list "India, US, UK".
If "IBA 1" has value as "City", "IBA 2" pull down should list "Bangalore, New Delhi, Mumbai".

 

Can we achieve this by defining constraints or we need to do little bit of customization. If anyone has a solution, please let me know.

Workspace will not load

$
0
0

I am trying to access my a network workspace and it will load up fine in a standalone browser, but it will not load up in ProE.

HELP?

Config file problems

$
0
0

To all you Windchill users:

 

We are on Windchill 10.0 M030, Creo 1.0 M050.

 

I recently updated the config file for all users (all are stored locally on each users C drive). The previous config file worked fine for all users.

 

The new config file is basically the same, with a few new options. For one of our users, after Creo startup, Creo will hang indefinitely (after user is prompted for the Windchill user/pass). This user is running on Windows 7, though the rest of the users also use either Windows 7 or Vista with no issues.

 

I can circumvent this problem by removing all the following config options that have the file path starting with wtpub://Windchill… :

 

template_designasm wtpub://Windchill/Libraries/Library/Formats/in_lbs_assembly_solid.asm

template_sheetmetalpart wtpub://Windchill/Libraries/Library/Formats/inlbs_part_sheetmetal.prt

template_solidpart wtpub://Windchill/Libraries/Library/Formats/inlbs_part_solid.prt

pro_format_dir wtpub://Windchill/Libraries/Library/Formats

start_model_dir wtpub://Windchill/Libraries/Library/Formats

pro_palette_dir wtpub://Windchill/Libraries/Library/Symbols

symbol_instance_palette_file wtpub://Windchill/Libraries/Library/Symbols/standard_notes.drw

 

Note, however, that the old config file also contained most of the above options, yet there was no hang after startup.

 

I have attached the old and new config files.

 

Anyone have any ideas?

 

Andri Ulrich

ProjectLink: Activity and Action Items - Sharing experience

$
0
0

Hello everyone.

 

just a kind of survey as to know how you use activities and action items.

As you know, you can create as many action items as you want in a project, the project plan does not progress as the action items are resolved. You can create action items associated to directly to document (CAD or non CAD) to meetings, to activities.

 

From a project plan perspective, it may look as if an activity is like an action item. There is an assignee who must do something.

 

I read in some of PTC documentation the following

 

  • Action items are used to capture project issues that must be resolved or items that must be accomplished, and are not formally tracked in a project plan. Action items are useful for identifying and tracking supporting work that must be accomplished either prior to, or as part of a formal project activity.
  • Activities are specific steps in the project that contain information such as duration and effort. Activities have a completion date that can be associated to a deliverable.



All the above seems quite straightfoward and I guess everyone uses them more or less as described above. However how do you manage the communication between an activity owner and the resources ?

The way we currently do it is the following.

The project manager creates an activity and assign an owner and also the resources the owner is allowed to use. (We only manage human resources at the moment in PJL). In the event the owner is not the only resource, the owner will then create action items to tell each resource what to do. The owner will then regularly check the progress of the action items and accordingly update the activity status.

Sometimes, it is a shame that the activity status cannot be automatically updated from the statuses of the action items. On the other hand, the owner may still want/need to do certain things which are not capture by an action item but has an impact on the activity status.

How do you manage the "link" between activity owner and resources?

How do you task the resources?

Do you have any practices you would like to share with the community ?

 

PS: Based on Windchill 9.1


Recording Macro on Windchill ???

$
0
0

Hi all,

 

I often perform search operation for parts or document uploaded to windchill in last 7 days to review them.

 

I  am looking for an option in windchill through which i can record set of action which i perform on windchill page/project as a macro.
Very similar to xls sheet macro options.

 

I have tried the option " save this search" it often defaults to the dates used in the search.

It would be good if we have some method which can allow us to automatically pick past 2 weeks.

 

Thanks in advance.

 

Arun

ResourceBuild failing for rbinfo files in wtCustom in Windchill 10.1

$
0
0

we have customized few rbinfo files like

 

com.ptc.core.ui.navigationRB

com.ptc.windchill.pdmlink.change.client.changeRB

 

by adding in /wtCustom folder in windchill 9. We are upgrading to windchill 10.1. I tried to do ResourceBuild from wtCustom folder it failed by giving error as "resource info not found". I understood that the corresponding rbinfo file in src package is missing in Windchill 10.1 and respective Java resource files are present. How can I move ahead with this.Do I need to copy the java resource files in wtCustom and edit it  and then do a build ?

How to retrieve all objects(WTpart,document,epm) from a Particular context?

$
0
0

I need to get all the objects including WTPart,WTDocument,EPMDocument from a particular context.Any give me some code or API for this to do.

Thanks

Driven Enumerations

$
0
0

Hello again, I was wondering if now at 10.0 or 10.1 is possible to associate driven enumerations for attributes.

I mean, each attribute associated to a enumerated value list and at object creation, a selection made on the first attribute drives the possible values within the next combo.

If possible, how do I do it?

Regards

Promotion Request Workflow Activity Customization

$
0
0

Hi All,

 

I want to customize PDMLink's Promotion Request Workflow. If the creator chose 3 partipants during promotion process, I want the workflow to wait for the Approvers to complete their activities, but if any of them rejects their task, I want the process to end itself and comeback to the original lifecycle state.

 

Current workflow process allows only 'All' or 'Any' for the participants. I'm currently working with 'All' and it works fine for 'Approve' but even if any participant rejects, it will wait for others to complete their tasks. I don't want this. I want to end the process as soon as someone Rejects the task.

 

I need 'All' for Approve and 'Any' for Reject.

 

What custom code is required which I need to write in this Workflow to get it done?

 

Thanks,

 

Wasim

Viewing all 5797 articles
Browse latest View live


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