2006-12-29 01:46 AM
2006-12-29 04:23 AM
2006-12-29 05:56 AM
Peter wrote:thanks peter
I do not know of a way to make a single TEXT2 statement containing five strings spaced out so it is readable. You can do what you want using separate TEXT2 statements. The following code with, I hope, understandable comments (the text preceded by exclamation points) may help.
2006-12-29 06:10 AM
2006-12-29 06:45 AM
2006-12-29 03:44 PM
2006-12-29 09:17 PM
2007-01-04 01:48 AM
if nz_label then
add2 nz_labelPosX, nz_labelPosY
rot2 nz_labelRotAng
define style nz_labelFontStyle nz_labelFont, nz_labelFontSize, 4, nz_labelFontFaceCode
set style nz_labelFontStyle
pen nz_labelFontPen
if Profile="CUSTOM" then
stringDS=str("%.0mm",ds)
stringWS=str("%.0mm",ws)
stringMassm=str("%.0",massm)
text2 0, 0, stringDS + "x" + stringWS + "UC " + stringMassm
else
text2 0, 0, Profile
endif
del 2
endif
the next step for me is to turn this into a label object (i actually loathe having textual information display with object itself as there is no control over the display of this text based on the drawing context) . . . but it will do for the next couple of weeks whilst i recharge my GDL batteries and consider how i'm going to tackle that one! 2007-01-04 03:33 AM
2007-01-04 04:21 AM