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

how to select a default folder based on CAD authoring application in PDMLink v9.1 ?

$
0
0

We wish to sort Pro/E files and SolidWorks files into two separate folders in PDMLink v9.1 M062, within the same Product context. How can we set this to happen automatically by default ?

 

For example we could have the folders /Default/MCAD/ProE and /Default/MCAD/SolidWorks (and each could have more sub-folders for any further 'manual' sorting).

 

I guess we could create two sub-types of the 'Workgroup Manager CAD Document' type in the Type & Attribute Manager, and then we could quite easily write two simple OIRs that set the specific folders for each sub-type, but in this case how can we associate each of those sub-types with a specific authoring application (in the Type & Attribute Manager) ?

 

Alternatively, I suppose we make use of the conditional logic facility within the OIRs to select the appropriate folder based on the authoring application, but how would we use the authoring application name within the OIR ?
ie. we want to do something along the lines of...
if AuthoringApplication=PROE then default folder.id= /Default/MCAD/ProE
if AuthoringApplication=SOLIDWORKS then default folder.id= /Default/MCAD/SolidWorks

 

Any help gratefully received !


Why PTC decided to not enable these features also on 10.2 version?

$
0
0

I followed with great interest the discussion of who was in the LiveWorx, complaining that the PTC's focus has moved on IoT products by putting a little into the background CAD and PLM products.

 

So what is your assessment of this year's Liveworx?

 

Personally I appreciate that PTC is always looking for the very latest technology and the fact that wants to bring these possibilities in its products.

What I like less is that sometimes PTC seems to behave like children in front of a new toy putting the old in a corner and using it very rarely.

 

I would just point out a couple of cases as an example.

 

A few weeks ago I ran a search in Windchill to find old iterations of very heavy CAD objects and then perform the cleaning of all the old except the last iterations.

I used this feature many times in 10.1 and I discovered, with big surprise, that it is disappeared in version 10.2.

 

What makes me angry is the fact that PTC has decided to re-introduce this feature only with version 11 M010 and not with a CPS of 10.2

 

https://support.ptc.com/appserver/cs/view/solution.jsp?source=subscription&n=CS212734

 

Who the **** decided to remove this feature or who forgot to even bring it back to 10.2?

 

In this article you can find another example

https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS202411

 

This issue has been reported since 10.0 M030 and it is planned to be released with 11.0 M020 !!!!!

I think it's crazy because this BIG issue should have been resolved immediately and not be considered as an enhancement.

 

Not being able to see a WTPart in the search results when it has an alternate BOM, if there are multiple views of the same part, it's like as if a person was going to buy a car and someone told him "You can choose from many options: with the steering wheel, the gear shift, the wheels, the engine" but could not buy it with all the options simultaneously.

 

Absolutely crazy.

 

There is some product manager who wants to explain to the community these choices?

 

How to login using different credentials in CREO integrated with Windchill?

$
0
0

I need to login with multiple users to reproduce issue;how do i do it without closing Creo every single time?

Attribute Drop-Down Validates Against Part Number Attribute

$
0
0

I would like to have a drop-down text box on the Change Notice object only allow valid part numbers in the system to be selected.  Is this possible?

There are obviously many valid part numbers in the system (over 2,000).

 

Thanks in advance for any feedback.

How to Customizing the Log out Button in Windchill 10.2 ?

$
0
0

Hi folks,

Want to add log out functionality (Cutom Button) in Windchill 10.2?

Modified object, drawing not updated

$
0
0

Is there a method, in WC or maybe ModelCheck, to prevent a user from checking out an object, modifying it, and then not updating the related drawing before checking in the object? I know I can set preferences to include drawings at Checkout or Add to Workspace, but I've noticed in Creothat if I open a non-checked out object to modify it, and answer the prompt to check it out, the drawing doesn't fall under those preference settings. And even if the drawing is in the WS, the user can still check in the modified object without updating the drawing. Surely there has to be a setting that detects that the associated drawing wasn't modified when checking in a modified object. With all the great capabilities in PTC products, we don’t leave such an important function up to the human element, do we?

PTC Windchill AutoCAD

$
0
0

I Can not publish a drawing

46.JPG

PTC Windchil, CAD Visualization, WVS  JOB FAILED, why job failed?

45.JPG

How to create Workspace using API

$
0
0

Hi Friends,

 

I am trying to create a Workspace in ProjectLink but using the follwing API but when I execute it throws me the error :

 

Error:

INFO  : wt.system.err Administrator - (wt.inf.container.containerResource/26) wt.inf.container.ClassicContainerNotFoundException: Context not found: "Windchill PDM"

 

Code:

WTPart part = getPart("xxxxxxx");

 

EPMWorkspace workspace = wt.epm.workspaces.EPMWorkspace.newEPMWorkspace("NewWorkSpace", SessionHelper.getPrincipal(),FolderHelper.getFolder(part) , WTPartConfigSpec.newWTPartConfigSpec(),EPMDocConfigSpec.newEPMDocConfigSpec() );

