Posts

ITK Debug Configuration - Visual Studio

Image
VISUAL STUDIO - DEBUG SETUP PROCEDURE (DLL / EXE) Thanks to my colleagues for making this document and I'm just posting it in my blog. ;) In VS; Create New project: File->New->Project … Select Win32 Console Application. Give name and Solution Name If you need to generate DLL select DLL radio button and select “Empty project” in Additional options. If you need to generate .EXE executable select “ Console application ” and select “Empty project” in Additional options. Create a .cpp file under Source Files folder in the project and then proceed the below steps.  Set below values in the Property Pages: Additional Library Directories --> Add ‘lib’ directory path of TC installation location. Enable Incremental Linking --> No Generates dll as we choose DLL in the second screenshot above. Cross verify it in below one Set TC_ROOT, TC_DATA, and call tc_profilevars.bat in Environment Add additional ‘

ITK an Intro

Hello Folks, It been long time here and I hope everyone is great on your own way.. :) Recently I started writing ITK scripts (baby scripts) and kind of enjoying it.. So before we start that, let me share what I know/learnt.. Using ITK we can write an  1. Executables (exe) which can run standalone like batch/cron jobs,  2. Library (dll (windows)/so (unix)) which can be used to write action, rule handlers. NOTE: You can use Visual Studio to write the ITK programs, I tried configuring them as per the Siemens ( http://support.industrysoftware.automation.siemens.com/docs/teamcenter/9.1/help/index.html#uid:index_itk:id921903:itkusingfunctions:id733668:id1244802 ) document., but couldn't succeed.. :) Don't know where I'm going wrong.. Anyways you can do it.. Since I don't have enough patience, I just went with notepad++.. ----------------------------------------------------------------------------------------------------- EXE: As of now, I have written only

RAC Customization - Useful Static Methods - Part II

  Useful Static Methods - Part II Few more static methods developed during our customization... Sharing the same to you.. :) 1.  /* Show ootb properties dialog  * @param selectedComponent  */ public static void showProperties (TCComponent selectedComponent) { final Registry comdReg = Registry.getRegistry("com.teamcenter.rac.common.actions.actions");  try { AbstractAIFCommand cmd = (AbstractAIFCommand) comdReg.newInstanceFor("propertiesCommand", new Object[] { selectedComponent, AIFDesktop.getActiveDesktop() }); cmd.executeModeless(); } catch (Exception ex) { ex.printStackTrace(); } } ----------------------------------------------------------------------------------------------------------- 2.  /* Scroll the panel to top  * @param scrollPanel*/ public static void scrollToTop (final JScrollPane scrollPanel) { SwingUtilities.invokeLater(new Runnable() { public void run() { scroll

RAC Customization - Usefull Static Methods - Part I

RAC Customization - Static Methods In every project, there will be a package called " common ", which have classes consist of generic static methods. These methods reduces time, duplication of code, etc.. Below are the few static methods which are created for my project.. I guess, these methods will be very common in every project.. 1. /** Method to check whether an item exists in the database with given ID */     public static boolean isItemExists (TCSession tceSession, String itemId)     throws TCException {         String msg = "";         TCComponentQuery tceItemQuery = null;                TCComponentQueryType qType = (TCComponentQueryType) tceSession.getTypeComponent("ImanQuery");         tceItemQuery = (TCComponentQuery) qType.find("Item...");               String entry[] = { "Item ID" };         String value[] = { itemId };         TCComponent[] result = tceItemQuery.execute(entry, value);         if

RAC Customization - Eclipse Debug mode Setup

Image
TC Debug Configuration Using Eclipse.   In this post, we will see how to configure debug mode in eclipse for RAC customization. The use of configuring debug mode is such that you can test your functionality from eclipse instead of exporting to jar, running the registry and restarting Teamcenter...     Major Steps:                Setting up TCE Debug Configuration involves two major steps, i.e., Set Target Platform, Set Debug Properties.  Target Platform:               We have to set target platform, so that eclipse will refer TC jars to its workspace. Perform the below instructions to set target platform..   To Open Preferences dialog, Click Windows Menu -->  Preferences .  Under Preferences dialog, select Plug-in Development option, which will be present on   the left pane. Under Plug-in Development option, select Target Platform. An pictorial representation is shown below. Continued,...  Select Running Platform (Active) option,

Installation of Teamcenter 8.3 - 2T

Image
Hi All, The first and foremost step we need to take for learning Teamcenter, is to install them first. :) In this post we will see step by step instructions for installing Teamcenter 8.3.. Here we go!! Prerequisites: Make sure your Teamcenter 8.3 host runs one of the following supported platforms: • Windows • HP-UX • AIX • Solaris • Linux For information about versions of operating systems, third-party software,Teamcenter software,  and system hardware certified for your platform, see the UGS PLM Software Certification Database: http://support.ugs.com/online_library/certification/ To use the certification database, choose the platform and products you use, then click Show Certifications. Installation Outline: Teamcenter : Installation of Teamcenter is explained thorough this presentation. Compatible OS/ compatible software:  Microsoft Windows XP, Windows 2003 Server Oracle 10g or 11g Teamcenter 8.3 Installation process:     First set up/ install