Introduction
This tutorial show how to use Ant to update the Windchill PDMLink or ProjectLink menu system. It will include a script that will install and uninstall a new menu option to the WTPart actions menu.
Getting started
We have some requirements
- Fully automated script
- Will work on any 9.x Windchill version
- Will both install and uninstall the option
- No manual editing
First you need to be familiar with how to create a Ant script for Windchill. We will use the same techniques here, but the primary difference is that will need to automatically update XML, this is not a feature available with ootb Ant
For us to update the XML we will use .an ant extension from the OOPS Consultancy Ltd called XML Task that can be downloaded here . It uses a query language called XPath with is very powerful way of specifying locations in an XML document.. You should be familiar with XPath syntax if you do any XML coding, a good starting point is the wiki page
Technical Objectives
To add the menu we will need to do the following
- Update the actions xmls
- Add a new resource bundle
Add the new XML task to the script
We need to copy the new task jar to our ant lib directory
The we start the script, add the new task
<target name="setup"> ... <taskdef name="xmltask classname="com.oopsconsultancy.xmltask.ant.XmlTask" /> ... </target>
Add the new XML task to the script
To be continued… please add a comment if you want us to finish this article sooner rather than later
相关推荐
To add a new job login workflow In the Login Setup Folders cabinet, open the Workflows folder. Right-click and choose Add > Job Login Workflow. The Workflow property sheet appears. Enter a Name and ...
Add Take Ownership Option\Add Take Ownership Option.reg 取得管理员权限
增加系统菜单,After mucking around searching the Internet for a working example of adding submenu items to the System Menu of a form (see screenshot), I started playing around with InsertMenuItem and ...
1.动态创建select 代码如下: function createSelect(){ var mySelect = document.createElement(“select”); mySelect.id = “mySelect”;... //添加一个选项 obj.add(new Option(“文本”,”值”)); /
We want to build a multimedia application that runs over a UDP connection, which simulates the behavior of an imaginary multimedia application that implements "five rate media scaling" that can ...
针对DevExpress GridControl GridView 新增行AddNewRow() 很多人加了代码也无法实现添加行或者添加行后InitNewRow这个事件没有触发, 其中主要原因见附件实例代码!
There is a new section relating to add-in design, covering issues such as good practice for the separation of interfaces, and techniques for controlling the propagation of errors through a workbook. ...
This demonstrates how to add images to a menu.
In this step we add a simple COM object to our server using the New ATL Object Wizard.(25KB)
Ant是Java程序员的一个好的工具,主要可以帮助程序员进行java项目的的管理,包括批量编译、部署、文档生成等工作,其用途远不止如此,ant内置了大量的API进行各种文件系统操作,在各种应用服务器中都被广泛应用于...
Control Panel - Add New Hardware
using System; using System.IO; using System.Text.RegularExpressions; using System.Windows.Forms; using Microsoft.Win32; namespace MRU { public partial class FormMRU : Form { public FormMRU() { #...
This will add pictures to a menu. This is an excellent example.
NULL 博文链接:https://kooyee.iteye.com/blog/318646
c++里面用addnew的方式对字段较多的数据库操作很方便,怎么可能c#下就不能addnew呢,花了一个早晨拼拼凑凑了一段代码,实现把datatable同类形式增加记录并且回写到数据库中,拼凑的很粗糙,仅供参考
mSaveas.setShortcut(new MenuShortcut(KeyEvent.VK_A)); mPageStyle = new MenuItem("页面设置"); mPageStyle.setShortcut(new MenuShortcut(KeyEvent.VK_U)); mPrint = new MenuItem("打印"); mPrint....
【函数介绍】 ...注意:add_option()可被update_option()函数替代,update_option()函数更加灵活。 【函数用法】 【函数参数】 $name (字符串)(必需)需要添加的选项名称。用下划线隔开单词;不要使用大写
vc cannot add new numbervc cannot add new number
sel.options.add(new Option(“请选择”,””));sel.options.add(new Option(“name”,”id”)); jquery动态添加option 代码如下:$(“#selectId”).append(“<option xss=removed>”+text+”</option>”); ...
Users can add a new watch (using the " " FAB), edit details, add an image (using the "image" FAB) or delete a watch. Getting Started Get started by cloning the project to your local machine: $ git ...