18.06.2013 Views

LIBRARY ı6ıul 0) - Cranfield University

LIBRARY ı6ıul 0) - Cranfield University

LIBRARY ı6ıul 0) - Cranfield University

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix A<br />

This appendix shows the geometrical and welding data obtained using the of<br />

line programming module developed for AutoCAD (see Chapter 3). These data are<br />

stored in the CAD drawing as extended entity data associated with the edge curve<br />

that represents the weld joint. The data are presented in Table A. 1 in a list' format, as<br />

they are stored in the AutoCAD database and as they should appear when extracted<br />

from their respective edge using dedicated AutoLISP functions. Parentheses are the<br />

standard form of delimiting each list. It should be noted that a list can contain other<br />

lists. The data shown in Table A. 1 was written in a way that makes it easier to<br />

visualise the different lists contained in it. Each list is defined by a header and the<br />

corresponding value. The header is separated from the value by a point and the list is<br />

delimited by parentheses. The header defines the type of data stored (e. g. integer, real,<br />

vector, string, list delimiter, list type) and the value is the data stored in that particular<br />

position in the major list. For more details, readers are referred to the AutoCAD R12<br />

AutoLISP programming manual.<br />

Before presenting the list, some global and local variables defined in the<br />

programs and some standard AutoLISP functions are defined below:<br />

XDATA: abreviation of extended entity data.<br />

CRANWELD: registered AutoLISP application name. This name must be used in<br />

"WSETUP":<br />

order to retrieve the welding extended entity data.<br />

header for the sublist containing the welding setup.<br />

GASWIRE: global variable containing the list which defines the file of<br />

car;<br />

cad:<br />

caddy.<br />

nth:<br />

"WGEOM":<br />

coefficients for the welding models. The list format is shown<br />

below:<br />

([filename] [default stand-off] [wire diameter] [file description]).<br />

standard AutoLISP function used to extract the first element of a<br />

list. For example, (car GASWIRE) returns the string [filename].<br />

standard AutoLISP function used to extract the second element of<br />

a list. For example, (cadr GAS WIRE) returns real number [default<br />

stand-off].<br />

standard AutoLISP function used to extract the third element of a<br />

list. For example, (caddy GAS WIRE) returns the real number<br />

[wire diameter].<br />

AutoLISP function used to extract the nth component of the list,<br />

the first element being 0 (zero). For example (nth 3 GASIRE)<br />

returns the string [file description], which is the fourth element in<br />

the list.<br />

header for the sublist containing the joint geometry.<br />

1 Data structure used in AutoLISP to store data.<br />

223

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!