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

The Build Associated Part function missing parts?

$
0
0

Hi there,

 

I have a user who is reporting that the Build Associated Part function for a CAD assembly is actually missing some of the structure occasionally (i.e. using that function only puts 58 of the 61 parts into the WT part assembly, but another unofficial technique was able to fix it).

 

Anyone have any ideas as to what could cause this?

 

Please advise,

 

Daryl


getTargetApplet for Change Request

$
0
0

Once in a while a user will get this error when selecting the Finish button of a Change Request.

 

A document on PTC's site said the fix is to clear the Java cache and try again. The first thing I have the user try is to clear the Java cache AND the temporary internet files.  98% of the time this does not fix it for the user.  The document also suggests a workaround.

  1. In PDMLink go to Quick Links > My Settings > Preferences > Attachment > File Upload Mechanism.
  2. Set File Upload Mechanism to Use Basic browser to select and upload files.

 

This change allows the user to complete creating the Change Request.

 

Has anyone else seen this and is there a fix?

 


 

PDMLink 10.1 M050

IE 9, 10, and 11

Java 6 Update 38 and 7 Update 76

Finding content created by a user that has been deleted

$
0
0

Windchill 9.1 user here; I'm trying to find all parts, drawings and assemblies created by a user that is no longer working with our company.

The relevant objects' information pages show Created by: his name (deleted).

But I can't seem to be able to form a search criteria "Created By" that uses his name...  Because only active users are allowed to be selected with the find tool.

Please tell me if this is solved in 10.2, as we are upgrading soon.

parts/asm cannot be retrieved

$
0
0

hi

I am having trouble retrieving data from windchill, followed by the massages bellow :

 

1. The object with the following key was deleted or inaccessible: "wt.epm.EPMDocument

2. Local cache for source "failedRequest" is having incomplete information for merge

3. Local cache contents need to be synchronized with the workspace

 

does enyone have en idea what could be the problem and how to fix this?

Is it possible to automatically select the view following the document type?

$
0
0

In a panel we have some views, then we have to select the view from view list suitable to the each document type currently using. It is best way if PDMLink can automatically select defined view to fit the document type we using.

How to rename the Primary Content

$
0
0

Hello is there is any way we can rename the primary content file using API

any Event for Uploading Primary and Secondary Content

$
0
0

Hello,

 

I am working on the functionality where I need to identify the event for uploading the Primary content in WTDocument can any one please tell what is the event for Uploading Primary and Secondary content

ECN number without change request??

$
0
0
I am new to windchill imple. I did my implementation completely for my customer(Installation). Now i am configuring the CAD related things in Windchill like revision,Custom numbering etc.

 

Below is one of my requirement on workflow,

they need the ecn number with out change request. If i initiate promotion request of the drawing it should go to reviewer and then Approver and got released as per workflow.

But they need ECN number to be enter into the drawing sheet once promotion request initiated. Please give me one solution for that.


WTPart association in PDMLink wants to associate back to ProjectLink?

$
0
0

Anyone run across this before?

 

  • We created a part model and drawing in a project.
  • Sent both objects to PDM
  • Want to create a WTPart and associate it to the drawing and model.
  • Get an association back to the ProjectLink version of the model.  (See screenshot.)

20160222-122302.png

 

I know that the ProjectLink object is coming from the drawing.  I can associate the WTPart to the PDMLink model correctly.

 

Any thoughts?

 

-marc

Is there any example to connect Windchill through web services client? Please share it if you have one....

$
0
0

Is there any example to connect Windchill through web services client? Please share it if you have one....

 

Basically I would like to download some documents from Windchill  by running some trigger (scheduled tasks) from other application...

 

Condition: Schedule Tasks should be executed from other machine to pull data from Windchill....

How to get global enumeration?

$
0
0

Hi.

How can i get global enumeration by java code?

I need all enum entries with internal and display names.

Thanks.

Selecting teams in Select Participants Task

$
0
0

Gurus,

I have a need to combine shared team functionality with team functionality.

Essentially I have a standard approval process, that, based on a component designation goes to one of three teams. I know that I can have a conditional that routes to three identical workflows with individually defined teams, but ideally what I would like to do is have a select participants task that chooses a team that then fills all of the necessary roles. I cannot figure out how to assign more than one shared team to a container.

Any ideas?

 

Thanks,

 

Martin Duffy

How to remove soft attribute(IBA) which are present on WTPart Object

$
0
0

How to remove attribute(IBA) which are present on WTPart Object using code.

for e.g.  0001 Part has IBA source with value make need to remove the category IBA from Part 0001 from the code

Info Engine - Standalone Java SOAP Client Help

$
0
0

Hello All,

 

I have done some java programming in the past, I am fairly new to Windchill,and very new to Info Engine and SOAP.

 

I am trying to follow the Info Engine User guide to create a Standalone Java SOAP Client, with difficulty.

 

Firstly, does anyone know of any info engine tutorials/blogs for beginners?

 

