2005-07-05 07:24 PM
2005-07-05 07:37 PM
2005-07-06 12:15 AM
Ignacio wrote:Igancio,
STW(textString)/1000*GLOB_SCALE will give me the length of the TEXT2 box, I discovered after a bit of pain (as opposed to the the length taken by the characters).
Now in the vertical dimension,
(setFontSize*25.4/72)*GLOB_SCALE/1000
will give me the height of the character itself and I am trying to figure out what the height of the text box is.
Is there supposed to be any function, or constant (for every single font?), or is there some other GDL trick that will give me the height of the text box?
2005-07-06 01:13 AM
2005-07-06 05:11 AM
2005-07-06 08:18 AM
but if you ask a script to PRINT its thoughts about a dimension parameter, you'll get meters/metres no matter what your dimension preferences are.Are you familar wih the REQUEST commands? There are several REQUESTs to get the format of the unit-settings, part of the preferences in option menu.Since 8.0 you can ask for the units of the dialog boxes too. The return value is a string, which you can use directly in the STR-command:
format = "" zahl = 60.55 dimension="Linear_dimension" sts = REQUEST (dimension, "",format) TEXT2 0, 0, dimension + " [" + format +"] " + STR (format, zahl)
2005-07-26 01:13 AM
F. wrote:Today I am working on the same type of problem, and I guess the only way out is scripting the math, which is not rocket science but is not fun (on the positive side, I will re-use that a lot): this object distributes thingies at a regular interval, the interval determined by the script, and I need it to have a TEXT2 saying 'One thingy every 1 3/8" '
but if you ask a script to PRINT its thoughts about a dimension parameter, you'll get meters/metres no matter what your dimension preferences are.Are you familar wih the REQUEST commands?
2005-07-26 01:54 AM
2005-07-26 02:13 AM
Peter wrote:Ooops! I had completely missed that second form. I just looked it up and it seems like it does exactly that, or almost exactly that. Great. Thanks.
Ignacio,
I may have completely misunderstood your question but
can't you use the second form of the STR() function to do
what you want ?
Peter Devlin
2005-07-26 08:41 AM