Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all 8876 articles
Browse latest View live

Re: Anyone setup PTC Navigate on Thingworx yet?

$
0
0

Nick, I have not forgotten you, I just wanted to run this by someone at PTC before I commented.  Based on that discussion it appears that none of the Navigate apps are compatible with ThingWorx 7.2.  Someone from PTC should be along shortly with additional information, but for now you will need to use ThingWorx 7.1.


Re: How to download EPMDocumentMaster using API? wt.util.WTRemoteException: Unable to invoke remote method;

$
0
0

White Chen wrote:

 

Thanks a lot for your inspiring. My problem is resolved.

Can I ask one more question? I want get the part information in my workplace, when I select the part(show in picture), how can I get the part information by click customized button? I know I maybe need to use "NmCommandBean " and its method ".getSelectedOidForPopup()", but I don't how to use it, can you show me an example to use NmcommandBean class?

 

Check out the following thread:

Re: How to get Object details from selected row via custom action on separate jsp page

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

Re: Modified object, drawing not updated

$
0
0

Hi Pete,

You can set collector settings for check out & check in to include drawings,

 

go to Quick Links>My Settings>Preferences

Then Preference Management page you can change "Operation> CheckIn Operation> Collector>Include related Drawings" to All

& change "Workspace> Add to Workspace and Check Out> Check Out Collector>Include related Drawings" to All

This will force users to Check Out the drawing every time they check out the part & will give error if drawing is not modified with the part during the check in process

 

Regards

Pushkar

Re: PTC Windchill AutoCAD

$
0
0

Pick on the line that says job failed and then read the details below as to why.

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

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

$
0
0

Perfect work.

I would like to add comment that this modification works only in Creo application.

If you use the check-in from workspace in standalone browser the clause if(isWildfire) jumps over the check lenght of comment.

So I would prefere to put the code with isWildfire in to the clause if (comment_value.length !=0)

 

Also this wotks only in workspace.

 

Have nice day

 

PetrH.

 

The example:

 

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


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

$
0
0

Do you have admin access? It looks like this part is checked out by someone else.

Re: How to generate ACL report in windchill 11

$
0
0

Hello,

 

Thanks for your reply and sorry for getting back so late.

I am still getting the same issue, i am attaching the error message, may be this can help

 

ACL extract error.jpg

do we need to authenticate something, we were running it using the Pdmlink user.

help will be much appreciated.

Regards,

Re: Anyone setup PTC Navigate on Thingworx yet?

$
0
0

Hi Tom,

We just heard back from our VAR that PTC have now made Thingworx Utilites 7.2.1 available for download under 'Smart Connected Products', but they should maybe add a note their to say that 7.2.x is not compatible with the Navigate View Apps that can be downloaded from the same area :

Capture.PNG

You confirmation about version compatibility is very helpful, and I am already re-installing our test server with v7.1

Looking again in the Navigate Guide, it does indeed say v7.1 only...

Capture2.PNG

 

Thanks,

Nick

 

UPDATE (8th Sept 2016) :

I have now completed the installation and initial configuration of v7.1, and found that by playing around with the web.xml file (filter entries) and the baseURL in the "ptc-windchill-demo-thing" so that they are both set to use http even though the Windchill server uses https, when I login to the 'Landing Page' as a user and search for Design Files I do get to see the results.  This answers my second question in my earlier posting (above).  A five-minute test suggests that the free copy of CreoView Express v3.1 is sufficient to open the 3D and ECAD viewables.

 

Re: Attribute Drop-Down Validates Against Part Number Attribute

$
0
0

Hi Zack,

 

I have had some luck using code to process information and generate messages for the notification emails... including Sub-Types, and Attributes.

 

Are you using Problem Reports and Change Requests?  If so you may want to consider End Item (WTParts) for your Master Shop Order.  The adavntage here is the option to add Affected End Items (only WTParts) to PR's and CR's separately from Affected Objects (WTParts, CAD, Documents etc.)

 

I have found that drop-downs get clunky with a larger list (25 or so) so I can't imagine a happy drop-down with 2000+ so you'd probably want to develop a picker, or go with a text-box with validation code to check against a list of valid entries (Part Numbers).  IMO - this is less than optimal because you need to maintain the lookup list. 

Re: How to iterate the objects under the promotion Workflow?

$
0
0

Ahh I understand now.

 

Assuming that MFG group has Windchill user accounts, does it make sense to update the ACLs to grant these users read access to the objects?  Or is there a specific reason they do not have access?

