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

Set creator without creating a new iteration

$
0
0

Hi all,

 

For migration purposes, I want to be able to change the creator of an existing EPMDocument with help of Java. I'm using Windchill 10.1.

 

I found VersionControlHelper.assignIterationCreator (with help of Eric Starkman), but it isn't possible to change the creator without checking out the document.

 

Does somebody know which Helper or function can change it?

 

Best regards,

Alexander Kersten


Getting the role of a 'Creator' of an object from its a Group.

$
0
0

Hello Everyone ,

 

How to get the role of a creator from a group? For instace , I want to get the Role of the 'Creator' of a Change Request from a group of Users i.e Design Group , Manufactuing group.

 

Background of the Requirement is as follows:-

 

I am developing a workflow where the CREATOR will create a Change Request (Activity #1). Creator can be any one i.e DESIGN ENGINEER , INDUSTRIAL ENGINEER , QUALITY ENGINEER.

 

Now once the CREATOR has created the Change Request (Activity #1) , the notification (Activity #2) should go to the same HOD of which the creator is.

 

For Example – if (Activity #1) ECR was created by DESIGN ENGINEER – Notification (Activity #2) should go to DESIGN HOD. Similarly ,

                              if (Activity #1) ECR was created by QUALITY ENGINEER – Notification (Activity #2) should go to QUALITY HOD.

 

 

I guess for this i have to set an Expression Robot in the Change Request workflow , But i want help with the expression that has to be written in the Robot. Please help me with this.

 

Thanks and Regards

Ishaan Nayyar

Is it OK to add a datafile to a tablespace when the tablespace reaches the maximum number of blocks?

$
0
0

Our "BLOBS" tablespace is growing fast and has reached the maximum number of blocks.

Apparently it is growing through lots of logging. We are looking now for ways to reduce the logging and also reduce the concerning tables.

Is it a good workaround for now, to add a new table file when extending the tablespace is not possible?

Customized Content Type

$
0
0

A Custom role for content is declared and need to find out How to upload the content with the type to Windchill system

Export and import of document list

$
0
0

Have tried to navigate through the help section of your pages regarding Windchill without luck.

 

One of our major customers are using Windchill for a big project we are involved in. We have already entered lots of data manually into Windchill for a whole load of documents.

 

We are now going to make another project for same customer with same document structure. All document names will be the same except for some minor document name changes.

 

We would like to do the following to save time instead of manually entering everything one more time:

 

1. Export the dcument list from the first project to a simple format, text, Excel, etc.

 

2. Make the editing in this document format

 

3. Upload the new revision to the new project in Windchill from the edited file.

 

  Hope this is possibleand we can receive some information about how to do it from someone in here!

 

Best Regards,

Terje

Windchill System Backup and Disaster Recovery Replication with VMware and Veeam

$
0
0

Hi all,

I am wondering if anyone has any experience of running a Windchill 10 System in a VMware environment with Veeam Backup and Disaster Recovery Replication (http://www.veeam.com) configured that they might like to share? Or, whether anyone has any views on the suitablility of such a configured System for Disaster Recovery purposes?

Currently our physical Windchill 9.1 System is replicated to a second set of servers in a Co-Location factility using Microsoft DFS for the Vaults and PTC Loadpoint, DBvisit for automated Oracle Log Shipping and WindchillDS Replication for LDAP.

This system has served us well for the last three years but it takes a lot of administrative effort to maintain both of the Systems and failover is a complex and manual process that takes a significant amount of time.

I want to virtualise our newly upgraded Windchill 10 System onto the VMWare platform this year to gain all the benefits inherent in such a system (snapshots/cloning etc), and it seems to me that Veeam would greatly simplify the administrative effort required to maintain a second Disaster Recovery copy of the System at a remote location, and also improve our Backup System performance by backing up at the VM level rather than at the OS level. Further, it also seems that Veeam could be used to simply generate an always up to date exact copy of the Production System as a TEST environment running in an isolated Sandbox environment (it can retain the same Windchill System name).

If I ran Oracle 11g on a Windows 2008r2 platform, both Oracle and the Windows OS itself are Windows VSS aware, and hence can be quiesced before the Veeam Snapshots are taken so that the OS and the DB can be stored in the VM image as a transactionally sound backup in the VMDK image.

What concerns me somewhat is that the Veeam backup/replication of VM’s does not save the state of the running machine in totality (ie including VMware memory snapshot) – they only snapshot the VMDK so what about the Windchill Java app itself and WindchillDS LDAP – are they going to start OK from a crash consistent VMDK image backup (ie as if started after a power failure of the original host) reliably each time?

Any advice or experience on this type of Disaster Recovery System would be greatly appreciated.

Best Regards

Gary Mansell

Reassign Life cycles within a workflow

$
0
0

Hi,

 

I have a workflow that requires that the life cycle of an object be reassigned in some instances. Currently I have a task that gets sent to the relevant user notifying them that they must reassing the life cycle of the object. Is there a way that I could use a robot in the flow that when a particular routing is fired then the pbo's lifecycle is reassigned?

 

Thanks.

Windchill- Error when bursting document

$
0
0

Hi All,

 

I am new to Windchill. I have installed and setup a library manager on my local machine. I have been able to add the bursting spec to my library in a ‘system’ folder via Arbortext. But when I tried saving an XML document as a server object I am getting the following error : Unable to create missing folder /Libraries/Legislation - South Africa - National/Acts and Regulations/C/CHILD JUSTICE ACT NO. 75 OF 2008/Sections  while creating new object for 75 of 2008 s 1.

 

Has anyone else experinced a similar error ?


Moving the vaults to a new drive

$
0
0

Hello everyone

 

I have to move the vaults from one drive to the other one on the same server.

The procedure I am looking to follow is this:-

 

Create the folders on the new drive

Copy the vault content on to the respective folders

Mount the vaults using new paths.

Validate the mount.

 

 

Please suggest if it is correct or else kindly correct me.

 

 

Thanks

PLM and SAP Integration

$
0
0

Hi,

 

We are looking to integrate Windchill PLM to SAP Integration. Our goal is transfer real time data (BOM, parts) to SAP. We are looking at options on what are the best options here.what are your thoughts on using SOAP based JMS queue concept?

 

We want to use SAP PI system instead of TIBCO and wanted to see if we need ESI framework in order to do real time integration?

 

Also what is the best way for error handling mechanism where in scenarios such as if sap pi server is down, can we monitor the failed messages from PTC PLM side and can we resend those message once the SAP PI is up.

 

Thanks

Raj

Mathcad - Windchill

$
0
0

The Mathcad dynamic document is checked in to Windchill.

How do I make a relation from a top level document to the Mathcad object.

How do I publish a pdf of the top level document that includes the Mathcad document.

Viewing file in Creo View within a Windchill 10.1 Promotion Request?

$
0
0

How can I view a .drw file within a Windchill PDMLink 10.1 promotion request?

 

I noticed within a promotion request that I can right click on the promoted object and a popup window appears. Within this is an option for "Open in Creo View" but it is grayed out? I have Creo View 2.0 Installed but I do not know why I cannot click this option.open_Creo_view.jpg

 

Any thoughts on this is appreciated.

Custom Workflow Email Notifications

$
0
0

We are looking at trying to customize the appearance of the email notifications that get sent for workflow activities and workflow notification robots.  I have found the information on customizing the workflow HTML templates and have found the directories where they are stored on our server, but I do not know the best way to go about customizing the HTML files to make them work properly with our system.  We are using Windchill 10.0 M040.

 

What I am looking for is a sample template that we could use as a starting point for developing our own email templates.

 

Also, where are the scripts located that Windchill uses for generating the email content?  The General_en_US.html template uses three scripts: getStyleSheetProps, activityNotificationUrl, and activityAttributes notification=true.  In order to develop our own template, do I need to create my own custom scripts so that I can insert dynamic information relating to the workflow activity, etc.?

 

I am a novice when it comes to HTML and Java development, so any help will be greatly appreciated.

 

Thank you,

 

Benjamin WilcoxIntelliServ

Portfolio, Project & Data Management Administrator

 

Learn about the second generation Wired Drill Pipe Network > IntelliServ2

SolidEdge managed by Windchill

$
0
0

Hi folks,

 

How to manage SolidEdge legacy with Windchill?

There is any kind of documentation available about this subject that can help me to estimate the amount of effort & risk to implement it?

 

Best regards,

Irineu

To change how "multi-evaluated" Strings are displayed

$
0
0

I have a "multi-evaluated" String global attribute. After having edited it, I display the object, then the values are automaticaly sorted alphabeticaly.

 

Indeed, the values are recorded randomly in database. They should be recorded and displayed as they were entered by the user.

 

 

Steps to reproduce:

 

1) Create a global attribute of type String in a Windchill type (for instance a WTDocument).
2) Do not put the "Single-Valued" constraint
3) Put the "Suggested Value List" constaint and let this list empty.
4) Create an instance of this object. Set several values for the new attribute. For instance A, C, B.
5) Display the attributes of the new object: you see A, B, C. The values are automaticaly sorted and not displayed as entered.


