We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

trouble customizing NCS DrawingTitle 11

Erika Epstein
Booster
I am customizing the NCS DrawingTitle 11 to match firm standards. I've been able to do all but the following two items. See screenshot for goal.

1. find where to delete the colon after the word SCALE. In the parameters I only have SCALE written with no colon and I can't find where in the scripts the colon is being added.

2. have the written scale e.g. 1/4" = 1'-0" show centered above the SCALE
The original had the written scale after and in the same line as the SCALE. I duplicated the script under GOSUB 500. I deleted the drawingscale from the 1st line so only stex [the word SCALE] will show. This worked fine.
In the duplicated portion I deleted the stex hoping the written scale only would show, as well as adjusting the Y value so it would be centered above SCALE.

The problem is both sections of text now show SCALE over SCALE. If I comment out the stex original portion the written scale shows correctly in the correct location. I believe the problem has todo with the original script uses 'drawingScale' to call both the stex and the written scale. I am at a loss as to how to get the second part to call the written scale.

500:!Show "SCALE" and Drawing Scale
set style "styleDrawingScale"
pen gs_drawing_scale_font_pen

!! ORIGINAL SECTION OF TEXT WITH that used to read drawingScale = stex+ drawingScale========================

drawingScale = stex !!!"SCALE" !ERE change to put drawing scale above the word "scale"

if (GLOB_CONTEXT = 22 | GLOB_CONTEXT = 28) & (gs_GLOB_MODPAR_NAME = "gs_drawing_scale_pos_x" | gs_GLOB_MODPAR_NAME = "gs_drawing_scale_pos_y") then
textWidth = stw(drawingScale) * PAPER_TO_MODEL
textHeight = drawingScaleFontH
textAnchor = anchorDrawingScale
gosub 1300

add2 anchorX+2*rc, anchorY

rect2 posX+2*rc + gs_drawing_scale_pos_x+diam+0.0064, posY + gs_drawing_scale_pos_y-0.002,
posX+2*rc + gs_drawing_scale_pos_x+diam+0.0064 , posY + gs_drawing_scale_pos_y-0.002 + textHeight
del 1
else
TEXT2 posX+2*rc +gs_drawing_scale_pos_x+0.0064, posY + gs_drawing_scale_pos_y, stex!drawingScale !!!!!!-0.002
endif

!! DUPLICATED PORTION OF ABOVE with stex deleted===================================================================
drawingScale = drawingScale !!! drawingScale

if (GLOB_CONTEXT = 22 | GLOB_CONTEXT = 28) & (gs_GLOB_MODPAR_NAME = "gs_drawing_scale_pos_x" | gs_GLOB_MODPAR_NAME = "gs_drawing_scale_pos_y") then
textWidth = stw(drawingScale) * PAPER_TO_MODEL
textHeight = drawingScaleFontH
textAnchor = anchorDrawingScale
gosub 1300

add2 anchorX+2*rc, anchorY

rect2 posX+2*rc + gs_drawing_scale_pos_x+diam+0.0064, posY + gs_drawing_scale_pos_y-0.002,
posX+2*rc + gs_drawing_scale_pos_x+diam+0.0064 , posY + gs_drawing_scale_pos_y-0.002 + textHeight
del 1
else

TEXT2 posX+2*rc +gs_drawing_scale_pos_x+0.0064, posY + gs_drawing_scale_pos_y+ 0.5*titleHeight, drawingScale !!!!!!-0.002
endif
RETURN


Can someone point me in the right direction?
Thanks

written scale over SCALE.jpg
Erika
Architect, Consultant
MacBook Pro Retina, 15-inch Yosemite 2.8 GHz Intel Core i7 16 GB 1600 MHz DDR3
Mac OSX 10.11.1
AC5-18
Onuma System

"Implementing Successful Building Information Modeling"
3 REPLIES 3
Anonymous
Not applicable
I changed the parameter as well to "SCALE", without the colon. It didn't change the existing drawings so I picked one of them and turned off the drawing title. Then I went back in and turned the NCS Drawing title back on. This fixed the problem. Also any new drawings that I placed with the title showed the text properly.... Only one part of your problem but it's a start.

Doug
Anonymous
Not applicable
Hi Erika,
Unfortunately I don't have time to go any further with this tonight, but you might be able to use what I've gotten so far.

500:
set style "styleDrawingScale"
pen gs_drawing_scale_font_pen

drawingScale = drawingScale !!!"SCALE: "

if (GLOB_CONTEXT = 22 | GLOB_CONTEXT = 28) & (gs_GLOB_MODPAR_NAME = "gs_drawing_scale_pos_x" | gs_GLOB_MODPAR_NAME = "gs_drawing_scale_pos_y") then
textWidth = stw(drawingScale) * PAPER_TO_MODEL
textHeight = drawingScaleFontH
textAnchor = anchorDrawingScale
gosub 1300

add2 anchorX, anchorY

rect2 posX + gs_drawing_scale_pos_x+diam+0.0064, posY + gs_drawing_scale_pos_y-0.002,
posX + gs_drawing_scale_pos_x+diam+0.0064, posY + gs_drawing_scale_pos_y-0.002 + textHeight
del 1
else
textWidth = stw(drawingName) * PAPER_TO_MODEL
textHeight = drawingScaleFontH
textAnchor = anchorDrawingScale
TEXT2 posX + gs_drawing_scale_pos_x+diam+textWidth, (posY + gs_drawing_scale_pos_y)-1/8", stex
TEXT2 posX + gs_drawing_scale_pos_x+diam+textWidth, posY + gs_drawing_scale_pos_y, drawingScale
line2 0, 0, .25", 0
endif
RETURN

Doug

PS. Ignore the line2 statement at the end....just looking for 0,0
Drawing Title.PNG
Erika Epstein
Booster
Doug,
Thank you very much.
Your posted text was just what I needed. I was able to adapt from your example to get the placements I needed.
Have a great day.
Erika
Architect, Consultant
MacBook Pro Retina, 15-inch Yosemite 2.8 GHz Intel Core i7 16 GB 1600 MHz DDR3
Mac OSX 10.11.1
AC5-18
Onuma System

"Implementing Successful Building Information Modeling"

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!