2018-11-16 04:02 PM
2018-11-16 06:46 PM
2018-11-17 03:02 PM
Karl wrote:In the macro
BTW - did you look at the existing drawing labels that display a scale to see how they do it?
2018-11-20 03:28 PM
2018-12-07 04:33 AM
2018-12-20 04:42 PM
2019-02-05 10:42 PM
2019-02-06 08:53 AM
string = Bar_Scale1 len = STRLEN (string) iDotPos = STRSTR (string, ":") v1 = STRSUB (string, iDotPos + 1, 6) v2 = SPLIT (v1, "%n", vl) !v2 = dummy return = vl
AC22-23 AUS 7000 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
2019-02-06 09:26 AM
CALL "Graphic_Sc_NCS_drawTit" PARAMETERS gs_cont_pen=thinpen, gs_text_pen=gs_drawing_scale_font_pen, gs_text_size=gsfs, gs_text_style=fontType, ut=ut, cs=0, tr=1, drawingScale=drawingScaleBut even if that is not the case, you can use a similar method the aforementioned macro uses to get the scale factor for the graphic scale - get it from the string.
if AC_DrawingScale = `1/4" = 1'-0"` then scale = 48I hope this helped. Maybe you can even look into the script of "Graphic_Sc_NCS_drawTit" to see how it does it.
2019-02-07 11:21 PM