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

Re: Get Part Information where i am on for JSP Site

$
0
0

Daniel,

 

Is it something along the lines of this in your jsp you are looking for?

 

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

 

<%@ page import="wt.fc.Persistable" %>

<%@ page import="wt.util.*" %>

<%@ page import="wt.part.*" %>

<%@ page import="wt.fc.*" %>

 

<%

String oid = request.getParameter("oid");

ReferenceFactory rf = new ReferenceFactory();

Persistable p = rf.getReference(oid).getObject();

WTPart wtp = (WTPart) p;

String num = wtp.getNumber();

%>

 

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


Re: Updating oracle hostname

$
0
0

Amol,

 

I think it's wt.pom.serviceName you need to update for an Oracle db server.

 

You should always update in your site.xconf file located in the Windchill home folder and then run:

    xconfmanager -p

in a Windchill shell. It will propagate the values set to the right properties files (db.properties in this case)

Windchill connected to MS Active Directory Load balanced server pair

$
0
0

When we first rolled out Windchill late last year we connected it to our MS Active Directory system for authentication.  Worked great.  At the time the AD system was two servers, call them AD1 and AD2, acting in failover mode.  Windchill talked to AD1.  At one point AD1 failed, so AD2 took over and I had to repoint Windchill to AD2- still fine.  Now they AD system has been reconfigured to be load balanced and failover.  So AD1 and AD2 are constantly sharing the load and if one dies, the other takes on 100% of the work.  Since that change, and it's purely correlation in timing that has me speculating there may be a cause - effect relationship, the time it takes for Windchill to present a login when starting Pro/E has gotten much longer.   It was nearly instant, now it takes 20-30 seconds for some users and I'm getting complaints.  Has anyone else seen anything like this?  And, is there any way to designate Windchill so it knows there are two AD servers working in parallel AND that if one doesn't respond to look for the other one?  PTC's page only indicates "contact PTC Global Services" for that kind of configuration.

 

Thanks


Erik

 

Windchill 10 M030

Pro/E Wildfire 4 M220

Clients - Windows 7 64 bit, IE9

Retarget Principals

$
0
0

Hi All,

 

We are in the Process to Migrating the iPlanet LDAP to AD.

As we unplugged the old (iPlanet) adapter the users are rendered disconnected. [These are visible in the Maintenance tab in Principal Administration menu].

 

Now, the disconnected principals need to be retargeted.

The user to be retargeted also have groupmembership in Local DS (Windchill DS) groups.

The disconnected users are numerous (~5000) so doing manually is not an options.

 

Option Tried:

DB UPDATE (Tables:  RemoteobjectID, RemoteobjectInfo, WTUSER)

Issue:

The Windchill DS doesn’t update.

 

I believe as through OOTB (Principla Administration-> Maintaiance ->Select Disconnect User -> Retarget) we could retarget the users successfully (it also updates the Windchill DS) the options below would be a preferred one:

  1. Windchill API  probabl e -> API fixuid
  2. InfoEngine Tasks

 

Any Sample code would be applicable.

 

Thanks & Regards

Debashis Patnaik

Creating a link between Parent Part and Child Part using windchill API's

$
0
0

Hi,

 

I am getting the following error while creating a link between a checked out working copy of a part and a child part.

 

(wt.vc.wip.wipResource/0) wt.vc.wip.WorkInProgressException: The object was improperly initialized (i.e., it was null).

        at wt.method.RemoteMethodServer.invoke(RemoteMethodServer.java:795)

        at wt.services.ServiceFactory$ClientInvocationHandler.invoke(ServiceFact

ory.java:349)

        at $Proxy8.checkout(Unknown Source)

        at com.injector.Injector_Test.main(Injector_Test.java:201)

 

Any suggestions on how to solve this error ?

 

Code for reference :

 

WTPart part = WTPart.newWTPart(

 

"Part1", "MyPart");

PersistenceHelper.

 

manager.save(part);

WTPart childPart = WTPart.newWTPart(

 

"CPart1", "MyChildPart");

 

PersistenceHelper.

 

manager.save(childPart);

 

 

WTPart Workingcopy = (WTPart)WorkInProgressHelper.

 

service.checkout(part, null, null).getWorkingCopy();

 

PersistenceHelper.

 

manager.save(link);

WorkInProgressHelper.

 

service.checkin(Workingcopy,null);

 

 

WTPartUsageLink link = WTPartUsageLink.newWTPartUsageLink(Workingcopy, (WTPartMaster) childPart.getMaster());

 

 

 

