Quantcast
Channel: PTC Community : Popular Discussions - Windchill
Viewing all 3136 articles
Browse latest View live

generate PDF from drawings and store in Windchill

$
0
0

Hi,

 

I have a range of drawings that I have stored on Windchill. How do I genereate PDF files of these drawings? And is there a way of storing them/ exporting them to an external location outside of Windchill?

 

Is this something that is done within Creo or Windchill?

 

Thnaks.


How to get BOM or Product structure externally using Info Engine API?

$
0
0

I'm new to Windchill and Info Engine.

Here is where I am at in my learning process:

- I have been able to run the default tasks that I found on this WSDL (<host>/Windchill/servlet/SimpleTaskDispatcher?CLASS=com.ptc.windchill.ws&VERSION=1.1&STYLE=document) using SOAP.

- I am also able to create tasks using the Info Engine Task Editor and then run them externally with a http request.

 

I'm trying to query a product structure externally based on some user input (product name). I need each parts' structure level, number, name, version, quantity and unit.

Ideally i would prefer not having to modify the server at all and use only out of the box tasks, but can modify if necessary.

 

Looking through the documentation I found the following task that looks like it is exactly what i'm looking for.

_______________________________________________________________________________________________________________

Multilevel_BOM_Report

com.infoengine.connector.Group Multilevel_BOM_Report (String partOid, String locale, String hostName, String sessionId, String moduleName, String ncId)

Queries for a product structure and returns a multi-level Bill of Materials. {resourceBundle: com.ptc.windchill.enterprise.reports.bomReportsRB}


Parameters:

          partOid - Specifies the top level part object Id.

          locale - Specifies the locale.

          hostName - Specifies the host name.

          sessionId - Specifies the session Id.

          moduleName -

          ncId -


Returns:{columns: java.lang.String level, java.lang.String indent, java.lang.String image, java.lang.String numberURL, java.lang.String Number, java.lang.String Version, java.lang.String Name, java.lang.String orgName, java.lang.String usedLineNumber, java.lang.String usedFindNumber, java.lang.String quantityAmount, java.lang.String quantityUnit, java.lang.String State, java.lang.String refDesignator, java.lang.String orgIdLabel, java.lang.String orgIdRef, java.lang.String recursivePath[4000], java.lang.String recursiveMark, java.lang.String recursive}


Task:

/com/ptc/windchill/enterprise/reports/WBRMultiLevelBOM.xml

_______________________________________________________________________________________________________________

 

My problem is, i'm not sure how to call this externally. Is there a WSDL that includes this? If so how do i find it?

I tried:

<host>/Windchill/servlet/SimpleTaskDispatcher?CLASS=com.ptc.windchill.enterprise.report.ReportTask&STYLE=document&VERSION=1.1

but that returns an empty xml document. I also can't find the URL to call it with a direct http request.


Any help would be greatly appreciated.


-Jon

Windchill "Updates" table will only display 1 row (but only for 1 user)

$
0
0

We have a single user whose Updates table on the WC home screen will only display a single row. If he creates a new object (such as a Change Request), the existing row object disappears and the new item takes its place.

All other users see multiple rows of updated objects, and this problem is not just local to his PC. It follows to wherever he logs in.

I have never seen this and don't have any good ideas on the possible cause.

Any thoughts?

Was Windchill 11.0 M020 partially retracted?

$
0
0

Back in early December, I downloaded all of the installation media that was available for WC 11.0 M020, and when I look at the list of available media today, 1/13/2017, the Service Pack download for M020 is not listed.  Even the webpage with the list of available software updates is missing the Service Pack listing despite the other M020 components being available.

 

Is this on purpose to prevent installation of M020 or is this some "glitch" in the downloads site?

Is there a way to show the first iteration information for Created By and Created On attributes?

$
0
0

Look at the following example of a document created in Windchill PDMLink:

 

Details and History Views.jpg

Looking at the history view at the bottom of the above image, a document was created by "User 1" on 2015-09-17 13:51 EDT at version A.1.  It went through a series of changes.  On 2016-05-06 09:23 EDT, a change administrator (User 2) revised the object as part of an ECN to make version C.1.  Then the document was checked out and changed, and checked back in once again on 2016-07-26 11:31 EDT by User 1 and then the document was released again.

 

