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

Title Alignment

Anonymous
Not applicable
I have 5 titles (based on the Layout block width we use in our Master, with it's autotext working beautifully, but...

ever since they were created and then modified/updated by me they have never parked themselves exactly in the corner of the drawing after it's placed. They are always off to the right about 1/8" (as you can see in the picture).

Any help would be appreciated.
10 REPLIES 10
Erich
Contributor
You don't say if these are titles you wrote from scratch or if you started from ones existent in the program. If based on something existing it would help to know which one.

Otherwise, look for something in your code that creates a transformation (ADD2, MUL2, etc.), your problem is most likely there. Perhaps there is an additional variable in those movements that you don't really want.

If all else fails, you could post the titles and see if anyone can find the issue. Otherwise it will be up to your own detective work and abilities.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Anonymous
Not applicable
I don't know much about creating Titles, but it appears there are two Hotspots to the left of the text box. Have they been saved with the title elements in the wrong place? Or are they generated automatically?
Anonymous
Not applicable
Thanks for the replies.

I drew the title and then saved them as titles from the Libraries & Objects menu.

Here's one of them. I'm learning about scripting in all my spare time and would be glad to figure out how to fix it.
Anonymous
Not applicable
Here's the script, too.

!
! Name : Title 1w GR.gsm
! Date : Monday, October 13, 2008
! Version : 10.00
! Written by ArchiCAD
!

mul2 A/0.156758, B/0.012700
add2 -1709'-3.4566", 705'-8.1747"
pen 1
line_property 0
line2 1709'-4.0126", -705'-7.6747", 1709'-4.0126", -705'-8.1747"
set fill "air space"
poly2_b{3} 5, 3, 0, 0,
0'-0.0000", 0'-0.0000", 3'-3.3701", 0'-0.0000", 0'-0.0000", 3'-3.3701",
1709'-3.5031", -705'-8.1747", 1,
1709'-3.5031", -705'-7.6747", 1,
1709'-9.6281", -705'-7.6747", 1,
1709'-9.6281", -705'-8.1747", 1,
1709'-3.5031", -705'-8.1747", 1
hotspot2 1709'-3.5031", -705'-8.1747"
hotspot2 1709'-3.5031", -705'-7.6747"
hotspot2 1709'-9.6281", -705'-7.6747"
hotspot2 1709'-9.6281", -705'-8.1747"
hotspot2 1709'-3.5031", -705'-8.1747"

define style{2} "AC_STYLE_1" "GraphMM_237 LT 310 NR", 10'-11.9444", 0

paragraph "AC_PRG_1" 2, 0'-0.0000", 0'-0.0000", 0'-0.0000", 3'-3.3701"
set style "AC_STYLE_1"
"<DRAWINGID>"
endparagraph
textblock "AC_TEXTBLOCK_1" 0'-0.0000", 5, 0'-0.0000", 3'-3.3701", 3'-3.3701", 3'-3.3701",
"AC_PRG_1"
richtext2 1709'-3.7617", -705'-7.9217", "AC_TEXTBLOCK_1"

paragraph "AC_PRG_2" 1, 0'-0.0000", 0'-0.0000", 0'-0.0000", 3'-3.3701"
"<DRAWINGNAME>"
endparagraph
textblock "AC_TEXTBLOCK_2" 0'-0.0000", 4, 0'-0.0000", 3'-3.3701", 3'-3.3701", 3'-3.3701",
"AC_PRG_2"
richtext2 1709'-4.2393", -705'-7.9217", "AC_TEXTBLOCK_2"

paragraph "AC_PRG_3" 3, 0'-0.0000", 0'-0.0000", 0'-0.0000", 3'-3.3701"
"<DRAWINGSCALE>"
endparagraph
textblock "AC_TEXTBLOCK_3" 0'-0.0000", 6, 0'-0.0000", 3'-3.3701", 3'-3.3701", 3'-3.3701",
"AC_PRG_3"
richtext2 1709'-9.3781", -705'-7.9252", "AC_TEXTBLOCK_3"
Erich
Contributor
Jeff,

I have several thoughts. First, not directly related to the problem, you should build any objects you want to save as GDL at/near the origin. This will make reading and understanding the code much clearer as you won't have the large numbers and conversions seen in your title object.

In the case of your title object, the line work is accomplished by the LINE2 and POLY2_[B} commands. Looking at where they start (1709'-3.5031") compared to the ADD2 command (1709'-3.4566") and noticing the difference, I suspect that your problem lies there. Although I have not done the math to confirm the suspicion. I would suggest that you remake the title object closer to the origin. By which I mean set a corner directly on the origin. You thereby eliminate some conversions that may be causing issue.

HTH
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Dwight
Newcomer
And to also simplify understanding coordinates, build things to the upper right quadrant of the origin and keep them from crossing the x or y axes - this make all of your numbers positive to reduce confusion.
Dwight Atkinson
Anonymous
Not applicable
If it's any help, you don't have to actually build the object at 0,0. You can build it anywhere, just move it into the 0,0 position when you have finished and then either save as an object, or drag into the relevant script of an already open library part.

So if you have the linework for the titleblock still on the floorplan somewhere, move it over to the 0,0 point, and then with the titleblock library part already open, physically drag it into the objects 2d script window where the new code should appear.
Anonymous
Not applicable
I relocated the items to the origin and that solved the alignment problem.

In the Parameters window I also had to choose "Store the ratio of current/default A/B sizes" under the "Details" button to keep the label from stretching. I don't know if this is a new feature in 12, but as I said, I am learning this slowly.

Now when I opened a title, though, I was only able to edit the 2d symbol and there was nothing in the script windows to edit. Do you know what I did that might have changed that?
Laszlo Nagy
Community Admin
Community Admin
siteline wrote:
In the Parameters window I also had to choose "Store the ratio of current/default A/B sizes" under the "Details" button to keep the label from stretching. I don't know if this is a new feature in 12, but as I said, I am learning this slowly.
That is a very old feature of ArchiCAD, was there in 6.5 and possibly even earlier versions.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27