Help in adding action to “Model Structure Report” and “Family Table”

$
0
0

Hi,

 

I have created URLActionDelegate for my action and have code (Link) to be added in .xml file

If i add in "NavigationAndAction.xml" under any of the Navigation_Tree it does not gets rendered in

“Model Structure Report” and “Family Table”. But i am able to show in "Product Structure" which belong

to WTPart. As “Model Structure Report” and “Family Table” belongs to EPMDocument. In which .xml i should

add an entry ro get action displayed in “Model Structure Report” and “Family Table” ?

 

TP1.jpgTP2.jpg

And as it is a template processed one it is difficult in finding definitions of actions.

 

Thanks

Vijayan

Install Windchill 10.1 in Centos6.2 Error occurs : Windchill loader exited with error status = 1

$
0
0

Do you hava this similar problems, help me

os.name: Linux

         

os.version: 2.6.32-220.el6.x86_64

            

os.arch: amd64

        

java.vendor: Sun Microsystems Inc.

       

java.version: 1.6.0_41

……

DEBUG  2013-06-05 21:12:55 - CHOSEN_INSTALL_SET=Recover

 

DEBUG  2013-06-05 21:12:55 - CHOSEN_INSTALL_FEATURE_LIST=Application

 

DEBUG  2013-06-05 21:12:55 - Data Load (WindchillLoaderManager): timer.start

 

INFO   2013-06-05 21:12:55 - Executing pre-data load actions.

 

INFO   2013-06-05 21:12:55 - Found data to load

 

INFO   2013-06-05 21:12:55 - Starting Apache.

 

DEBUG  2013-06-05 21:12:55 - Checking if web service is running...

 

DEBUG  2013-06-05 21:12:55 - checking URL connection to http://plm101.ptc.com:80  ...

 

DEBUG  2013-06-05 21:12:55 - Exception while attempting to connect (web service may simply not be running)

java.net.ConnectException: Connection refused

 

    at java.net.PlainSocketImpl.socketConnect(Native Method)

 

    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)

 

    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)

 

    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)

 

    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

 

    at java.net.Socket.connect(Socket.java:529)

 

    at sun.net.NetworkClient.doConnect(NetworkClient.java:158)

 

    at sun.net.www.http.HttpClient.openServer(HttpClient.java:411)

 

    at sun.net.www.http.HttpClient.openServer(HttpClient.java:525)

 

    at sun.net.www.http.HttpClient.<init>(HttpClient.java:208)

 

    at sun.net.www.http.HttpClient.New(HttpClient.java:291)

 

    at sun.net.www.http.HttpClient.New(HttpClient.java:310)

 

    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:987)

 

    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:923)

 

    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)

 

    at com.ptc.windchill.install.suite.runnables.AbstractWebService.attemptConnect(AbstractWebService.java:228)

 

    at com.ptc.windchill.install.suite.runnables.AbstractWebService.isRunning(AbstractWebService.java:201)

 

    at com.ptc.windchill.install.suite.runnables.AbstractWebService.start(AbstractWebService.java:295)

 

    at com.ptc.windchill.install.suite.WindchillLoaderManagerImpl.startApache(WindchillLoaderManagerImpl.java:526)

 

    at com.ptc.windchill.install.suite.WindchillLoaderManagerImpl.loadSubinstallerData(WindchillLoaderManagerImpl.java:134)

 

    at com.ptc.windchill.install.suite.WindchillLoaderManagerImpl.process(WindchillLoaderManagerImpl.java:87)

 

    at com.ptc.windchill.install.suite.WindchillLoaderManager.process(WindchillLoaderManager.java:29)

 

    at com.ptc.windchill.install.framework.InstallAction.run(InstallAction.java:468)

    at com.ptc.windchill.install.framework.InstallAction.install(InstallAction.java:313)

 

    at com.zerog.ia.installer.actions.CustomAction.installSelf(DashoA10*..)

 

    at com.zerog.ia.installer.InstallablePiece.install(DashoA10*..)

 

    at com.zerog.ia.installer.InstallablePiece.install(DashoA10*..)

 

    at com.zerog.ia.installer.InstallablePiece.install(DashoA10*..)

 

    at com.zerog.ia.installer.InstallablePiece.install(DashoA10*..)

 

    at com.zerog.ia.installer.GhostDirectory.install(DashoA10*..)

 

    at com.zerog.ia.installer.InstallablePiece.install(DashoA10*..)

 

    at com.zerog.ia.installer.Installer.install(DashoA10*..)

 

    at com.zerog.ia.installer.actions.InstallProgressAction.n(DashoA10*..)

 

    at com.zerog.ia.installer.actions.ProgressPanelAction$1.run(DashoA10*..)

 