Secondly, could anyone offer some advice on the Standalone Java SOAP Client example. I have the

following issues/questions about the example (each bullet point is a title from the guide):

 

  • Implementing Tasks and Java Classes
    • Should the following directory /org/myOrg.Math/sum.xml be <Windchill>/tasks/org/myOrg.Math/sum.xml
  • Registering Delegates
    • I have created a repository; org.myOrg.Math, should this have a super repository type? com.ptc.windchill?
    • When I create Delegate and select the org.myOrg.Math repository, should I have a Type Identifier? My List is empty?
    • Should the Source URL just be /org/myOrg.Math/sum.xml
  • Generating DAOs
    • When I run the following Java command line:

 

              java com.infoengine.connector.dao.DAOGenerator endPoint=http://wcadmin:wcadmin@localhost/Windchill/servlet/RPC soapClass=org.myOrg.Math fileSystem=/home/user/src                package=org.myOrg.Math class="MathDAO"

 

               The MathDAO.java file is created in E:/home/user/src, is this the correct directory? Or should it be in the Windchill Install Directory?

 

               It contains the following constructor:

 

               public MathDAO ( javax.resource.cci.Connection c, javax. resource.cci.RecordFactory r );

 

               But does not contain the method signatures, should it contain these? Why doesn't mine?

 

              public int sum ( int x, int y ) throws Exception;

               public double average ( double [] nums ) throws Exception;

 

    • Once I compile MathDAO.java, where should it go? In the Windchill Install Directory?
  • Putting it all Together

    • Should the following directory /home/user/src/org/myOrg/client/Test.java be E:/home...? Or should it be in the Windchill Install Directory?
    • When I run the Test class I get a Symbol Not found error for the following line:

               int fourAndFive = dao.sum ( 4, 5 );

               I understand this is because the sum() method cannot be found in the MathDAO Object?

 

Any help would be appreciated!

 

Thank you

Does WindchillDS Admin account really need to be used for Apache authentication?

$
0
0

I have built a remote Apache Webserver in a DMZ that proxies our internal Windchill Application for external Internet users and am doing a final review of the security of the system.

 

I am concerned that, by default, the WindchillDS Apache Auth config files use the WindchillDS Administrator account (cn=manager) to authenticate external users against the WindchilDS LDAP repository - isn't this an unnecessary security risk, especially as the credentials are stored clear text in the app-Windchill-Auth.conf file on the Apache server in the DMZ?

 

It seems to me that all Apache needs is Read Only access to the WindchillDS LDAP repository in order to authenticate users' passwords, so would it not be possible (and preferable) for the default Windchill configuration to use a lower privileged WindchillDS account rather than the Administrator account?

 

Or am I missing something here...

 

Rgds

 

Gary


CAD Data Loaders Customization

$
0
0

Hello All,

 

I have Bulk CAD Data to Load in to Windchill.

OOTB there is no Loader to load Bulk CAD data.

for this how to create customized Loaders to load Bulk Cad data.

 

I hope this stuff is allready done by many of you.

 

Any Help,Material / Procedure will be grate.

 

 

Kindly Help us.

 

Thanks & Regards,

Vivek

The Build Associated Part function missing parts?

$
0
0

Hi there,

 

I have a user who is reporting that the Build Associated Part function for a CAD assembly is actually missing some of the structure occasionally (i.e. using that function only puts 58 of the 61 parts into the WT part assembly, but another unofficial technique was able to fix it).

 

Anyone have any ideas as to what could cause this?

 

Please advise,

 

Daryl

Writing an Info*Engine-Based Web Service

$
0
0

Hello All,

 

I am hoping somebody can help me. I posted the following question:

 

Info Engine - Standalone Java SOAP Client - Help

 

earlier today and I still cannot get this working.

 

I have now decided to try a different approach and write an Info*Engine-Based Web Service.

 

I am following two sections from the I*E User guide:

  • Writing an Info*Engine-Base Web Service.
  • Username Authentication with Symmetric Keys Example

 

I have succesfully completed the following from the Writing an Info*Engine-Base Web Service section:

 

  • Generate the Truststores and Keystores
    • cd <windchill>/prog_examples/jws
    • ant -f jws-stores.xml
  • Create a Project
    • cd <windchill>
    • mkdir prog_examples/jws/MyProject
    • ant -Dproject.dir=E:\ptc\Windchill_10.2\Windchill\prog_examples\jws\MyProject -Dservlet.name=MathService -Dsecurity.policy=userNameAuthSymmetricKeys -Dservice.type.id=org.myorg.MathService -Dmain.class=org.myorg.MathClient -f bin/adminTools/WebServices/new-project.xml create
  • Write the Info*Engine Tasks for Your Web Service
    • E:\ptc\Windchill_10.2\Windchill\prog_examples\jws\MyProject\src\tasks\org\myorg\MathService\Add.xml
    • E:\ptc\Windchill_10.2\Windchill\prog_examples\jws\MyProject\src\tasks\org\myorg\MathService\Divide.xml
    • E:\ptc\Windchill_10.2\Windchill\prog_examples\jws\MyProject\src\tasks\org\myorg\MathService\Multiply.xml
    • E:\ptc\Windchill_10.2\Windchill\prog_examples\jws\MyProject\src\tasks\org\myorg\MathService\Subtract.xml
  • Deploy Your Web Service
    • cd <windchill>/prog_examples/MyProject/src
    • ant
  • Review Web Service WSDL (I have replaced the Windchill URL with <host>)
    • http://<host>/Windchill/servlet/MathService?wsdl
    • I see a WSDL response that contains all of the functions etc. This looks good! (I think)

 

