cancel
Showing results for 
Search instead for 
Did you mean: 

SWIM11.3 Can not upload JT File

Solution Partner Experimenter Solution Partner Experimenter
Solution Partner Experimenter

Dear All

I have an update Teamcenter Integration for Solidworks2016 (SWIM11.3) my TC spec:

1. Teamcenter 11 (11.2.2)

2. Teamcenter Integration for Solidworks 2016 (SWIM11.3)

 

after update i have a problem :

1. Save file solidworks with checklist JT file,  JT file generate in local Computer but can't  upload in to Teamcenter 

 

Please Help this case.

 

Thank You

Huy Lee

Administrator Teamcenter

SW Integration 2016

12 REPLIES

Re: SWIM11.3 Can not upload JT File

Genius
Genius

Hi

Re: SWIM11.3 Can not upload JT File

Solution Partner Experimenter Solution Partner Experimenter
Solution Partner Experimenter

Man Very Happyhi

Re: SWIM11.3 Can not upload JT File

Genius
Genius

Hi

 

I use swim 11.3 but with Teamcenter 10.1.6 and there are no problems to upload the JT file.

What I have done is swim.xml is just to enable <jt_file action="translate" cad_type="sldprt:sldtbx" eai_dir="C:\Progra~1\Siemens\Translators\SolidWorks_V16"/>
...  but as you say that the JT file is generated in the <swim work dir> it means that the conversion is working.

 

I assume you have also checked that the JT is possible to open so it's not 0kb.

Do you get any error messages or are you just missing the JT fil under the item revision?

 

