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

could not initilize auditing service

$
0
0

I am working through a cloning rehost to get a 10.0 m040 system that I can do test work on.

I installed Oracle on its machine and run the PTC Setup for Oracle.

Installed Windchill on its machine.

OOTB Windchill can be started.

Did a drop user PDM and Create_user PDM on the Oracle machine

Imported the Oracle dump from my production machine.

Imported the LDIF backup from production.

Ran the rehost utility with I think proper settings.

I can start the Windchill DS.

Windchill method servers start and die immediately.

 

Error message is: Failure to start manager wt.audit.Standard.Audit.Service

Could not initialize Auditing service.

Nested exceptionis: wt.util.wtexception: (wt.federation.PrincipalManager.PrincipalManagerResourse/CONFIG_ERROR_INCORRECT_NAMING_Provider) com.infoengine.util.IEException: Info*Engine configuration error - The default Directory Service Provider URL and/or Service Search Base could not be retrieved from Info*Engine properties.


Removal of the Default Change Activity

$
0
0

So we figured out how to remove the Default Change Activity because we create our own from various types and create the Change Name. In 9.1 we had this removed, and if we started the change notice from the object, it would still populate in our new change task on the affected objects.  Where do I edit to get the object to populate on the affected objects table in 11.0 after removing the default change task?

 

Also I noticed the order of the Change Task subject is displayed different.  We prefer the Change Name, Type, Number rather than Type, Number, and Name in the subject.  Is there a preference setting to switch this back?

 

Thanks.

ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME

$
0
0

Hello,

 

I am trying to rename a system and running into this problem.  The system is a clone of production that will be a test system. Windchill 10.2 M030 CPS-11.  The SQL Server and PTC Directory server are running, per the rehost documentation.

 

I have created the rehost.properties with the guidance of this document:

"How to rename Windchill 10.x using Rehosting Utility 3.0 in Windchill PDMLink"

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

 

I have also tried the suggestions in this document:

"Rehost Utility throws error "ANT_HOME is set incorrectly", but ANT_HOME is actually set correctly for Windchill PDMLink 10.1"

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

(which indicates it covers versions 10.1 thru 11)

 

The Rehost utility documentation says that it is not necessary to escape the characters anyway.  I am using the windchill shell (get the same error when in a windows shell, fwiw).

I have made sure that I have a proper psi_iir file under my windows user profile that points to the installation. Check and doubled checked the values in the rehost.properties file against the site.xconf and db.properties. Tried a ton of different combinations of values. Used the new "test.prop.values.only" and "rehost.log.passwords". I never see any logging under buildlogs or the rehost utility directory.  Set, reset, unset "ANT_HOME". Moved the utility to the same drive as the windchill installation.  Rebooted.  This is all I ever get:

 

E:\rehostMED-61138-CD-102_M010>rehost.bat conf\rehost.properties

usercase  =  rename

modules   =   InfoEngine,Database,Apache

 

apache.home       = E:\PTC\Windchill\HTTPServer

wt.home           = E:\PTC\Windchill

wt.usernam        =

rehost.properties = E:\rehostMED-61138-CD-102_M010\conf\rehost.properties

 

setup env

wt_home   =E:\PTC\Windchill

JAVA_HOME =E:\PTC\Windchill\Java

 

ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME.

E:\rehostMED-61138-CD-102_M010>

 

BTW, I don't know why "wt.usernam" is not set.  I have populated "target.wc.username". File comments from what I can tell that isn't required for what I am doing here.

 

I would welcome any suggestions from those who have this working and perhaps know the quirks or any tricks.

 

Regards,

 

MLS

Workflow routing options radio buttons

$
0
0

So we have migrated our workflows from 9.1 to 11.0.  We have got most things to work.

 

One issue, If there is a workflow task that goes to multiple users (all users required to complete) at the same time and there is a routing choice of radio buttons.  The task displays with nothing preselected, which is how it should.  So that user makes a selection and completes the task.  But when the next user looks at the task, the routing radio button is preselected with the previous users selection.  I would expect each user to view the task and the routing options are not selected.  What is going on?

 

This works correctly in 9.1, with the blank radio buttons for each user. 

Site.xconf settings to rehost

$
0
0

I am working through a cloning rehost to get a 10.0 m040 system that I can do test work on.

I installed Oracle on its machine and run the PTC Setup for Oracle.

Installed Windchill on its machine.

OOTB Windchill can be started.

Did a drop user PDM and Create_user PDM on the Oracle machine