If you look at the details view for the current version (C.2), it lists the "Created By" user as User 2, on the date when C.1 was created.  This is not intuitive to the users, and we prefer to see the date of the A.1 version and the individual who created that version. 

 

Is there a way to get "Created By" and "Created On" to reflect that?

PBO Attribute captured in a workflow

$
0
0

Looking for assistance with code that will grab a custom attribute value created using T&AM and write it to a variable in a workflow...Then using a custom email template I'll be able to display that value in the email.  Not a code guy at all...thanks!!!

 

WC10.2 M030 CPS 17

 

Greg

Excel extensions in Windchill

$
0
0

I know I have done this before when we modified Windchill to accept the xml formatted Office documents, but I cannot remember what I modified or how I did it.

I searched the Windchill 10.0 Customization guide, but nothing hit me as to what this customization is.

 

Where in Windchill are the file extensions set for document types that can be uploaded? We have Excel macro driven file that has a .xlsm extension and it is giving us problems uploading. At one point in the past, I modified some file to allow the .docx, .xlsx, .pptx and maybe some other MS Office extensions.

 

Does Windchill support the .xlsm format?

an someone point me to the right utility and/or files(s) that need to be modified for this?

 

Windchill/PDMLink 10.0 m040

SUMMARY Dynamically Set Workflow Activity

$
0
0
Adding summary:

Dynamic Activity Name (Activity Transition)
//Get the Activity
wt.workflow.engine.WfActivity myActivity = (wt.workflow.engine.WfActivity)self.getObject();
//Modify the Activity
myActivity.setName ("Work Order - " + task1Name); //task1Name is a String
//Save the Activity
myActivity = (wt.workflow.engine.WfActivity) wt.fc.PersistenceHelper.manager.save(myActivity);

Dynamic Activity Instructions
Add your String variable to the activity task instructions. Enclose the variable  in curly braces.
{task1Instructions}

Dynamic Activity Participants (WFExpression)
if (task1User != null)  //task1User is a wt.org.WTUser variable
{
//SET TEAM
wt.team.Team team = (wt.team.Team)((wt.team.TeamManaged)(self.getObject())).getTeamId().getObject();
//SET THE ROLES
wt.project.Role  teamRole = wt.project.Role.toRole("TASK OWNER 1");
//REMOVE THE CURRENT PARTICIPANT
wt.org.WTPrincipal removeUser = null;
wt.team.TeamHelper.service.deleteRolePrincipalMap( teamRole,removeUser,team);
//ADD THE PARTICIPANTS TO THE TO_ROLES
wt.team.TeamHelper.service.addRolePrincipalMap( teamRole, task1User, team );
}

Dynamic Activity Due Date
Create and set a wt.workflow.engine.WfDueDate variable from a preceding task or from code.
Add the wt.workflow.engine.WfDueDate variable to the appropriate task as visible, required and read set to false. Set resettable to true.

Hope this helps,
Dax Williams
Business Administrator, Windchill
Lifetime Products, Inc.
dwilliams@lifetime.com<">mailto:dwilliams@lifetime.com>

[Lifetime_Logo_BlkWhite_Sans_email sig]

how to replace the Windchill file with local drive file

$
0
0

Windchill there is already the drawing with lower revision and now I have a drawing latest with revision in local drive how I can replace tat.

In windchill 10.2 M030-CPS 09, workflow hangs on with error(For instance: when activity A finish, activity B not start), and will go on after reset windchill server. No error in WfPropagationQueue, WfUserWorkQueue, WfUserWorkQueue

$
0
0

In windchill 10.2 M030-CPS 09, workflow hangs on with error(For instance: when activity A finish, activity B not start), and will go on after reset windchill server. No error in WfPropagationQueue, WfUserWorkQueue, WfUserWorkQueue

 

Error Info:


Log1

2017-01-16 08:15:07,355 ERROR [WfPropagationQueue.PoolQueueThread-1808] wt.queue.PoolQueue.WfPropagationQueue Administrator - Queue Entry 367019: Exception occured

(wt.access.accessResource/19) wt.access.NotAuthorizedException: 注意: 受保护的操作。您没有执行该操作的必要授权。如果您认为不应当收到这一消息,请联系管理员。