Re: How to iterate the objects under the promotion Workflow?

$
0
0

very specific reasons, so Engineers define when it is able to be seen by MFG

Re: How to iterate the objects under the promotion Workflow?

$
0
0

I got the expression bellow, fixed some, but it is returning the error:

WfExpression_l.java:36: error: cannot find symbol

  wt.fc.PersistenceHelper.manager.refresh((Persistable) promotionObject);

                                          ^

  symbol:   class Persistable

  location: class WfExpression_l

WfExpression_l.java:37: error: cannot find symbol

  wt.fc.PersistenceHelper.manager.save((Persistable) promotionObject);

                                       ^

  symbol:   class Persistable

  location: class WfExpression_l

Note: WfExpression_l.java uses unchecked or unsafe operations.

 

wt.fc.QueryResult promotionObjects = wt.maturity.MaturityHelper.service.getPromotionTargets((wt.maturity.PromotionNotice) primaryBusinessObject);

wt.pom.Transaction tx = new wt.pom.Transaction();

 

while (promotionObjects.hasMoreElements()) {

  try {

  tx.start();

  Object promotionObject = promotionObjects.nextElement();

  promotionObject = wt.vc.wip.WorkInProgressHelper.service.checkout((wt.vc.wip.Workable)promotionObject, wt.vc.wip.WorkInProgressHelper.service.getCheckoutFolder(),"Automatic checkin as part of Promotion Notice process.").getWorkingCopy(); 

  wt.fc.PersistenceHelper.manager.refresh((Persistable) promotionObject);

  wt.fc.PersistenceHelper.manager.save((Persistable) promotionObject);

  wt.vc.wip.WorkInProgressHelper.service.checkin((wt.vc.wip.Workable)promotionObject, "Automatic checkin as part of Promotion Notice process.");

  } catch (wt.util.WTException wte) {

  System.out.println("Error reported in Promotion Notice : " + wte.toString());

  } finally {

  if (tx != null) {

  tx.rollback();

  System.out.println("Transaction to update item in Promotion Notice rolled back");

  }

  }

}


Re: Anyone setup PTC Navigate on Thingworx yet?

$
0
0

Hi Nick,

 

I work on the Product Management team here at PTC.

 

It appears that you were able to solve issues you were encountering.

 

If there is anything I can assist with, please let me know, via this forum or by sending me an email at sscheib@ptc.com

 

Also, since you encountered some difficulty, if there are any suggestions regarding how we can make changes regarding making the deployment process a better experience, please let me know.

 

Thanks,

 

Steve

Re: Watermark rev of wt.part on the published drawing

$
0
0

Just a quick note if someone is trying to use this today.  If you are using the publish additional files feature (i.e. let Creo drawings publish as a PLT, and also publish a PDF), those additional files are stored in a compressed (zip format) file with the extension PVOA.  You will need to modify the cadConvert to look for a PVOA file, check to see if a PDF is in the PVOA file, extract the PDF, watermark it, and put it back into the PVOA file.

Re: How to find uses of a team template?

$
0
0

During my research I found out that the below code will give me the team that is using my template.

So now I just need to figure out how to remove the teamtemplate from the team.

Anyone who knows how this can be done?

 

WTContainerRef orgContainerRef = getOrgContainerRef();
            TeamTemplateReference teamTemplateOrgRef = getTeamTemplateReference(orgContainerRef, "MyTeam");

            StandardTeamService sts = StandardTeamService.newStandardTeamService();
            Vector uses = sts.whereUsed(teamTemplateOrgRef);

            for(int i=0; i<uses.size(); i++){
                Object o = uses.get(i);

                if (o instanceof ObjectReference) {
                    ObjectReference or = (ObjectReference) o;
                    Persistable p = or.getObject();

                    if(p instanceof Team){
                        Team team = (Team) p;

 

Best regards,

Peter

Re: How to create Workspace using API

$
0
0

Hello!

 

Maybe this will work?

EPMWorkspace.newEPMWorkspace(name, user, null, WTPartConfigSpec.newWTPartConfigSpec(), configSpec, container);

 

where

EPMDocConfigSpec configSpec is your configspec and WTContainer container is your project

 

And also remove the line

PersistenceHelper.manager.save( workspace );

 

Best regards,

Peter

Re: How to Get Business or object Specific Attribute by code

$
0
0

Hi Vivek,

 

Do you get the method to get list of Available Attribute for object? Can you share with me?

 

Thanks.

White

Viewing all 8876 articles
Browse latest View live


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