Imported the Oracle dump from my production machine.

Imported the LDIF backup from production.

Ran the rehost utility with I think proper settings.

 

When I look at the site.xconf file on both machines, it does not match.

Does the rehost utility copy the wt.properties and other *.properties files from the source to the target machines when it runs?

There is no mention of copying these files in the rehost guide, yet without them, the target machine is not a complete rehost.

 

Any insights on what files should be manually copied over? There are a lot of *.properties files, so maybe just the site.xconf should be copied, edited for node name and then propagated.

 

Does the Rehost Guide need to be revisied to add this information?

Ilink3.3-m22 can't start - "Failed to take or refresh license".

$
0
0

Starting Ilink returns with note "Failed to take or refresh license".


Pro/Ework and can open models from workspace.


What's the problem, anybody know the solution?

PublishRules 10.1 vs 10.2 -

$
0
0

Dear all,

 

In my Windchill 11.0 environment i have a publishrule who creates additional file if it is a released drawing.

that works for "set state" and "promotion request" with the <publish on="unknown-source"

 

I have tried to do the same in an older 10.1 environment.. (I know it's not supported anymore.. and no, i can not update to a newer release now :-))

unfortunately rules are not evaluated for promotion requests. but it works fine for set state.

 

Does anyone know this behavior?

is <publish on="unknown-source" in 10.1 not the same as in 11.0?

 

Best regards to all

Daniel

How reassign workflow activity with Windchill API ?

$
0
0

I want to reassign workflow activity to other user with API .

 

So Kind give some code snippet to start.


Query to get list of Groups and users available in Windchill

$
0
0

Hi,

 

Can someone help me with a SQL query or a piece of code to extract all the list of Groups in my Windchill Instance and the associated users in every group. I couldn't find a straightforward API that can be used to query this and get it out.

 

Thanks in advance!

Another SQL Server Upgrade Question

$
0
0

Has anyone done an upgrade from SQL Server 2008 to SQL Server 2012 for Windchill?  I know that when I'm done, I'll have to run the collation conversion but my question is do you have to install 2012 separately and import the database or can you run the "SQL Upgrade" to upgrade the database instead?  The book is saying the first, but I'm wondering if the second works.

query builder report - file downloads from CAD Attachments

$
0
0

We have a report which queries AUDITRECORD for the Download event. Works perfectly (not really needed any more with PSM actually but that's beside the point).

 

Starting to get interested also in downloads for CAD Docs from the Attachments table on the Content tab.

 

The security audit report for Download event and the query builder reports that I've created so far on the AUDITRECORD show download by user and timestamp, etc. but only report the parent CAD Doc, not the actual attachment file downloaded.

Anyone have a ideas on how we can filter for this?

 

Example - this CAD doc has Attachments (created/added via publish rules with automatic version naming); downloaded one of them (directly in a browser to local, not to workspace).  Hoping to be able report that specific download action.

 

AUDITRECORD reports:

 

Windchill PDMLink 10 open in a new tab

$
0
0

I realize I am very late to the party but we are just now upgrading to PDMLink 10. Am I missing something or is it not possible to open the links from a search result into multiple tabs?

 

IE if I search on a part number and I want to open the CAD object and the WT object that the search results returned in separate tabs is that possible?

Moving parts within the MBOM structure ?

$
0
0

After generating an MBOM in MPM link I wish to move parts within the lower levels and not have them in part number order.

 

Does anybody know if this is possible and how it is done, is it just a configuration/set up issue?

 

Many thanks, Dale.

CAD Structure to Part Structure

$
0
0

I have recently been doing a lot of testing and learning in Windchill. Having no real training, and being tasked to solve a number of problems for our business units has led to me making some mistakes and having to fix them. Of course all of this is happening on our production server as well, because we don't have a test server. I've now caused one issue that I cannot figure out how to fix.

I believe that by using Set for Build, I have pushed the WTPart structure to the CAD Structure. This results in all of my models being removed from my assemblies when I open them. I need to reverse this and force the CAD Structure to populate the WTPart structure. How do I do this? I find myself getting confused about which way information is being pushed in the Compare CAD to WTPart and Compare WTPart to CAD windows, and I'm truly just fumbling around trying to learn (which I have learned a ton) since I cannot find good training information.

 

Thank you.

NC Category Tree / NC Trending Categories - Windchill API help

$
0
0

Hello,

 

We are trying to pull the tree structure of two of the Nonconformance attributes "NC Category" & "NC Trending Categories", into Thingworx.

At Thingworx side, we can parse xml or json input; preferably with the tree (parent-child) details, and feed it to tree widget.

 

At Windchill side we need some help to develop the webject (xml or java code) to pass the attribute details.

Please let us know the right approach or API to get the above attributes along with parent-child (tree) details

 

Other details

Object - WCTYPE|com.ptc.qualitymanagement.nc.Nonconformance

Attribute Name - Nonconformance Category

Internal name - ncCategoryCode / ncCategoryPath

 

Object - com.ptc.qualitymanagement.nc.NCTrendingCode

Attribute Name - Nonconformance Trending Categories

Internal name - ncTrendingCode & ncTrendingPath

 

Please refer attached screenshots.

 

Thanks

Avinash


Windchill PDMlink Visualization option open all files removed?

$
0
0

Again, very late to the PDMLink 10 party here ... In PDMLink 9 there was an option to open all files when ProductView was launched. This meant that components for assemblies opened upon launch rather than having to manually click a radio box to load them.

 

Does anyone know if there is a way to achieve the same thing in PDMLink 10 / Creo View? Seems a little silly to me not to auto load the files. If I clicked on an assembly visualization then chances are really good I wanted to actually load it and see it.

 

Capture.PNG

Advanced Replica/Vaulting Requirement with Multiple File Servers in USA and INDIA

$
0
0

We would like to configure Windchill server with 7 File Servers to achieve the following requirement.

 

There is a Product container X and user A is from US and user B is from India.Both are members of this Product Container.

Both members are required to design two separate product lines using Creo.

 

If user A checks in Creo data it should be deposited in US FCS Master vault and if user B checks in data then it should be deposited in India FCS master vault.

 

Is there any good bractice to configure Replica Vaulting Rules according to this requirement? How can we make sure that data is not stored centrally?

Extract all Groups, user and its profile related information by java code

$
0
0

Hi All,

 

i need to extarct all Groups, Group Member and user related information in tabular manner by using java code.

Please any one give me some idea how i can achive this requirement.

 

 

Thanks,

Vivek

table is not displayed with proper table UI

$
0
0

I am trying to create a table UI on click on actions command on a popup page. Table is coming a plain page without table borders

 

Below are the steps followed,

 

Step 1: Added custom-actionmodels.xml

<model name="agileActions" resourceBundle="jp.co.lixil.individualbom.actions.ui.resource.NavigationRB">

  <action name="pushParts" type="object"/> <!-- Send Part -->

  <action name="pushBOM" type="object"/> <!-- Send BOM -->

  <action name="pushDrawing" type="object"/> <!-- Send Drawing --> 

  <action name="AgilePartsList" type="navigation"/>

</model>


Step 2: Added actions in custom-actions.xml

<objecttype name="navigation" class="" resourceBundle="com.co.ui.resource.NavigationRB">

  <action name="AgilePartsList">

              <component name="com.co.agile.parts" windowType="popup"/>

          </action> 

</objecttype>


Step 3: RB File Entry for this action in NavigationRB.java

@RBEntry("Parts List To Agile")

public static final String PRIVATE_CONSTANT_24 = "navigation.AgilePartsList.title";

 

@RBEntry("Parts List To Agile")

public static final String PRIVATE_CONSTANT_25 = "navigation.AgilePartsList.tooltip";

 

@RBEntry("Parts List To Agile")

  public static final String PRIVATE_CONSTANT_26 = "navigation.AgilePartsList.description";

 

 

Step 4: Added Entry in MVSDispatcherServlet.xml

<?xml version="1.0" encoding="UTF-8"?>

<!-- - Application context definition for "MVC" DispatcherServlet. -->

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=“http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

<import resource="classpath:config/mvc/mvc.xml" />

  <import resource="classpath:config/mvc/jca-mvc.xml" />

  <import resource="classpath:config/mvc/*-configs.xml" />

  <import resource="classpath:config/mvc/custom.xml" />

  <import resource="classpath:config/mvc/pac-custom.xml" />

  <bean id="defaultHandlerMappings“ class="org.springframework.beans.factory.config.PropertiesFactoryBean">

    <property name="locations">

    <list>

    <value> classpath:/config/mvc/*-urlMappings.properties</value>

  <value>classpath:/config/mvc/custom.properties</value>

  </list>

  </property>

  </bean>

  </beans>



 

Step 5: pac-custom.xml file created under codebase/config/mvc/pac-custom.xml

<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beansxmlns:xsi="http://www.w3.org/2001/XMLSchema-instancexmlns:context="http://www.springframework.org/schema/contextxmlns:mvc="http://www.ptc.com/schema/mvcxsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-2.5.xsdhttp://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-2.5.xsdhttp://www.ptc.com/schema/mvchttp://www.ptc.com/schema/mvc/mvc-10.0.xsd">  <!-- Configurations in this file override all other configurations --> 

<mvc:builder-scan base-package="com.co.agile.action.table.part" /></beans>


Step 6: Created a Folder under <WEB-INF>/jspcalled pac/pacPartsListTable.jsp

<%@tagliburi="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%@ taglibtagdir="/WEB-INF/tags" prefix="tags"%>

<%@ tagliburi="http://www.ptc.com/windchill/taglib/jcaMvc" prefix="mvc"%>

<%@ include file="/netmarkets/jsp/util/begin_comp.jspf" %>

<mvc:tablecompId="com.pac.agile.parts"/>

<%@ include file="/netmarkets/jsp/util/end_comp.jspf"%>


Step 7: This is the table component code


package com.co.agile.action.table.part;

 

import com.ptc.mvc.components.AbstractComponentBuilder;

import com.ptc.mvc.components.ColumnConfig;

import com.ptc.mvc.components.ComponentBuilder;

import com.ptc.mvc.components.ComponentConfig;

import com.ptc.mvc.components.ComponentConfigFactory;

import com.ptc.mvc.components.ComponentParams;

import com.ptc.mvc.components.TableConfig;

import com.ptc.mvc.util.ClientMessageSource;

 

import wt.fc.PersistenceHelper;

import wt.part.WTPart;

import wt.pds.StatementSpec;

import wt.query.QuerySpec;

import wt.query.SearchCondition;

import wt.util.WTException;

import wt.vc.VersionIdentifier;

 

//This annotation is VERY important.

@ComponentBuilder("com.co.agile.parts")

public class AgilePublishPartsTableBuilder extends AbstractComponentBuilder {

    private static final String RESOURCE = "jp.co.ui.resource.NavigationRB";

    private final ClientMessageSource messageSource = getMessageSource(RESOURCE);

 

    @Override

    public ComponentConfig buildComponentConfig(ComponentParams paramComponentParams) throws WTException {

        //get the ComponentConfigFactory

        ComponentConfigFactory factory = getComponentConfigFactory();

        //get an instance of TableConfig

        TableConfig table = factory.newTableConfig();

        // General table properties

        table.setId("com.pac.agile.parts");

        table.setSelectable(true);

        table.setLabel(messageSource.getMessage("RELATED_PARTS"));

        table.setShowCount(true);

        //table.setActionModel("agilePushTableActions");

       

        //add columns

        //name

        ColumnConfig col1 = factory.newColumnConfig("name", true);

        col1.setSortable(true);

          table.addComponent(col1);

          //number

          ColumnConfig col2 = factory.newColumnConfig("number", false);

          col2.setInfoPageLink(true);

          col2.setSortable(true);

          table.addComponent(col2);

          //type

          ColumnConfig col3 = factory.newColumnConfig("type", true);

          table.addComponent(col3);

          // Last Modified

          ColumnConfig col4 = factory.newColumnConfig("thePersistInfo.modifyStamp", true);

          table.addComponent(col4);

         

          table.setShowCustomViewLink(false);

          // If you want different column name as Display name, use setLabel("New Name") function on column

          // If you data as link use setInfoPageLink(true) function on column

          table.setView("/pac/pacPartsListTable.jsp");

        return table;

    }

 

    @Override

    public Object buildComponentData(ComponentConfig paramComponentConfig, ComponentParams paramComponentParams) throws Exception {

        QuerySpec qs = new QuerySpec(WTPart.class);

        qs.appendWhere(new SearchCondition(wt.part.WTPart.class,WTPart.NUMBER,SearchCondition.LIKE,"%RD%"), null);

        return PersistenceHelper.manager.find(qs);

       

    }

}

 

Result is like this when I click on actions command,

 

Can someone help me to figure how to get the proper table here?

Making a Replica Vault to a non-Windchill computer

$
0
0

I am relatively sure this is not possible, but has anyone had any success with creating a Windchill Replica Vault on a computer that does not run Windchill, for example, a laptop?

My company is working with replicating vaults for convenient transfer of data without passing it through a WAN, much like in this thread. Windchill Content Replication

Viewing all 5797 articles
Browse latest View live


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