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

Section Marker Head Text Alignment

Scott Bulmer
Booster
In Section Marker_NCS 14 or the Built-In Section Marker, is it possible to adjust the text alignment away from the horizontal dividing line separating the first and second rows of text? To my eye the appearance has always been too close and I have never been able to figure out how to adjust it.

Thanks, Scott
AC27 v. 4060 w/ MEP, Cadimage, Twinmotion 2023.2.2 using AC from AC6.0, 2021 MacPro M1 chip, Adobe CC. Used AC on both platforms.
12 REPLIES 12
Erich
Booster
Scott,

I don't have AC14 so I cannot check the exact part. However, in AC12 the corresponding part does not have a native adjustment for the text placement. However, assuming it is scripted similarly in AC 14, you can open the marker. In the master script it should call a macro named "Sect-Elev Marker Macro USA". In the 2D script of the macro there is a subroutine 2000: that defines the text and it's location. You can add a term there and to the parameter table to accomplish what you are wanting.

Of course you will need to save both the part and macro as new object to your office library.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
David Maudlin
Rockstar
Scott:

The location of the code is the same for Section Marker_NCS 14 as Erich described for the 12 version.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Scott Bulmer
Booster
Erich/David,

Thanks guys for the direction. As a follow-up, I can open the part using File>L&O>Open Object and see the call within the Master Script. I do not see or know how to get to the Macro you mention. When searching for that macro, copies within exported libraries are returned, not the original macro. Please tell me how to get to the original.

Thanks again and Happy New Year!
Scott
AC27 v. 4060 w/ MEP, Cadimage, Twinmotion 2023.2.2 using AC from AC6.0, 2021 MacPro M1 chip, Adobe CC. Used AC on both platforms.
Erich
Booster
Scott,

The easiest way to do this is to open the Marker part. Go to the master script. Highlight the macro name (do not include the quotes). Then go to the File > Libraries and Objects > Open Object. This will open the macro directly. You can then make your changes and save a a new macro object. Back in the original marker you will need to change the name of the macro call to match your newly named macro. Then save the marker object with a new name.

Let us know if you need further help.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Scott Bulmer
Booster
Hey Erich,

Your description worked perfectly in accessing the Macro. I need a little help however deciphering the code, what changes (to make the first and second text lines in the marker move away from the center horizontal line) would you recommend to the sub-routine 2000 listed below here?

Thank you again for your year ending help. Scott


! ==============================================================================
! Marker text definition
! ==============================================================================

2000:
pen AC_TextPen_1

if text_readable & text_rotangle > 90 & text_rotangle <= 270 then


!switch styles
if text_anchor = 7 then style leftstyle
if text_anchor = 9 then style rightstyle

rot2 180
add2 0, -AC_TextSize_1
text2 0, -dsc, text_cont
del 2
else
text2 0, -dsc, text_cont
endif
return
AC27 v. 4060 w/ MEP, Cadimage, Twinmotion 2023.2.2 using AC from AC6.0, 2021 MacPro M1 chip, Adobe CC. Used AC on both platforms.
Erich
Booster
Scott,

OK, you are most of the way there. Here is how I would do this (there are other ways as well):

1. Open the section marker and save under a new name.

2. Open the macro found in the Master Script and save under a new name.

3. In Marker parameter table add a new length parameter (I will call this "adj")

4. In the macro call, change the name of the macro (between the quotes) the the new macro name you just used.

5. In the macro call after the last line of the macro call (probably something like "elev_sect_mark_US_type = 1") add a comma then the line
adj = adj


6. In the Macro parameter table add the same length parameter you added to the Marker ("adj").

7. At or near the top of the 2D script (you could place this in the list of Marker Definitions) for the Macro add the following code
adj = adj*A_
8. Find the first instance of the code
GOSUB 2000
. Just before this line add the following
ii = 1
9. Just before the second instance of the code
GOSUB 2000
add the following
ii = -1
10. Then just before the third instance of the code
GOSUB 2000
add the following
ii = 1
11. In the 2000 subroutine (the one you listed) change both instances of the TEXT2 command to the following
TEXT2 0, -adj*ii-dsc, text_cont
12. Save both the macro and the section marker part. You should now have control over where the text appears relative to the dividing line.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Scott Bulmer
Booster
Hey Erich,

I believe I executed your process correctly (repeating it to insure no mistakes). I found and entered all the code lines you describe. After saving and double checking, I reloaded the library with the new/re-saved section marker head. In the the new marker's selection settings, the 'adj' parameter correctly appears, however changing the associated value has no affect on the text location in the marker. The attached screenshot shows an excerpt from the parameter table (part and macro parameters are the same). Does that look correct?

Thank you for your help, Scott
Picture 6.png
AC27 v. 4060 w/ MEP, Cadimage, Twinmotion 2023.2.2 using AC from AC6.0, 2021 MacPro M1 chip, Adobe CC. Used AC on both platforms.
Erich
Booster
Scott,

Your parameter table entry is not quite correct. Overwrite the automatic parameter where it says "SectionMar_A" to say "adj" (no quotes).

Where you put the word "adj" you can leave or change to something a user might better understand as this is what a user will see in the part settings.

Re-save both parts and things should work.

HTH
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Scott Bulmer
Booster
Erich,

Thank you, that worked in terms of moving both the upper and lower text in the same direction in unison. Very neat.

What I did not communicate though and is the desired result, that each line of text would move away from the horizontal dividing line, and away from each other equally. I am hopeful this can be accomplished without too much of your time.

Thank you again,
Scott
AC27 v. 4060 w/ MEP, Cadimage, Twinmotion 2023.2.2 using AC from AC6.0, 2021 MacPro M1 chip, Adobe CC. Used AC on both platforms.