DEBUG  2013-06-05 21:12:55 - apache appears to be down.  Starting it...

 

DEBUG  2013-06-05 21:12:55 - Starting Apache...

 

DEBUG  2013-06-05 21:12:55 - Executing command: /wc/ptc/Windchill/Apache/bin/apachectl -k start

DEBUG  2013-06-05 21:12:55 - Executing: /wc/ptc/Windchill/Apache/bin/apachectl -k start

 

DEBUG  2013-06-05 21:12:56 - socket connect to localhost:80 completed with no error

 

DEBUG  2013-06-05 21:12:56 - Checking if web service is running...

 

DEBUG  2013-06-05 21:12:56 - checking URL connection to http://plm101.ptc.com:80  ...

 

DEBUG  2013-06-05 21:12:56 - apache running at http://plm101.ptc.com:80

 

DEBUG  2013-06-05 21:12:56 - Apache seems to be running.

 

INFO   2013-06-05 21:12:56 - Loader command: /wc/ptc/Windchill/Windchill/bin/windchill --java=/wc/ptc/Windchill/Java/bin/java --javaargs=-Dwt.load.installer.serverManagerTimeout=300 wt.load.WindchillLoader -All -Unattended -AbortOnError -IncludeDemo -Locale=en -User=wcadmin -Password=wcadmin 

 

INFO   2013-06-05 21:12:59 - joining with std out thread

 

INFO   2013-06-05 21:12:59 - std out join complete.

 

INFO   2013-06-05 21:12:59 - joining with std error thread

 

INFO   2013-06-05 21:12:59 - std err join complete.

 

FATAL  2013-06-05 21:12:59 - Windchill loader exited with error status = 1

 

DEBUG  2013-06-05 21:12:59 - Installation is Aborting.  The installation cannot continue.

 

DEBUG  2013-06-05 21:12:59 - Installation is Aborting.  The installation cannot continue.

Re: Creo tries to check out objects when opening

$
0
0

Hi,

 

on our case we had a relation defined in the parts, which Creo wanted to check-out.
It looked like this:

 

DESCRIPTION=PTC_COMMON_NAME

 

After these parts were renamed in Windchill PDMLink, as soon as the objects were loaded into a Creo session, Creo wanted to update the parameter DESCRIPTION because of this relation.
So the user was prompted to check-out.

 

BTW: Sorry for the late answer.

 

Regards
Johannes


Re: EBOM creation from a CAD BOM

$
0
0

Hello

 

the easiest way will be the "Auto Associate" function in the Workspace.

For Number and Desription. If no auto numbering in Object Init rules, you should be able to map them between CAD and WTPart (explicit map in the type manager if attributes have different name in CAD type and Part type).

If you want to keep autonumbering for WTPart.  you will prpobably need to implement your own "Custom Class for AutoAssociate" (set in the pref manager)

. to be able to find or create a WTpart with the same number as your CADDoc

 

17-06-2013 09-02-42.jpg

 

 

for drawing, you can set the "create content link" pref if you want a real persisted link in the database between your WTPart and the CAD drawing.

If you do not set this pref. You will have a automatic "calculated" link.  not persisted , and based on the "as stored" configuration (ie when you checkin the drawing with the 3D model ...). but depending of the revising scenario, can lead to some historix issue.

 

by default , on CAD checkin.  It will create the BOM.   If the CAD are already checked in, you can use the "compare CAD to part" function in the action menu of CAD asm to synchronise your WTpart eBOM with CAD structure

 

regards

Gregory

Re: CASTING & RAW model management in WTPart structure

$
0
0

Hello ..

 

Please look into Windchill Configurable Link

Re: How Workflow Import in Windchill 10.1 from Windchill 9.1

$
0
0

Allowing cross release importing can be achieved by setting the following property in

<Windchill>\codebase\wt.properties file.

 

wt.ixb.import.allowCrossReleaseImport=true

Re: Get Part Information where i am on for JSP Site

$
0
0

Hi Jørn , it works perfect for me :-) Thank you for your help again. Wish you a good week.

How do I set the Document Format in OIR rule?

$
0
0

I've made a custom OIR rule for a library that sets several attributes, but when I use it to upload files from the web, none of the files get a "Document Format", and therefore can't be added to a workspace(they should be cad files).  Does anyone know of a specific attrValue/AttrContraint set that will let the format be detected again?

 

