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

How to add a new folder to the class path read by Windchill

$
0
0

Hello!

 

When starting Windchill looking in the logs there are classpaths listed as in below example:

 

2017-01-19 14:50:43,563 INFO  [main] wt.method.server.startup  - Class path =

  /ptc/Windchill/codebase

  /ptc/Windchill/codebase/WEB-INF/lib/jviews-chart-all.jar

  /ptc/Windchill/codebase/WEB-INF/lib/archiveServerWeb.jar

  /ptc/Windchill/codebase/WEB-INF/lib/prowtWeb.jar

...

 

Lets say I have a new jar-file that I would like to add but I don't want to put it under any known folder (codebase, WEB-INF/lib etc...) how would I do then?

Which file to modify?

Reason is that I don't want to mix OOTB jars with added ones since time will make it difficult to know which ones are OOTB and which ones are not.

 

Thanks for any assistance and best regards!

/Peter


Drop Down on the Task Page of an Activity

$
0
0

Hi ,

 

I have a requirement:-

 

In a workflow for a particular activity , when a user recieves the task , user should see two attributes 1. Company 2. Country in the task page.

Also the input for the attributes should ONLY be a drop down list.

 

In the Workflow template , i have created two variables in the activity of type name : wt.org.WTUser to achieve the drop down but this only gives the names of users in the Windchill system in the drop down list.

 

Please suggest. Please refer the screenshot attached.

 

Thanks

Ishaan

How to get a variable dropdown list in wf task page?

$
0
0

How to get a variable dropdown list(Attributes like Plant location, some attributes) inside workflow task page? further to it, based on selected attribute value it should route to respective users.

Does it requires to customize the Work flow JSP template?, if yes kindly provide the code and source code location(path).

AlterDatabaseCollation.cmd returns errors about collation conflict

$
0
0

This is just a quick post about a potential error for which I found no directly pertinent information.

 

If you're upgrading from Windchill 10.x to Windchill 11.x, and you're using SQL Server for the database, you need to upgrade the database to SQL Server 2012 or newer.  One of the upgrade steps is to run the AlterDatabaseCollation.cmd batch file to change the collation from the old supported version to the new supported version.

 

If that batch file errors out and reports something similar to "Cannot resolve collation conflict between "SQL_Latin1_General_CP1_CS_AS" and "Latin1_General_100_CI_AS_KS_WS_SC" in add operator occurring in SELECT statement column 1", then you probably made the same mistake I made, changing the database containment type too early in the process.

 

The AlterDatabaseCollation.cmd batch file needs to be run against a database that does not use partial containment because the scripts, as written, cannot account for the different collations that come into play on SQL Server when a database uses partial containment.  Either change the database back to Containment Type: None, as it was in the old SQL Server, or re-import the old database backup, and restore the login for the database user using the old, un-contained login method.  The AlterDatabaseCollation.cmd batch file should now run without the collation conflict errors, and you can follow the remaining steps in the collation change instructions.

 

Once the collation is changed, you can then change the database containment to partial and re-create the database user as a contained user (which is the default database authentication method for Windchill 11.0).

 

Hopefully, I put enough key words and tags in this post that it can be found by anyone who runs into the same nebulous error in the future.

Windchill/PDMLink 10.1 Search Keyword operator (AND, OR) syntax

$
0
0

I know that the AND operator can just be used with caps and spaces (e.g. Electronics AND circuit), however the same syntax for OR is not working.  How do you search something like this:

Electronics AND circuit OR board

 

I know WC 11 can probably do this much easier, but I am asking for 10.1 because that is what we are on now and will be for a while.

How to move Windchill on Windows server to Linux

$
0
0

Hi Windchill Gurus,

 

Our company has an old Windchill 9.1 running on Windows 2003 server, and we are planning to retire windows 2003 server soon, so we want to move it to Linux (RHL-2.6.32)

 

But I don't find any documents about rehost windchill from Windows to Linux.  BTW, all Oracle DBs are running on Solaris which will remain untouched.

 

