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

Attachment of WTPart is not getting saved when I do checkout and edit,add more attachment and then check in

$
0
0

Hi,

 

Scenario:

1. Create WTPart with attachment and new modeled object called lineitems.

Result: Successfully saved WTPart,attachment and line items.

2. Checkout and Edit WTPart and edit attributes, add more attachment and add more line items.

Result: Successfully saved WTPart , attributes and line items.

 

Issue: Attachment is not getting saved.

 

here is my code:

@Override

  public FormResult doOperation(NmCommandBean paramNmCommandBean, List<ObjectBean> paramList)

  throws WTException

  {

  FormResult localFormResult1 = new FormResult(FormProcessingStatus.SUCCESS);

  for (ObjectBean localObjectBean : paramList)

  {

  Object beanObject = localObjectBean.getObject();

  if(beanObject instanceof WTPart)

  {

  logger.debug("Is Persistable:"+beanObject);

  beanObject = PersistenceHelper.manager.save((Persistable)beanObject);

  if ((beanObject instanceof RevisionControlled))

  {

  Mastered localMastered = ((RevisionControlled)beanObject).getMaster();

  localMastered = (Mastered)PersistenceHelper.manager.save(localMastered);

  break;

} }  }

  return localFormResult1;

  }

 

Could you please help me to save attachment when we do checkout and edit.

 

Thanks,

Sithik


Query report on WTPart NOT Associated with EPMDocument

$
0
0

I would like to know how to build a query report to search for WTParts that do not have association with EPMDocument. I see that only one link goes to EPMDocument from WTPart i.e EPMBuildHistory, are there any other links, using which i can query?

 

Thanks,

Shashi

Timestamps in MethodServer Log Files

$
0
0

I'm running Windchill on a Unix server.  I try to log something to an external file, but I also print information to the MethodServer at the same time.

  • In the MethodServer, the information is printed with timestamp "2015-08-27 08:49:56" using System.out.println().
  • In my log file, the timestamp is printed as "2015-08-27 13:49:56" using output.println(new java.sql.Timestamp(System.currentTimeMillis()) + "information").

 

I've tried searching the internet for how to change the timestamp (which is essentially GMT, but not technically) to a different timezone, but I have gotten anywhere.  But obviously the logging has figured it out somehow.

Workgroup Manager

$
0
0

Hello,

 

What can I find the Workgroup manager? How can I tell that it's been installed?

 

Thanks,
Craig

"Fatal error..." when staring Creo2

$
0
0


Hi

We have an issue when we start Creo2.

Almost every morning we have to start twice because we get a "fatal error..." popup at first start up.

it is as follows> start Creo2>logon password>click on Work space then the error occurs.......

if Creo2 is closed during the day and we start again, we can have several "Fatal error...." pop ups before getting thru to server

 

Creo2 M150 Intralink 10.2 m30

How do I add additional "default" tasks to a change notice implementation plan?

$
0
0

Hey,

 

I have been asked to add a couple of tasks to the Change Notice Implementation Plan so that they are there for every new change notice...    I will have to admit I am not sure on how to proceed...   Anyone done this before have some advice?

 

marc

CAD / PLM Systems Manager

TriMark Corp.

How to get role from parent role through API? Explanation : I have LC where particular role (For Eg: "APPROVER")is assigned to a state. For APPROVER role another role (For Eg: GRAPHICAL APPROVER) is assigned as participant. Now from team I can get only AP

$
0
0

How to get role from parent role through API? Explanation : I have LC where particular role (For Eg: "APPROVER")is assigned to a state. For APPROVER role another role (For Eg: GRAPHICAL APPROVER) is assigned as participant. Now from team I can get only APPROVER role. Now How do I get GRAPHICAL APPROVER role from APPROVER role? Is there any AP available? Please help

Attribute columns show up in my work spaces. How can I have them show up in the parts catalog (common space)?

$
0
0

Attributes such as user defined parameters show up in columns in my work spaces. However, they do not show up in the parts catalog (common space).

 

It is not a "display" issue. They don't even show up in the column list in the parts catalog (common space)

 

We are running Windchill PDM Essentials 10.2 M030.


Productivity Enhancements on Windows Explorer Integration for Windchill Desktop Integration 10.2, Part I

$
0
0

In Windchill 10.2 a lot of effort has been made to enhance and simplify the user experience when working with WTDocuments from your Microsoft Windows Desktop.

In this blog I will show you some of the enhancements and how they can significantly simplify your interaction with documents stored in your company’s Windchill system.

 

Windows Explorer Integration

 

The PTC Windchill Desktop Integration plugin adds the Windchill Documents system folder to your local environment. You can you use that Windows Explorer Integration to find, open, access and download Windchill documents without the need to open the Windchill web application in a browser.

 

DTI.png

This will give you a variety of ways to easily access and interact with documents just like they had been stored on your local system:

 

  • by double clicking on a file in the Windows Explorer
  • by using the context (right mouse button) menu on the Windchill node, any context folder or document in the Windows Explorer
  • by the File > Open dialog of any local application (like Microsoft Word, Adobe Acrobat…)
  • ...

 