I have then tried to follow the steps in the Username Authenication with Symmetric Keys Example:

 

  • Import the Server's Public Key into the Client's Certificate Store
    • Transfer server.p12 to client machine
    • Start Certificate Manager using C:\Windows\System32\certmgr.msc
    • import server.p12 into the "Trusted People" store
    • Supply the password. The default password is "changeit"
  • Write the Web Services Client
    • Start Visual Studio, Create New project, Console Application named "WcClient"
    • Right-Click References > Add Service Reference > enter URL to fetch WSDL document
      • This NEVER works first time.
      • I have tried both windchill wcadmin credentials, and LDAP Manager credentials
      • Eventually it will connect and adds the Service
    • Right-Click References > Add Reference > System.Net/System.Security
    • This all looks good! (I think) Visual Studio picks up all of the methods (Add, Divide etc.. from the WSDL)
  • Write the client source code:

 

This is my Program.cs (I have replaced the certificate name with <cert_name>):

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using System.Security.Cryptography.X509Certificates;

 

namespace WcClient

{

    class Program

    {

        static void Main(string[] args)

        {

 

            ExampleService.MathServiceImplClient client = new ExampleService.MathServiceImplClient();

            client.ClientCredentials.UserName.UserName = "???";

            client.ClientCredentials.UserName.Password = "???";

            client.ClientCredentials.ServiceCertificate.SetDefaultCertificate(StoreLocation.CurrentUser,StoreName.TrustedPeople, X509FindType.FindBySubjectName, "<cert_name>");

            Console.WriteLine("1+2=" + client.Add(1, 2));

  

        }

    }

}

 

This is my App.config (I have replaced the Windchill URL with <host>):

 

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

<configuration>

    <startup>

        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />

    </startup>

    <system.serviceModel>

        <bindings>

            <customBinding>

                <binding name="MathServiceImplPortBinding">

                    <!--The wsdl schema that was used to create this configuration file contained a 'RequireIssuerSerialReference' assertion for a X509Token.  This can not be represented in configuration, you will need to programatically adjust the appropriate X509SecurityTokenParameters.X509KeyIdentifierClauseType to X509KeyIdentifierClauseType.IssuerSerial.  The default of X509KeyIdentifierClauseType.Thumbprint will be used, which may cause interop issues.-->

                    <security defaultAlgorithmSuite="Basic128" authenticationMode="UserNameForCertificate"

                        requireDerivedKeys="false" securityHeaderLayout="Lax" includeTimestamp="true"

                        messageProtectionOrder="SignBeforeEncrypt" messageSecurityVersion="WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10"

                        requireSignatureConfirmation="false">

                        <localClientSettings detectReplays="true" />

                        <localServiceSettings detectReplays="true" />

                    </security>

                    <textMessageEncoding messageVersion="Soap11WSAddressing10" />

                    <httpTransport />

                </binding>

            </customBinding>

        </bindings>

      <client>

        <endpoint address="http://<host>:80/Windchill/servlet/MathService"

            binding="customBinding" bindingConfiguration="MathServiceImplPortBinding"

            contract="ExampleService.MathServiceImpl" name="MathServiceImplPort">

          <identity>

            <dns value="<host>" />

          </identity>

        </endpoint>

      </client>

    </system.serviceModel>

</configuration>

 

When I run the program I get the following error:

 

Unhandled Exception: System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Basic realm="Windchill"'. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.

 

So My questions are:

 

  • In Visual Studio When adding the Service reference for the WSDL URL, which credentials should I be using?
  • In Program.cs which username/password should I be using?
  • Why am I getting the (401) Unauthorized error?

 

I have tried wcadmin, cn=Manager, changeit, the username displayed in certmgr.msc, my windows user etc.

 

Any help would be appreciated

 

Thanks

How to create a custom Business rule

$
0
0

Hello can anyone please help me how to create a custom business rule does any one have any sample example

Is any possible method we can export drawings and EBOM at one shot from windchill?

$
0
0

We have around 100 released drawings and 45 assembly parts which needs to send supplier.

 

Is any possible method we can export drawings as PDF and EBOM  at one shot from windchill?

 

Appreciate your help.

 

Thank you

 

Selva

Viewing all 5797 articles
Browse latest View live


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