I was hoping anyone from the community can give us some advice please.

 

Jerry

I am seeing duplicate workflow triggers at the same time.

$
0
0

duplicate_workflow.PNG

 

 

 

 

 

 

How does same object trigger the workflow simultaneously twice.

How to change the type of existing part.

$
0
0

Hi,

I have a WTPart and is associated with an EPM Document. Now I want to change the type of Part its subtype.

How can I achieve it?

 

 

Thanks,


Leading wildcards in global search *???

$
0
0

Our service department recently was searching for a vehicle VIN number in Windchill.  Lets say the VIN was 1HTGPSNR4HH542122 (an attribute, not name or number field), when this VIN was entered it returned nothing...what we found was that someone replaced the leading 1 with an I.  No biggy, was fixed immediately. BUT we realized a searching short coming.  The user tried leading ** to try and find the number, but couldn't. He searched:

 

*HTGPSNR4HH542122

**TGPSNR4HH542122

 

With no return.  Is there anyway to search and attribute with leading wildcards?

 

Thanks,

Greg 

Email notification for Context team modification

$
0
0

Is there anyway I can setup a notification whenever a context team is modified? I want to setup a notfication to alert the administrator whenever someone add/removes principal to Context team. I tried the notification on contextteam from policy administrator, this did not work.

Can I save files to my computer instead of my workspace?

$
0
0

I'm a brand new Windchill user, so I'm still figuring out a lot of things. In particular, is there a way to still save files to my computer instead of to my workspace? I have an assembly saved to my computer, and I edited it a bit today, and now it won't update the file on my computer, it only saves the revision to my workspace.

Can Type Part contain Type Model?

$
0
0

I started a Master Assy using Type Part.  I think we are going to use what we call Family Models in the EBOM which will equivalent link to Models located in the MBOM.  Can Type Part be the parent to Type Model?

 

                Highest Level Type=Part

                                   |

         ----------------------------------------

         |                                              |

Type=Model                        Type=Model

Model 1                                   Model 2

How to get a text list of folder names in Product Container

$
0
0

Step One

 

Copy the codes below:

 

1

 

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

 

package ext;

 

 

import java.util.Vector;

import wt.folder.SubFolder;

import wt.inf.container.WTContainerHelper;

import wt.inf.container.WTContainerRef;

 

publicclass MyWindchillUtility {

 

    //Get a text list of folder names in a product container

    publicstatic WTContainerRef getContainerRef(String orgName, String productName) {

        WTContainerRef containerRef =null;

        try {

            if (productName !=null&& !"".equals(productName))

                containerRef = WTContainerHelper.service.getByPath("/wt.inf.container.OrgContainer="+ orgName +"/wt.pdmlink.PDMLinkProduct="+ productName);

            else

                containerRef = WTContainerHelper.service.getByPath("/wt.inf.container.OrgContainer="+ orgName);

        } catch (Exception e) {

            e.printStackTrace();

        }

        return containerRef;

    }

 

    publicstaticvoid folderDriver() {

     

        WTContainerRef wtcontainerref = DGUtil.getContainerRef("LIGADP", "Test1");  //<Organization Container Name>, <Product Container Name>

        String oid = DGUtil.getStringOid(wtcontainerref.getContainer());

        Vector v = (Vector)DGUtil.getSubFolderWithContainer(oid);

        for(int i=0;i<v.size();i++){

            SubFolder sf = (SubFolder)v.get(i);

            System.out.println(sf.getFolderPath());

        }

    }

     

    publicstaticvoid main(String[] args) {

        MyWindchillUtility.folderDriver();     

    }

}

 

 

Colored by Color Scripter

cs

 

Step Two

 

Execute MyWindchillUtility on Windchill Shell:  windchill ext.MyWindchillUtility


image12.png

Use of Windchill Projects and the Defence Module (CDRL/SDRL)

$
0
0

Hi All

 

I am looking for some advice on best practice in terms of the use of Windchill Projects and the interaction with Packages. We are using the tool within a complex environment of who is able to access what data. 

 

