katrina71
-
all messages by user
23.10.2004 11:03:35
|
call strlen, call strcopy
|
I am trying to rewrite some of my pre-release 20 cadl files to use with KeyCreator 3.0.1. I have been unable to find a work around for "call strlen" and "call strcopy". Those functions were used in CK19 to determine a string length and copy a string. Is there a way to do this in the current CADL version of KeyCreator? Also, is there another place to find cadl examples, definitions, and functions other than the help file in KeyCreator?
|
23.10.2004 11:11:06
|
Retrieve Dimension Value
|
Anyone know of a way to retrieve the actual value of a linear dimension via CADL? I can get the upper and lower tolerance with @diminfo2[4] and [5].
Also, is it normal that all upper and lower tolerances are 0.001 by default? If you use @diminfo2[4] on a dimension without tolerances applied to it, it returns 0.001.
I want to analyze the sum total of all upper tolerances for a group of dimensions, but these 0.001 values will give me unreliable results for sure. Should I exclude dimensions without tolerancing from the selection set?
Thanks.
|
23.10.2004 11:13:17
|
Retrieve Dimension Value
|
After playing with @refln a little, it seems that the dimension value is always stored in @refln[0][5]. When you try to take the difference of the two X's, you get inaccurate results. I'll build my code based on @refln[0][5].
Thanks.
|
23.10.2004 11:16:53
|
Retrieve Dimension Value
|
Here's a snippet from my code...
clear int numselected
maskentity 11
gensel "Select the dimensions", numselected sprint $numdim,"%d dimensions analyzed",numselected pause "%d dimensions found",numselected
:nextdim getnext if (@error==1) exit
if (@diminfo1[6]!=2) exit
pause "Dimension Values: %f",@refln[0][5] totaldim = totaldim + @refln[0][5]
In this case, the last 'pause' statement calls out the dimension value using [0][5]
|
1
|