at wt.queue.QueueMonitorHelper.queueCheckAccess(QueueMonitorHelper.java:466)

at wt.queue.QueueMonitorHelper.getWtQueue(QueueMonitorHelper.java:376)

at wt.queue.QueueMonitorHelper.getWtQueue(QueueMonitorHelper.java:326)

at wt.queue.QueueMonitorHelper.getWtQueue(QueueMonitorHelper.java:321)

at wt.queue.QueueRunnable.suspended(QueueRunnable.java:111)

at wt.queue.QueueRunnable.run(QueueRunnable.java:134)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)

2017-01-16 08:15:07,355 ERROR [WfPropagationQueue.PoolQueue] wt.queue.PoolQueue.WfPropagationQueue  -

(wt.access.accessResource/19) wt.access.NotAuthorizedException: 注意: 受保护的操作。您没有执行该操作的必要授权。如果您认为不应当收到这一消息,请联系管理员。

at wt.queue.QueueMonitorHelper.queueCheckAccess(QueueMonitorHelper.java:466)

at wt.queue.QueueMonitorHelper.getWtQueue(QueueMonitorHelper.java:376)

at wt.queue.QueueMonitorHelper.getWtQueue(QueueMonitorHelper.java:326)

at wt.queue.QueueMonitorHelper.getWtQueue(QueueMonitorHelper.java:321)

at wt.queue.RandomAccessQueueThread.suspended(RandomAccessQueueThread.java:519)

at wt.queue.RandomAccessQueueThread.execEntries(RandomAccessQueueThread.java:465)

at wt.queue.RandomAccessQueueThread.run(RandomAccessQueueThread.java:361)

 

Log2

2017-01-16 08:15:20,981 ERROR [ajp-bio-8011-exec-94] wt.method.client.httpgw huweijie -  MethodRequestHandler Exception: An exception occured while processing the request.

  1. java.lang.NoSuchMethodException: wt.enterprise.URLProcessor.templates(wt.httpgw.HTTPRequest, wt.httpgw.HTTPResponse)

at java.lang.Class.getMethod(Class.java:1670)

at wt.httpgw.HTTPServer.processRequest(HTTPServer.java:321)

at wt.httpgw.MethodRequestHandler.handleRequest(MethodRequestHandler.java:58)

at wt.httpgw.HTTPGatewayServlet.serviceWithoutFilters(HTTPGatewayServlet.java:336)

at wt.httpgw.HTTPAuthGatewayServlet.serviceWithoutFilters(HTTPAuthGatewayServlet.java:86)

at wt.httpgw.FilterChainImpl.doFilter(FilterChainImpl.java:90)

at wt.session.SessionContextDestroyer.doFilterInternal(SessionContextDestroyer.java:122)

at wt.session.SessionContextDestroyer.doFilter(SessionContextDestroyer.java:162)

at wt.httpgw.FilterChainImpl.doFilter(FilterChainImpl.java:77)

at wt.httpgw.HTTPGatewayServlet.service(HTTPGatewayServlet.java:235)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at com.ptc.jws.servlet.filter.WsdlServletFilter.doFilter(WsdlServletFilter.java:61)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at wt.httpgw.filter.WTContextBeanFilter.doWithWtContextBeanHandler(WTContextBeanFilter.java:104)

at wt.httpgw.filter.WTContextBeanFilter.doFilter(WTContextBeanFilter.java:58)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at wt.servlet.CompressionFilter.doFilter(CompressionFilter.java:294)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at wt.servlet.RequestInterrupter.doFilter(RequestInterrupter.java:335)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at wt.servlet.ServletRequestMonitor.doFilter(ServletRequestMonitor.java:1652)

at wt.servlet.ServletRequestMonitorFilter.doFilter(ServletRequestMonitorFilter.java:56)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)

at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:190)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)

at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:65)

at java.lang.Thread.run(Thread.java:745)

at org.apache.tomcat.util.threads.TaskThread.run(TaskThread.java:103)


What I need:

1.how to find workflow by queue entry num?

2.how to find root cause?


Type: Other

$
0
0

