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: Anyone setup PTC Navigate on Thingworx yet?
Re: How to download EPMDocumentMaster using API? wt.util.WTRemoteException: Unable to invoke remote method;
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:
PTC Windchill AutoCAD
Re: Modified object, drawing not updated
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
Pick on the line that says job failed and then read the details below as to why.
How to create Workspace using API
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)?
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?
Re: Possible scenarios when i will not be able to do undo checkout?
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
Re: Anyone setup PTC Navigate on Thingworx yet?
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 :
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...
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
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?
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?
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?
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?
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
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?
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
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
Hi Vivek,
Do you get the method to get list of Available Attribute for object? Can you share with me?
Thanks.
White