But I do not want to miss the (in my opinion) most natural way of interacting with documents in Windows – Drag and Drop.

As working with the Explorer Integration should just feel natural, Drag and Drop capabilities have been integrated and with Windchill 10.2 M010 these have even been enhanced.

Dragging a document file from your local system to a context folder under the Windchill Documents node will trigger one of the following actions (depending on the area where you drop the document):

 

  • New Document / New Multiple Documents
  • Check In
  • Replace Content

 

The other direction is supported as well:

Grabbing a document from a Windchill context folder and dragging it to your local system or another Windchill context will trigger corresponding actions depending if modifier keys (Shift and / or Ctrl) are applying and the target the document is dropped (possible actions are copy, move, create shortcut…).

 

Access to Windchill Functionality


Starting with Windchill 10.2 F000, the right-click menu in Windows Explorer includes a wider range of Windchill actions. While in previous releases only actions such as Open and View Information were available, this expanded to the most commonly used actions on the Windchill web application (even multiselect for Check in, Set State… have been implemented in 10.2 M030).

The right mouse button menu is context sensitive and the actions availability will change depending on the object you open it on. Additional restrictions like access permissions, preferences and so on can have impact on the availability of actions.

WCUpgradeCFTR_DIChangesWindchillActionsAddedtotheRightClickMenu.png

My personal highlight is the introduction of the Compare Document functionality in the Windows Explorer integration with Windchill 10.2 F000.

 

Compare Documents


Starting Windchill 10.2 F000 (and enhanced in 10.2 M010) the Desktop integration added compare capabilities. But different to the compare functionality available in the Windchill web application this will concentrate less on comparing metadata but more on comparing the content of the documents.

Out of the box Windchill supports Microsoft Word 2007 and 2010 files and had been extended to Microsoft Excel and Microsoft PowerPoint in Windchill 10.2 M010 (dedicated support matrix below).

 

Office VersionMicrosoft ExcelMicrosoft WordMicrosoft PowerPoint
2007NoYesNo
2010NoYesYes
2013YesYesYes

 

Additional file compare tools can be registered based on the file extension in the Windchill Desktop Integration Configuration menu.

 

There are two different compare actions available:

 

  • Compare Document Versions

This will allow you to compare the file content of two different versions of the same document (see screenshot)

  • Compare Documents

This will allow you to compare the content of two different objects, which need to be of the same file type.

 

WCUpgradeCFTR_DIEnhancementsDocumentComparisonActionsandOptions.png

 

Going forward

 

This was the first part of my post about productivity enhancements on Windows Explorer Integration.

In the second part I will show you how easy it is to access Windchill Meta data in the Windows Explorer, how this can be adjusted to your needs and how simple it is to find any document with the integrated Windchill search.

 

If you are in the meantime interested in additional details on the Windchill Explorer Integration, you’ll find further information in the Windchill Help Center.

 

And as always any questions and comments are appreciated but I definitely would be very interested in your ideas:

 

  • What do you think about the enhanced functionality? Which functionality you like best?
  • For which things do you use the Windows Explorer integration?

 

Please let me and the community know about it.

Classification in 10.2M030 upgraded from 10.1M040 - Is there a way to delete attributes from parent node which were not used in child nodes before Upgrade?

$
0
0

Upgrading from 10.1M040 to 10.2M030

 

Before Upgrade - Parent classification node has 3 attributes (a,b,c) and child node has 2 attributes (a,b)

After Upgrade - Both Parent and child classification node has all 3 attributes because in 10.2, attributes from Parent node is inherited by child node.

 

We are looking for 1) a data analysis tool which can identify such cases in the source (10.1M040) system and 2) a data cleanup tool to fix it at source or target.

 

Has anyone come across this scenario? We have nearly 1000 nodes which are affected (result of a messy CPJ created by resources who had no idea what they were doing....)

Changing policy rules

$
0
0

Hi erverybody,

 

I´m trying to understand the windchill access rules. So far the help tells me there are ad-hoc rules and policy rules.

Following the help I wanted to set a ad-hoc rule - but the tab for access controll in the lifecycle diagram is grey (see picture below - access control in german "Zugriffssteuerung"). I tried with organisation admin and site admin (but as site admin I don´t see the correct lifecycle).

How can I "ungrey" these tabs?

 

Thanks in advance.

 

Best regards,

 

Benjamin

Custom Attribute on Document "References Documents" link

$
0
0


Hi all,

 

Using Windchill PDMLink 10.2.

 

I have, in the past added custom attributes for EPMDocument usage links directly in the Type and Attribute Management , navigating to the EPMDDocument .

Also, custom attributes in Part Usage link.

 

 

 

But, here I want to add custom attribute in the link "References Document", however there is no Object Type like this (Similar to EPmDocument Usage Link or Part Usage Link).