Get parent when creating WTPart

$
0
0

Hi.

I implement my own RuleAlgorithm (wt.rule.algorithm.RuleAlgorithm) and set it in OIR for WTPart. It works.

Question is How can i get info about parent WTPart for which i create child?

Can i get it from WTContainerRef in RuleAlgorithm.calculate method or may be from get parameters in wtpart creation form url?

Can anyone help me?

Object reference not set to an instance of an object error

$
0
0

Whenever I try to import an FTA diagram from my Diagram Library into a system file, I get the error "Object reference not set to an instance of an object". I have searched the reference guide and haven't found any mention of this particular error. I know it's also a general Windows error, so a Google search wasn't helpful, either.

 

Does anyone know what is causing this error? I can provide more details if need be.

Exporting "My Tasks"

$
0
0

I have the option to export my tasks to excel but, when i do, all i get is an excel file with the headers but no tasks listed. Can anyone explain how to export tasks?

 

Tasks.jpg

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;

 

******

How Do I Query For All IBA Definition References Used In AbstractValue Tables

$
0
0

In 9.1, I'm trying to query for instance based attribute defs that are actually assigned to my pbos and I can't get this part of the query right because definitionReference isn't available on the iba value super class (AbstractValue).  It is, however, on each and every sub tableexpression.tableClass that the queryspec puts together.  Does anybody have any ideas?  I don't think I've ever put a CompoundQuerySpec together and used the JOIN SetOperator in WC.  Is that the right approach?

 

Here's a piece from my original query.  You can just throw a persistenceserverhelper.query on the end, I guess:

final String DR = StringValue.DEFINITION_REFERENCE; //definitionReference

QuerySpec qs = new QuerySpec();

int valueIndex = qs.appendClassList(AbstractValue.class, false);

qs.appendSelectReference(DR + ".key", valueIndex, false);     //Can't remember if this boolean should be true or false.  I want to return this attribute.

qs.setDistinct(true); //idk if setDistinct will work for references, but I'm assuming it does.

 

Anybody have any thoughts or a quick example you can throw together?

Viewing all 5797 articles
Browse latest View live


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