Skip to content

Instantly share code, notes, and snippets.

View davidtolsma's full-sized avatar

David Tolsma davidtolsma

View GitHub Profile
@davidtolsma
davidtolsma / itemQuery.c
Created November 25, 2010 14:33
Teamcenter ITK utility to generate a list of items of a specific type
#include <iman.h>
#include <sample_err.h>
#include <pom.h>
#include <item.h>
#include <aom.h>
#include <aom_prop.h>
#include <stdio.h>
#include <stdlib.h>
#include <pom.h>
@davidtolsma
davidtolsma / list_items.c
Created November 25, 2010 14:31
Teamcenter ITK utility to create an xml file output of a specific item type
#include <iman.h>
#include <sample_err.h>
#include <pom.h>
#include <item.h>
#include <aom.h>
#include <aom_prop.h>
#include <stdio.h>
#include <stdlib.h>
#include <pom.h>
@davidtolsma
davidtolsma / query.c
Created November 25, 2010 14:28
Teamcenter ITK utility to run a query and get the results
We couldn’t find that file to show.
@davidtolsma
davidtolsma / importexport.bat
Created November 25, 2010 00:11
A Unigraphics NX batch program to import and export assemblies into Teamcenter
@ECHO OFF
cls
TITLE Import/Export NX Files
:: Check if required folders exist, creates it if it doesn't exist
CALL :CREATEDIR Import
CALL :CREATEDIR Export
:: Check Arguments
@davidtolsma
davidtolsma / journalLoadSave.vb
Created November 25, 2010 00:09
An Unigraphics NX journal file to test loading and saving times
' NX 5.0.1.4
' Journal created by dtolsma on Thu Sep 27 08:44:26 2007 Central Daylight Time
'
Option Strict Off
Imports System
Imports NXOpen
Imports System.Diagnostics
@davidtolsma
davidtolsma / getNXinformation.bat
Created November 25, 2010 00:04
inspect Unigraphics NX parts
@echo OFF
:: Alternative ug_inspect utility, requires passing in the option to retrieve
:: run ug_inspect -h for complete list of options
TITLE GET NX INFORMATION
set inputDirectory=%1
set runtype=%2
set outputFile=%3
@davidtolsma
davidtolsma / email_users_process_is_down
Created November 24, 2010 23:58
Command run in conjunction with monitor_process utility to email users when a process is down
#! /bin/ksh -f
script_name=`basename $0`
process_name=$1
machine_name=$2
# Must pass two arguments only
# checking for it here
if [[ $# != "2" ]]; then
clear
@davidtolsma
davidtolsma / monitor_process.ksh
Created November 24, 2010 23:55
Unix style Monitor Process and run a command if it's down
#! /bin/ksh -f
script_name=`basename $0`
monitor_application=$1
this_machine=`uname -n`
# Must pass one argument only
# checking for it here
if [[ $# != "1" ]]; then
clear