There is only Document Uses link, but this is meant for the Document Structure Tab and not for the References Document in the Related Objects tab.

 

 

If there is no object type for this link, then only way is to study what is going into that link through the JCA debug or look at the Document tables in DB..

 

Is ther any way out?

 

Thanks & Regards

Hari

How to force comments during "Check In" to PTC Windchill (Essentials)?

$
0
0

Hi there,

 

how can I force my engineers to use the comment field during check in process in Windchill?

Is there a way like (if comments.length() =0 then error)? My first thought was to use modelcheck, but I guess this works only on the Creo side.

 

Any suggestions?

change "more attributes info page layout"

$
0
0

Hi,

 

I want to change the layout of the "more attributes info page", but everything is greyed out. I can change all the other kind of layouts, except this one.

2015-08-31_1532.png

I have complete Admin rights, but this doesn't work. How can I change this layout?

Or do I need to shut windows down?

 

Thanks in advance.

Workflow Activity Routing based on Attribute

$
0
0

Hi, I have to decide my workflow path depending on an attribute type, which is having a list of values, Each value will take a separate workflow after choosing it.

I am tried to execute the below code but some how not succesful.

For Routing Two options succesfully executed, while i am using the values in place of String_value its not working.

Soft Attribute Name = CustomerGroup, Dropdown values are HERO/FORD.

 

if (primaryBusinessObject != null)

{

try

{

com.ptc.core.lwc.server.PersistableAdapter obj = new com.ptc.core.lwc.server.PersistableAdapter(primaryBusinessObject,null, java.util.Locale.US, new com.ptc.core.meta.common.DisplayOperationIdentifier());

obj.load("CustomerGroup");

java.lang.String string_value = (java.lang.String) obj.get("CustomerGroup");

System.out.println("Soft attibute value : " + string_value);

if ( string_value == "HERO" )

{

result = "Route1";

}

else

if( string_value == "FORD" )

{

result="Route3";

}

else

result="Route2";

}

catch ( Exception e )

{

e.printStackTrace();

}

},

 

Below code executed succesfully,

 

Soft Attribute Name = CustomerGroup, Dropdown values are HERO/FORD.

 

if (primaryBusinessObject != null)

{

try

{

com.ptc.core.lwc.server.PersistableAdapter obj = new com.ptc.core.lwc.server.PersistableAdapter(primaryBusinessObject,null, java.util.Locale.US, new com.ptc.core.meta.common.DisplayOperationIdentifier());

obj.load("CustomerGroup");

java.lang.String string_value = (java.lang.String) obj.get("CustomerGroup");

System.out.println("Soft attibute value : " + string_value);

if ( string_value !=null)

{

result = "Route1";

}

else

result="Route2";

}

catch ( Exception e )

{

e.printStackTrace();

}

}

 

Thanks in advance.


Workflow Improvements.docx

Change IBA Display Name programmatically?

$
0
0

Hi Experts,

 

I am trying to change the softype's attribute name through program, but finding it difficult to do so. Please help me on this guys.

Thanks in advance.

How to search for a representation by name?

$
0
0

Hey, 

 

I need to find all CAD Document representations named batch and delete them.  Any good ideas on how to go about that?

 

System: Windchill 10.1 m040

 

20150901-115320.png

Thanks for the help,

 

-marc

CAD / PLM Systems Manager

TriMark Corporation

Prevent user from selecting themselves approver?

$
0
0

Specifically during a promotion request, I'm trying to create an expression robot to remove the creator from the list of approvers, although, limiting the user during creation wizard of the promotion request would be the most helpful. Any suggestions? I'm very new to Windchill Admin so if this is a simple question, I apologize.

Markup and Annotation Report in Windchill - Need help Building URL to open the file in Creo View

$
0
0

Hello Gurus,

I've written a report that returns all the markups and annotations against a particular CAD document and/or particular user. The problem is that when the object that the markup was created against is no longer the latest, the UI does not allow the user to view or open the markup. Bug? PTC Case logged!

 

  Anyhow, i am trying to recreate the URL in the report that launches the markup in Creo View. I have been able to get all of the necessary data except for the application data id for the markup. Can anyone help me figure out the right way to get the application id linked and pulled into the report?

 

For the joins i have the following:

Annotation Join Tab.jpg

 

wt.viewmarkup.WTMarkUp - Role AObject Ref - wt.viewmarkup.WTMarkUp

wt.viewmarkup.TheMarkUpViewable - Role BObject Ref - wt.viewmarkup.Derived Image

wt.viewmarkup.Derived Image - Derived From Reference - wt.epm.EPMDOCUMENT

wt.org.WTUser - Ownership.Owner - wt.viewmarkup.WTMarkUp


I am building the URL as a concatenation as shown in the image below. I need to pull in the application id somehow and place it in the APPLICATION DATA ID placeholder.

Annotation Report Select Tab.jpg


Any help you can provide will be greatly appreciated.


Best Regards,

Dax Williams

Viewing all 6049 articles
Browse latest View live


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