From what i can tell there are two ways to make a document visible in a Project

  1. In the Product/Library, open the items and use "Send to Project"
  2. Within the Project, Create a Package (CDRL) and and relate the document (in Product/Library - Has not been shared) to the package.

 

Both options appear to work and will provide Project participants access to file that they can not normally see. My biggest concern with option 2 is that you can not see from the document record, the projects it has been shared to.

 

What do other users see as the advantages or disadvantages of both approaches.

 

Thanks for this

Shane

pdm Essentials -I want to change a part in an assembly with an existing in Commonspace(windchill cabinets)

$
0
0

problem

I want to changea partin an assembly withan existinginCommonspace

in the workspace with INTRALINK 3.4 command duplicates, I create new assembly and then I duplicate the particular (with true flag) to be changed giving it the same name as the existing part in Commonspace

Update the part in the workspace

I correct the new assembly and its drw

done

how can I do the same with pdmEssentials


TY


Optionally Enabled Features Poll

$
0
0

In PTC Windchill 10.2 M030 as well as other MOR releases (11.0 M010, 11.0 M020), PTC provided a new property that controls new features delivered in an MOR that may impact the default user experience of established end-user capabilities. This new property is set to false by default to help minimize costs that may be associated with deploying new end-user functionality with a maintenance release. Optionally enabled Features can be found in the New and Changed for this Release in Help -


  • If set to false all new features that are Opt-In controlled are not displayed.
  • If set to true all new features that are Opt-In controlled are displayed.


If you are using Windchill 10.2 M030, 11.0 M010 or 11.0 M020 we would like to know your setting for the property below (in wt.properties)

Release.optIn

This poll will be open until February 17, 2017

Report Builder - Issue with outer joins. How to remove errant rows?

$
0
0

I have a report that is returning WTDocuments, Derived Images and Application Data related to that Derived Image.  So report shows all WTDocuments. If there is a derived image linked to that WTDoc, report its ID and report the application data that is link to that Derived Image.  What should return is three IDs and in cases where there is not a derived image for the WTDoc, those columns would be empty.  This is a classic SQL outer join case. What I am getting in cases where there is a derived image and application data, is a row that shows the document and the derived image but application data is null followed by another row were all three are filled in. How can I eliminate the prior case where application data is null?

objects.jpg

Above you can see the objects and outer joins. I have derived image outer joined to document and application data outer joined to derived image.  I have tried it multiple ways and it seems to only show records where all three exist. Not what I was looking for.

joins.jpg

Above is the object joins.  Derived Image is referenced to Document and Derived Image is liked to application data via Holder To Content.  I have some other selects since I am looking for a particular role for Derived Image and Application data but that should not be the issue.

selects.jpg

Above is my selects where I am reporting the IDs and other data.  Here is the result below:

results.jpg

Notice the duplicate roles. Green is what I was looking for but I am getting these extra rows. I confirmed this is the case in TOAD. I am sure if I coded this by hand in SQL, I could eliminate this but Report Manager is somewhat limited.  Any advice to rework this query and eliminate the non-green rows?

How to download EPMDocument content using SQL expression or Windchill API

$
0
0

Hello,

 

Is it possible to download the EPMDocument 3D data using the SQL expression or the Windchill API just like we can do it for WTDocument

A query that will list all WTParts in the system along with the folder they are stored in

$
0
0

Hi All,

Can some one provide me an SQL query that will list all WTParts in the system along with the folder they are stored in.

for example a test part: 0000000123 is stored in GOLF_CART / New_Folder/New_Folder2/New_Folder3 location.

Query result   Part Number      Location

                     0000000123       GOLF_CART / New_Folder/New_Folder2/New_Folder3

I am having trouble replacing a part in a part structure?The replace managements tab opens and when i select the part to be replaced and click OK it does not do anything

$
0
0

The replace managements tab opens and when i select the part to be replaced in 'alternates' and click OK it does not do anything

Viewing all 6049 articles
Browse latest View live


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