<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/tcl/tags/TCL84</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 22 May 2013 17:41:18 GMT</pubDate>
<item>
<title>(TCL) ANSYS single node picking - joseamirandavelez</title>
<link>http://snipplr.com/view/65509/ansys-single-node-picking/</link>
<description><![CDATA[ <p>Functions for picking a single node in ANSYS and retrieving the node number.

This is more a hack, since it uses a predefined UIDL function designed for an ANSYS tool. It happens to be useful for picking a single node since it returns the node number as a variable in ANSYS which we can retrieve. You will need the code in the source:

Then you create a button and assign the pickSingleNode procedure to its command. Notice that the UIDL call in the pickSingleNode procedure receives the code inside getNodeNumber procedure as a parameter. The UIDL function will execute this code when its done. The getNodeNumber procedure retrieves the number of the picked node, which was saved in the ANSYS variable _Z1, and stores it in a variable.

The destination variable is pkNode in this case. You need to change this to the variable assigned to the destination widget, for example, an entry box.</p> ]]></description>
<pubDate>Sat, 09 Jun 2012 08:42:01 GMT</pubDate>
<guid>http://snipplr.com/view/65509/ansys-single-node-picking/</guid>
</item>
<item>
<title>(TCL) Set window color to ANSYS default - joseamirandavelez</title>
<link>http://snipplr.com/view/65508/set-window-color-to-ansys-default/</link>
<description><![CDATA[ <p>By default, ANSYS makes Tk windows an ugly green. This code changes the color of most of the widgets. You still need to change the background color of some widgets...</p> ]]></description>
<pubDate>Sat, 09 Jun 2012 08:40:33 GMT</pubDate>
<guid>http://snipplr.com/view/65508/set-window-color-to-ansys-default/</guid>
</item>
<item>
<title>(TCL) Create a new window child to ANSYS - joseamirandavelez</title>
<link>http://snipplr.com/view/65507/create-a-new-window-child-to-ansys/</link>
<description><![CDATA[ <p>Basic commands for creating a window child to ANSYS (transient).</p> ]]></description>
<pubDate>Sat, 09 Jun 2012 08:38:56 GMT</pubDate>
<guid>http://snipplr.com/view/65507/create-a-new-window-child-to-ansys/</guid>
</item>
</channel>
</rss>