PersistenceHelper.manager.save( workspace );

 

can anyone help me how I can achieve this


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?

Possible scenarios when i will not be able to do undo checkout?

$
0
0

Till date I was able to undo checkout. Recently I have not ben able to undo checkout

 

undo-checkout.jpg

How to generate ACL report in windchill 11

$
0
0

for windchil 9 or 10, the following way used to give ACL report

1.Open Windchill Shell.
2.Run the following command from Windchill Shell: windchill wt.tools.support.ACLReport <output_file> where <output_file> is the file name and path where you want to export the ACL's.
3.Open the text file and search for the products whose ACL's are of concern.

Note : It dumps all the access rights on all the object and roles in the system.

 

However, if the same procedure is used for windchill 11, it throws error.

Can someone help in this, may be some step is missing ?

How to iterate the objects under the promotion Workflow?

$
0
0

Hi all.

 

I have this need to, after promotion request is done, create a new iteration for all promoted objects.

 

The objective here is to keep an iteration at the promoted state on the object history, even if the object is demoted, modified by set state.

 

Let´s say MFG users can´t see InWork objects, so we use to promote the objects to Proto. when this objects is required for a change, we set state back to InWork. At this moment, MFG users can´t see it anymore, but they should be able to still access the object at the moment it was defined as "Proto".

 

Actual scenario:

InWork 2.3

--> Promote to Proto

Proto 2.3

--> Set Sate InWork

InWork 2.3

 

Objects history will show only IW 2.3 iteration

 

 

Desired:

InWork 2.3

--> Promote to Proto

Proto 2.3

Proto 2.4 (if necessary)

--> Set Sate InWork

InWork 2.4

 

Object history will show

Proto 2.3

InWork 2.4

Anyone setup PTC Navigate on Thingworx yet?

$
0
0

I have it 90% setup I think.  When I activate the single sign on it bounces to my windchill server to login in.  It then bounces back to my Thingworx server but I get an error.  Error is to many redirects.  I thought this might just be a browser issue but I have tried all the tricks for fixes I found on line.  As you can guess they did not work.  Any help would be great.  FYI it does kind of work if I don't turn on single sign on.  Although I my search results are hit and miss.  I am on Windchill 10.2 M020.

Watermark rev of wt.part on the published drawing

$
0
0

I am hoping somebody already figured it out, and it is not a costly customization...

How to find uses of a team template?

$
0
0

Hello!

 

I'm trying to delete a team template using below code:

PersistenceHelper.manager.delete(teamTemplateReference.getObject()

 

This produces the below stacktrace:

(wt.team.teamResource/26) wt.team.TeamException: The MyTeam team template is in use.  All uses must be removed before the MyTeam team template can be deleted.

wt.team.StandardTeamService$1.notifyVetoableEvent(StandardTeamService.java:307)

wt.events.StandardKeyedEventBranch.intDispatchEvent(StandardKeyedEventBranch.java:312)

wt.events.StandardKeyedEventBranch.dispatchVetoableMultiObjectEvent(StandardKeyedEventBranch.java:263)

wt.events.StandardKeyedEventDispatcher.intDispatchEvent(StandardKeyedEventDispatcher.java:288)

...

 

This exception does not give any cluses what is using the template but apperntly Windchill seems to know that it is used.

Does anyone know if there is an API to find out uses of a team template?

I have a feeling there is a generic way to do this...

 

Thanks and best regards,

Peter


How to Get Business or object Specific Attribute by code

$
0
0

Hi All,

 

I want to find the available Attribute List and its respective Values for WTDocument.

I am able to find System and General Attributes and its Respective values by below code,

I got code to fetch Attributes and its values on PTC portal, but when i use this in my code, i got below error.


Here in my case, "OI_BUSINESS_TYPE" is soft type Attribute of String data type.


Here is my code,


public static void main(String[] args) throws WTException, RemoteException{

 

  RemoteMethodServer rms = RemoteMethodServer.getDefault();

  GatewayAuthenticator auth = new GatewayAuthenticator();

  auth.setRemoteUser("wcadmin");

  rms.setAuthenticator(auth);

 

  String docnumber="0000000264";

 

  WTDocument wtdoc=null;

 

  // search condition

  QuerySpec qs = new QuerySpec(WTDocument.class);

  SearchCondition sc = new SearchCondition(WTDocument.class,WTDocument.NUMBER,SearchCondition.EQUAL,docnumber,true);

  qs.appendSearchCondition(sc);

  QueryResult qr = PersistenceHelper.manager.find(qs);

  System.out.println(">> Qr size == "+qr.size());

 

  while(qr.hasMoreElements()){

  wtdoc=(WTDocument)qr.nextElement();

 

  //System and General Attribute values like created by, Name , version , Lifecycle State etc are simple to get its values as like below.

 

 

  System.out.println(">>> Name "+wtdoc.getName());

  System.out.println(">>>>Number  "+wtdoc.getNumber());

  System.out.println(">>>> Creator "+wtdoc.getCreatorName());

  System.out.println("***** "+wtdoc.BUSINESS_TYPE.toString());

  System.out.println(">>>>> "+wtdoc.getIdentity());

  System.out.println(">>>Life Cycle State "+wtdoc.getState());

  System.out.println(">>> description "+wtdoc.getDescription());

 

  // Code /Api need to Find Attribute and its values found on PTC portal .

 

 

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

  /* Get value of IBAName soft attribute */

 

  obj.load("OI_BUSINESS_TYPE"); 

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

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

 

 

 

  }

 

  System.out.println("Done..");

  }


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

Error as follows,

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


WARNING: The ManagerService is not initialized!  This can be caused by:

1) Attempting to invoke a server only method from a remote client