Once in a while I have a user that will check in a file from a workspace they didn't mean to and didn't realize they did.  These files go in a the type "Other".  I thought I could just create a policy that won't allow anyone to check in a file of this type.  When I went to the Policy Administration I couldn't find it.  Is this possible?

 

Auto-created drw common name equale to that of part/asm

$
0
0

Hello,

 

when in my Parametric I create a new part/assembly, thanks to a config option I also have its drawing automatically created.

 

The problem I have when I do the Save & Upload, is that the drawing takes its filename and number equal to those of the related part/assembly, but not the common name. So that I always have to go and rename it doing a copy paste of the common name.

 

For example, you can see here in this video below (also attached to the post) that the common name of the drawing (in Windchill corresponds to the field "name") is equal by default to its filename, both when I do the simple "Save", and when I do the "Save & Upload":

 

 

How could I put it automatically equal to the common name of the part (that is "test_commonname" in this case)?

 

Thanks

 

Bye

What is a WT Part, WT Document, WT Object?

$
0
0

Hi Guys,

 

I am having this doubt from a very long time. What is a WT Part, WT Document, WT Object? How are they related and what are its roles and responsibilities? Please explain these with an example if possible or suggest a link to know about these.

Thanks in advance.

 

Regards,

Rajeshkumar Balaganesan

How to get a variable dropdown list in wf task page?

$
0
0

How to get a variable dropdown list(Attributes like Plant location, some attributes) inside workflow task page? further to it, based on selected attribute value it should route to respective users.

Does it requires to customize the Work flow JSP template?, if yes kindly provide the code and source code location(path).

Windchill/PDMLink 10.1 Search Keyword operator (AND, OR) syntax

$
0
0

I know that the AND operator can just be used with caps and spaces (e.g. Electronics AND circuit), however the same syntax for OR is not working.  How do you search something like this:

Electronics AND circuit OR board

 

I know WC 11 can probably do this much easier, but I am asking for 10.1 because that is what we are on now and will be for a while.


how to replace the Windchill file with local drive file

$
0
0

Windchill there is already the drawing with lower revision and now I have a drawing latest with revision in local drive how I can replace tat.

Drop Down on the Task Page of an Activity

$
0
0

Hi ,

 

I have a requirement:-

 

In a workflow for a particular activity , when a user recieves the task , user should see two attributes 1. Company 2. Country in the task page.

Also the input for the attributes should ONLY be a drop down list.

 

In the Workflow template , i have created two variables in the activity of type name : wt.org.WTUser to achieve the drop down but this only gives the names of users in the Windchill system in the drop down list.

 

Please suggest. Please refer the screenshot attached.

 

Thanks

Ishaan

new context

$
0
0

We have the Product context called Machine as the top level. I found where the person who set up the system had created a ACEMP Product template for the Machine product. We are now moving the design forward and to keep designs separate, we want to create a context named NexGen.

 

I go to the product top level, hit the Create new product icon, give it a name and then select the ACEMP Product template. When I hit OK, the system comes back with a pop=up window saying it cannot find the ACEMP Product template. I have found the template and looked at it. Everything is built from the /default structure, so this template should work on any new Product context.

 

The original ACEMP Product template was built at Windchill 8 and I am now running Windchill 10.0 m040. Does this make a difference? Being stored in Oracle, I would have thought it would have been updated by the update process.

 

If anyone has any ideas of what I need to do, let me know. I will keep researching and reading to find out what is needed. I have created new products before but that was back at Windchill 7 and that version did not ask for a template when creating new Products.

 

Ben

Windchill 10.0 mo4o

Creo 2 M200

How to change the type of existing part.

$
0
0

Hi,

I have a WTPart and is associated with an EPM Document. Now I want to change the type of Part its subtype.

How can I achieve it?

 

 

Thanks,

How to move Windchill on Windows server to Linux

$
0
0

Hi Windchill Gurus,

 

Our company has an old Windchill 9.1 running on Windows 2003 server, and we are planning to retire windows 2003 server soon, so we want to move it to Linux (RHL-2.6.32)

 

But I don't find any documents about rehost windchill from Windows to Linux.  BTW, all Oracle DBs are running on Solaris which will remain untouched.

 

I was hoping anyone from the community can give us some advice please.

 

Jerry

Viewing all 3136 articles
Browse latest View live


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