You can enable logging in swim to get some more details. see the swim.properties (I suggest to create a swim_[Customer].properties and add all you modification to this and then reference this one in the OOTB swim.properties file with preferences.file = swim_[Customer].properties

Logging:

# -------
# Logging
# -------
# log.append.date = false
#       When set to true, the date and time is appended to the log file name to
#       make a unique log file each time the integration is run.  The log file
#       will look like the folloing:  txdlog.20120925160437.txt.  The default
#       value is false to overwrite the logfile each time.
#
log.enable = true
#       Option that controls whether a log file will be generated.
#       Allowed values are true and false.  Messages will be printed
#       to the log file only if log.enable is true and log.suppress
#       is greater than the message level of the messages you want
#       to see.
#
log.file = C:\\temp\swimtxdlog.txt
#       Path to the log file.  This file will be created only when a
#       message is actually written to the log.
#
log.suppress = 10000
#       Suppression level for log messages.  Allowed value is an integer.
#       Only messages whose level is less than this number will be
#       written to the log file.
#
# summary.show = false
#       Option that controls whether a summary information dialog is
#       displayed at the end of Open, Save, Update, and Cancel
#       Checkout commands.  Allowed value is true or fal

Re: SWIM11.3 Can not upload JT File

Solution Partner Experimenter Solution Partner Experimenter
Solution Partner Experimenter

Thanks  your reply.

The jt generated in <swim work dir>,but it name is XXX_default.jt. I set <SWIM_DIR>\swjt\swtojt.config :Configuration = "",it not work.

 

detail log:

INFO (  181.846): PERF: SOA Call starts - loadItemRevisions
INFO (  181.846): PERF: SOA Call ends - loadItemRevisions
DEBUG (  181.846): Models checked-in to i-Man
INFO (  181.846): PERF: SOA Call starts - loadLatestExistingItemRev
INFO (  181.846): PERF: SOA Call ends - loadLatestExistingItemRev
INFO (  181.846): PERF: SOA Call starts - loadAdditionalObjects
INFO (  181.846): PERF: SOA Call starts - getNamedRefObjects
INFO (  181.846): PERF: SOA Call ends - getNamedRefObjects
INFO (  181.846): PERF: SOA Call End - loadAdditionalObjects
DEBUG (  181.846): Create CAD stamp
DEBUG (  181.846): SolidWorks update stamp: 14816784091
DEBUG (  181.846): SolidWorks file modification date: Wed Dec 14 17:21:54 CST 2016
DEBUG (  181.846): Got metadata update stamp for com.teamcenter.soa.client.model.strong.Dataset@2fa8cf66: 14816784091
DEBUG (  181.846): Got PDM update stamp 14816784091 for SolidWorks 配置 默认(位于 001248)(sldprt)
DEBUG (  181.846): Got metadata creation date for com.teamcenter.soa.client.model.strong.Dataset@2fa8cf66: Wed Dec 14 17:21:56 CST 2016
DEBUG (  181.846): Got metadata creation date Wed Dec 14 17:21:56 CST 2016 for SolidWorks 配置 默认(位于 001248)(sldprt)
DEBUG (  181.846): SolidWorks file modification date: Wed Dec 14 17:21:54 CST 2016
DEBUG (  181.846): Create CAD stamp
DEBUG (  181.846): SolidWorks update stamp: 14816785140
DEBUG (  181.846): SolidWorks file modification date: Wed Dec 14 17:21:54 CST 2016
DEBUG (  181.846): Got metadata update stamp for com.teamcenter.soa.client.model.strong.Dataset@df2eed77: 14816785140
DEBUG (  181.846): Got PDM update stamp 14816785140 for SolidWorks 模型 001248 (sldprt)
DEBUG (  181.846): Got metadata creation date for com.teamcenter.soa.client.model.strong.Dataset@df2eed77: Wed Dec 14 17:21:57 CST 2016
DEBUG (  181.846): Got metadata creation date Wed Dec 14 17:21:57 CST 2016 for SolidWorks 模型 001248 (sldprt)
DEBUG (  181.846): SolidWorks file modification date: Wed Dec 14 17:21:54 CST 2016
DEBUG (  181.846): Keep local models after checkin
DEBUG (  181.846): SolidWorks 模型 001248 (sldprt) will be set to read-only after export
DEBUG (  181.846): Set to read-only C:\swTemp\001248.sldprt
DEBUG (  181.861): Number of bytes reported by cadscript: 117
DEBUG (  181.861): Number of bytes read by swim: 117
DEBUG (  181.861): <?xml version="1.0" encoding="utf-8"?>
<SetStatusBarResponse>
  <StatusData success="1" />
</SetStatusBarResponse>
DEBUG (  181.877): Number of bytes reported by cadscript: 121
DEBUG (  181.877): Number of bytes read by swim: 121
DEBUG (  181.877): <?xml version="1.0" encoding="utf-8"?>
<SetPermissionsResponse>
  <StatusData success="1" />
</SetPermissionsResponse>
INFO (  181.877): PERF: Save to Teamcenter Complete
DEBUG (  181.877): Incrementing PERF SUM SOA count
INFO (  181.877): WIN2008.74422.01.tcadmin.00138 - Service Request: Core-2009-04-Session:stopOperation
INFO (  181.877): WIN2008.74422.01.tcadmin.00138 - Service Response: Core-2009-04-Session:stopOperation
DEBUG (  181.877): SOABracket Closed (UID: 8)
DEBUG (  181.877): Resetting UID
DEBUG (  181.877): OperationMonitor disabled
DEBUG (  181.877): OperationMonitor disabled
DEBUG (  181.877): Saving registry files.
DEBUG (  181.877): Registry for C:\swTemp now closed
DEBUG (  181.877): Done saving registry files.
DEBUG (  181.877): Number of bytes reported by cadscript: 115
DEBUG (  181.877): Number of bytes read by swim: 115
DEBUG (  181.877): <?xml version="1.0" encoding="utf-8"?>
<ExitBICModeResponse>
  <StatusData success="1" />
</ExitBICModeResponse>
DEBUG (  181.908): Sending
INFO (  181.908): Setting operation in progress = false
DEBUG (  181.908): Pausing PERF SUM
INFO (  181.908): PERFSUM: Save complete, time=4.306, SOA count=17
DEBUG (  181.908): Connected to CADscript. Calling CSHelper.processEvents.
DEBUG (  181.908): Sanity Check
DEBUG ( 5330.260): Number of bytes reported by cadscript: 87
DEBUG ( 5330.260): Number of bytes read by swim: 87
DEBUG ( 5330.260): <?xml version="1.0" encoding="utf-8"?>
<MenuCallbackCmd callbackId="PRE_EXIT_EVENT" />
DEBUG ( 5330.260): java.io.StringReader@7d23a825
DEBUG ( 5330.260): Calling CSOperations.processCIC.
DEBUG ( 5330.276): Operations.preExitEvent() entering try
DEBUG ( 5330.276): Number of bytes reported by cadscript: 115
DEBUG ( 5330.276): Number of bytes read by swim: 115
DEBUG ( 5330.276): <?xml version="1.0" encoding="utf-8"?>
<ExitBICModeResponse>
  <StatusData success="1" />
</ExitBICModeResponse>
DEBUG ( 5330.276): Exiting MainSwim - no more events to process.
INFO ( 5331.368): WIN2008.74422.01.tcadmin.00139 - Service Request: Core-2006-03-Session:getAvailableServices
INFO ( 5333.052): WIN2008.74422.01.tcadmin.00139 - Service Response: Core-2006-03-Session:getAvailableServices
INFO ( 5333.068): WIN2008.74422.01.tcadmin.00140 - Service Request: Core-2008-03-Session:connect
INFO ( 5333.068): WIN2008.74422.01.tcadmin.00140 - Service Response: Core-2008-03-Session:connect
INFO ( 5333.084): WIN2008.74422.01.tcadmin.00141 - Service Request: Core-2006-03-Session:logout
INFO ( 5333.879): WIN2008.74422.01.tcadmin.00141 - Service Response: Core-2006-03-Session:logout
INFO ( 5333.879): Total SOA Server Call Count: 141
DEBUG ( 5333.879): Saving registry files.
DEBUG ( 5333.879): Done saving registry files.

Re: SWIM11.3 Can not upload JT File

Genius
Genius

Hi

 

The swjt folder contains some files but they shall not be used.

The swtojt.config you refere to is a small version of the tessSW.config used by the JT translator to know what for JT file you want to convert. This tessSW.config you will find in the SolidWorks converter folder "etc".

 

Do you have the PLM_Components_JT_Translator_for_Solidworks2016_V16 (This is for SW2016, SW 2014 have a different converter) converter installed?

It's a seperate program and also a seperate license and when you refere to swjt folder I think you don't have it.

It's this path you need to add to swim.xml to define as eai_dir as I have made in the section below.

 

<jt_file action="translate" cad_type="sldprt:sldtbx" eai_dir="C:\Progra~1\Siemens\Translators\SolidWorks_V16"/>

Re: SWIM11.3 Can not upload JT File

Solution Partner Experimenter Solution Partner Experimenter
Solution Partner Experimenter

i am sorry .i forget to shut down test for The  previous log .

Now I  set swim.xml like this 

 <jt_file action="translate" cad_type="sldprt:sldtbx" eai_dir="C:\Siemens\Translators\SolidWorks_V16"/>

detail log hava some erros

 
DEBUG (  108.842): Setting property policy "swim_policy" on the SOA Connection.
DEBUG (  108.842): Dataset does not exist for 001262/A(数据集 001262 是 SWPrt)MultiFieldKeyID [Domain=Item,Property Names =[item_id],Property Values =[001262],ItemType=Item], assume it is a SolidWorks document
DEBUG (  108.858): OperationMonitor disabled
DEBUG (  110.200): Entering OperationCollectionDialog.okAction for Teamcenter 新建 ( tcadmin (tcadmin) - dba/DBA [IMC--1395499337] )
DEBUG (  110.231): Setting refresh flags for registry.
DEBUG (  110.231): Filter named custom is 定制
DEBUG (  110.231): Setting property policy "empty" on the SOA Connection.
INFO (  110.231): WIN2008.94804.01.tcadmin.00043 - Service Request: Core-2008-06-DataManagement:getItemAndRelatedObjects
LEVEL 9999 (  110.231): java.lang.Throwable: SOA Service call stack trace
	at com.teamcenter.soa.client.RequestListener$Info.<init>(Unknown Source)
	at com.teamcenter.soa.internal.client.XmlRestSender.invoke2(Unknown Source)
	at com.teamcenter.services.strong.core.DataManagementRestBindingStub.getItemAndRelatedObjects(Unknown Source)
	at com.transcendata.cadpdm.soa.SOAItemHelper.getItemFromMFKId(SOAItemHelper.java:5024)
	at com.transcendata.cadpdm.soa.SOAItemHelper.findExistingItems(SOAItemHelper.java:919)
	at com.transcendata.cadpdm.soa.SOADatasetHelper.getExistingDataset(SOADatasetHelper.java:3164)
	at com.transcendata.swimsoa.SOAIDMediatorImpl.getMasterName(SOAIDMediatorImpl.java:232)
	at com.transcendata.swimsoa.SOAIDMediatorImpl.getCADIdentifier(SOAIDMediatorImpl.java:92)
	at com.transcendata.swimsoa.ServiceManagerImpl.getCADIdentifier(ServiceManagerImpl.java:897)
	at com.transcendata.swimsoa.gui.RegisterNewDialog.validateModel(RegisterNewDialog.java:734)
	at com.transcendata.gui.AbstractDialog.okAction(AbstractDialog.java:405)
	at com.transcendata.cadpdm.gui.OperationCollectionDialog.okAction(OperationCollectionDialog.java:1354)
	at com.transcendata.swimsoa.gui.RegisterNewDialog.access$100(RegisterNewDialog.java:103)
	at com.transcendata.swimsoa.gui.RegisterNewDialog$2.actionPerformed(RegisterNewDialog.java:494)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$300(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.WaitDispatchSupport$2.run(Unknown Source)
	at java.awt.WaitDispatchSupport$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.WaitDispatchSupport.enter(Unknown Source)
	at java.awt.Dialog.show(Unknown Source)
	at java.awt.Component.show(Unknown Source)
	at java.awt.Component.setVisible(Unknown Source)
	at java.awt.Window.setVisible(Unknown Source)
	at java.awt.Dialog.setVisible(Unknown Source)
	at com.transcendata.gui.AbstractDialog.setVisible(AbstractDialog.java:522)
	at com.transcendata.gui.AbstractDialog.activate(AbstractDialog.java:586)
	at com.transcendata.cadpdm.gui.OperationCollectionDialog.activate(OperationCollectionDialog.java:1427)
	at com.transcendata.swimsoa.gui.RegisterNewDialog.display(RegisterNewDialog.java:612)
	at com.transcendata.swimsoa.gui.RegisterNewDialog$7.run(RegisterNewDialog.java:619)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$300(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
LEVEL 9999 (  110.246): <?xml version="1.0" encoding="UTF-8"?>

 

Re: SWIM11.3 Can not upload JT File

Genius
Genius

Hi

 

I think the error is caused due to that you have the tccs running against the test environment.

Don't think it has anything with that you changed the eai_dir path.

 

Make sure you can convert a JT from SolidWorks JT menu first before running the save to Teamcenter. This way you have better control of the problem area if some fault occur.

If you have the JT converter installed you shall have JT under add-ins and when that is enabled you will see a JT menu under Tools.

 

Re: SWIM11.3 Can not upload JT File

Solution Partner Experimenter Solution Partner Experimenter
Solution Partner Experimenter

Thank you very much!

I am sure I can convert a JT from SolidWorks JT menu,the jt name is xxx_default.jt  when i change solidworks configuration to 11,the jt name become to xxx_11.jt.

i think is it that the wrong name for SWIM to import?

Re: SWIM11.3 Can not upload JT File

Genius
Genius

The JT name shall be same as the SolidWorks part file name i.e this is the item id as swim don't allow anything else to be in the SolidWorks part name.

If not it will not be imported.

 

So in you case the item id must be xxx_11.