Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

drawing title object not working in AC25

jkershaw
Booster

We have been using a custom drawing title object since AC20 with no issues. Now that we are using AC25, the title is behaving correctly ON SCREEN, but when we print or save as PDF, the title object displays the information for ALL drawings on the layout. 

 

Need help solving this. GDL script below. Thanks!

 

correct display on screencorrect display on screenissue when printing or saving to pdfissue when printing or saving to pdf

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

!! convert pt size to mm size !!
 
titleSizeMM = titleFontSize * 0.352778
numberSizeMM = numberSize * 0.352778
scaleSizeMM = scaleSize * 0.352778
 
 
DEFINE STYLE title_type titleFont,  titleSizeMM, 7, 0
DEFINE STYLE number_type numberFont, numberSizeMM, 8,0
DEFINE STYLE scale_type scaleFont, scaleSizeMM, 1,0
 
 
IF showTitle = 1 THEN
STYLE title_type
PEN 1
PARAGRAPH "paragraph_title"  1, 0, 0, 0, 1
"<DRAWINGNAME>"
ENDPARAGRAPH
TEXTBLOCK "textBlock_title"  0, 7, 0, 1, 1, 1, "paragraph_title"
 
ADD2 37/64",0
RICHTEXT2 0, 0, "textBlock_title"
 
ENDIF
DEL TOP
 
 
IF showNumber = 1 THEN
STYLE number_type
PEN 1
PARAGRAPH "paragraph_number"  1, 0, 0, 0, 1
"<DRAWINGID>"
ENDPARAGRAPH
TEXTBLOCK "textBlock_number"  0, 8, 0, 1, 1, 1, "paragraph_number"
ADD2 1/4",0
RICHTEXT2 0, 0, "textBlock_number"
 
ENDIF
DEL TOP
 
PEN 2
LINE2 0,0,1/2",0
HOTSPOT2 1/2",0
HOTSPOT2 0,0
DEL TOP
 
IF showScale = 1 AND not_to_scale = 0 THEN
STYLE scale_type
PEN 1
PARAGRAPH "paragraph_scale"  1, 0, 0, 0, 1
"<DRAWINGSCALE>"
ENDPARAGRAPH
TEXTBLOCK "textBlock_scale"  0, 1, 0, 1, 1, 1, "paragraph_scale"
 
ADD2 9/16",-3/64"
RICHTEXT2 0, 0, "textBlock_scale"
 
ENDIF
DEL TOP
 
IF showScale = 1 AND not_to_scale = 1 THEN
STYLE scale_type
PEN 1
PARAGRAPH "paragraph_scale"  1, 0, 0, 0, 1
"NOT TO SCALE"
ENDPARAGRAPH
TEXTBLOCK "textBlock_not_to_scale"  0, 1, 0, 1, 1, 1, "paragraph_scale"
 
ADD2 9/16",-3/64"
RICHTEXT2 0, 0, "textBlock_not_to_scale"
 
ENDIF
DEL TOP

 

 

 

iMac Retina 5K 27", 3.8 GHz 8-Core Intel Core i7, 72GB RAM
10.15.7 Catalina
using AC since version 4.5
1 ACCEPTED SOLUTION

Solution
jkershaw
Booster

Thanks, Eduardo.

 

I was able to solve the issue by replacing what I call the "shortcut" variables - <DRAWINGNAME>, <DRAWINGID>, etc - with the global AC variables (AC_DrawingName, AC_DrawingNumber, etc.)

iMac Retina 5K 27", 3.8 GHz 8-Core Intel Core i7, 72GB RAM
10.15.7 Catalina
using AC since version 4.5

View solution in original post

3 REPLIES 3

Eduardo Rolon
Moderator

Might be the Title bug in AC25.

See here

https://community.graphisoft.com/t5/Document-Visualize-forum/Custom-drawing-title-issue-with-ArchiCA...

eduardo rolón AIA NCARB
Another of the forum moderators.
Macbook Pro 2.4 i9 32GB ram
OS X 10.XX latest
AC25 US/INT -> AC08

Solution
jkershaw
Booster

Thanks, Eduardo.

 

I was able to solve the issue by replacing what I call the "shortcut" variables - <DRAWINGNAME>, <DRAWINGID>, etc - with the global AC variables (AC_DrawingName, AC_DrawingNumber, etc.)

iMac Retina 5K 27", 3.8 GHz 8-Core Intel Core i7, 72GB RAM
10.15.7 Catalina
using AC since version 4.5

View solution in original post

Lingwisyer
Virtuoso

For future reference, those shortcut variables are called Autotext.

AC18-23 AUS 7000
Self-taught, bend it till it breaks.
Win10 | E5620 x 2 | 24GB | K2200

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!