Thanks

 

I'm using PDMLink 10.1

Re: Updating oracle hostname

$
0
0

Arnol,

I guess you exported the DB from the application server and imported it into the new standalone server? If you have done this, you need also to rename some tables in the DB itself. The easyiest way is to use the Windchill Rehosting Utility (WRU) to first update the hostname on the application server and rehost the database. You just need to run the database job.

 

Björn

Re: Config file problems

$
0
0

Jess,

 

that's the odd thing - no changes were made to WIndchill or Creo and one day that config line starts causing problems. As a matter of fact, it just happened again on a workstation which was running the config file with the mozilla bowser type option just fine - then today Creo stalled after login. Removing the browser type option from the config file once again fixed the issue.

 

Unless all these users (3 total now) are somehow messing up their 'Gecko' libraries on their systems, I can't explain why this config option suddenly causes problems.

 

Andri


Re: Config file problems

$
0
0

Perhaps Creo uses Gecko via shared libraries and these particular users did something that placed other versions of some of the Gecko libraries into the PATH used by Creo?  That could certainly louse things up.

creating a link between part and document

$
0
0

Hie All,

               I m tring to create link between part and document throgh the following code.

 

 

WTPart part = WTPart.newWTPart("MyPart", "MyPart001");
PersistenceHelper.manager.save(part);

 

WTDocument doc1 = new WTDocument().newWTDocument();
doc1.setName("Doc1");
doc1.setNumber("D001");
PersistenceHelper.manager.save(doc1);
System.out.println("Saved Document ...");

 


Folder myFolder = WorkInProgressHelper.service.getCheckoutFolder();
System.out.println("Folder name is " + myFolder.getFolderPath());


CheckoutLink checkout_lnk = WorkInProgressHelper.service.checkout(part, myFolder, "workingCopy");
System.out.println("Creating the working copy of part..");
part = (WTPart) checkout_lnk.getWorkingCopy();


System.out.println("Created working copy ...");

WTPartDescribeLink link1 = WTPartDescribeLink.newWTPartDescribeLink(part, doc1);
PersistenceHelper.manager.save(link1);
System.out.println("Saved link ...");

 

WorkInProgressHelper.service.checkin(part, null);

 

But getting the following error:-

wt.vc.wip.WorkInProgressException: java.lang.NullPointerException

Nested exception is: java.lang.NullPointerException

        at wt.fc.collections.ReferenceUtility.isInflated(ReferenceUtility.java:3

83)

        at wt.fc.collections.ReferenceUtility.getPersistable(ReferenceUtility.ja

va:263)

Issue while configuring Creo View Adapter for publishing Inventor files

$
0
0

Hi All,

 

I'm trying to configure Creo View Adapter worker for publishing Inventor files in my PDM Essentials server.

 

I had installed WGM using standard Installation procedure and it identified my instance of Inventor 2013 and I checked in an Inventor Assembly into my PDM Server. I had configured the CAD worker with standard procedure and tried to publish for which I get ther error "Fails to start".

 

After a long troubleshooting I identified that when I try publishing my the worker is unable to start Inventor in my local machine(Which is correctly configured in Worker Agent Administration).

 

Can someone tell me is there any specific configuration that I need to do while configuring my Inventor along with WGM to sort the issue that I'm facing.

 

regards,

Amar.

Retrieving back previous iteration

$
0
0

Hi all, i need to retrieve back previous iteration of a model in windchill. ie to my model there is 3 iterations in commonspace. I need to use the 1st iteration of the model again. How to retrieve without any loss. Guide me

How to add an action on right click in the Object List table of workspace?

$
0
0

The Object List table in Workspace of any product has no actions on right click of the objects. i need to add one.

I have done that for other tables by using "menufor" in the actionmodel and then calling this actionmodel as a column in the TableBuilder class. And it worked.

ColumnConfig testcolumn = factory.newColumnConfig(DescriptorConstants.ColumnIdentifiers.NM_ACTIONS, true); ((JcaColumnConfig)testcolumn).setDescriptorProperty(DescriptorConstants.ActionProperties.ACTION_MODEL,"testactionmodel"); table.addComponent(testcolumn);

But i am not able to find the TableBuilder for the Object List table. Anybody has had any experience here.

Untitled.png

Setting jcaDebug=true, also doesnt reveal anything. Normally, it would have directly given me the TableBuilder name.

Viewing all 8876 articles
Browse latest View live


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