2) Attempting to invoke a method on a service from the constructor or static initializer of another service

Exception in thread "main" java.lang.ExceptionInInitializerError

at com.ptc.core.meta.type.mgmt.server.impl.service.WTTypeManagementDBService.getWTTypeDefinition(WTTypeManagementDBService.java:1210)

at com.ptc.core.meta.type.mgmt.server.impl.service.WTTypeManagementDBService.refreshOriginalTypeDefinition(WTTypeManagementDBService.java:399)

at com.ptc.core.meta.type.mgmt.server.impl.StandardTypeDefinitionCacheManager.getNodeFromService(StandardTypeDefinitionCacheManager.java:63)

at com.ptc.core.meta.type.mgmt.server.impl.AbstractTypeDefinitionCacheManager.load(AbstractTypeDefinitionCacheManager.java:841)

at com.ptc.core.meta.type.mgmt.server.impl.AbstractTypeDefinitionCacheManager.getNode(AbstractTypeDefinitionCacheManager.java:529)

at com.ptc.core.meta.type.mgmt.server.impl.AbstractTypeDefinitionCache.getCurrentTypeIdentifier(AbstractTypeDefinitionCache.java:554)

at com.ptc.core.meta.type.mgmt.server.impl.AbstractTypeDefinitionCache.getTypeIdentifierFromPersistedType(AbstractTypeDefinitionCache.java:444)

at com.ptc.core.meta.server.impl.TypeIdentifierUtilityImplementation.getTypeIdentifierFromPersistedType(TypeIdentifierUtilityImplementation.java:508)

at com.ptc.core.meta.server.impl.TypeIdentifierUtilityImplementation.getTypeIdentifierFromPersistedType(TypeIdentifierUtilityImplementation.java:440)

at com.ptc.core.meta.server.impl.TypeIdentifierUtilityImplementation.getTypeIdentifier(TypeIdentifierUtilityImplementation.java:140)

at com.ptc.core.meta.server.impl.TypeIdentifierUtilityImplementation.getTypeInstanceIdentifier(TypeIdentifierUtilityImplementation.java:219)

at com.ptc.core.meta.server.TypeIdentifierUtility.getTypeInstanceIdentifier(TypeIdentifierUtility.java:212)

at com.ptc.core.meta.type.runtime.server.impl.TypeInstanceUtilityImplementation.getIBAValues(TypeInstanceUtilityImplementation.java:460)

at com.ptc.core.meta.type.server.TypeInstanceUtility.getIBAValues(TypeInstanceUtility.java:254)

at com.ptc.core.lwc.server.LWCNormalizedObject.load(LWCNormalizedObject.java:319)

at com.ptc.core.lwc.server.LWCNormalizedObject.load(LWCNormalizedObject.java:256)

at ext.mbm.PtcAttributeValues.main(PtcAttributeValues.java:60)

Caused by: java.lang.NullPointerException

at wt.session.SessionServerHelper.<clinit>(SessionServerHelper.java:40)

... 17 more

 




Please guide me to tackle this error.


Regards,

Vivek

How to get the attribute (Modified by and Created by) in CAD Part using API?

$
0
0

I want to get the attribute of (Modified by and Created by) in CAD part, but in EPMDocumentMaster, this attribute is not exist, how can I get them by API?

One more question: Can I get all attributes of one CAD part at one time?

Who can help me?

1.png2.png

Design/Manufacturing view entry in WC/Tibco

$
0
0

Any inputs on where to locate entry/entries either in WC/Tibco which says the type of view to be sent for publishing to Oracle ERP from Windchill. The test case which I am trying to execute is creating mBOM (using MPMLink) from an eBOM and pushing the mBOM to ERP (through a CN process). I am not sure if the system is intelligent enough to differentiate between design view & manufacturing view.

Unable to edit Change Request attributes after minor changes

$
0
0

Hello All,

 

I have recently added a couple of attributes (just comments section) to the Change Request. However, after i added them I now find that I am unable to edit any of the fields and the page appears blank. This only happens after the Change Request is already created (New ECR's show the attributes).

 

Any help will be greatly appreciated.

 

Thanks,

How to view al the products in windchill?

$
0
0

I have some products hid and cannot be seen in the view all tab of products ;where can I get the list of all the products. I cannot see them even though I have site access

Viewing all 5797 articles
Browse latest View live


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