Section Marker Head Text Alignment

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2010-12-30 04:06 PM
Thanks, Scott

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2010-12-30 10:00 PM
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,
Of course you will need to save both the part and macro as new object to your office library.
AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2010-12-31 02:01 PM
The location of the code is the same for Section Marker_NCS 14 as Erich described for the 12 version.
David
www.davidmaudlin.com
Digital Architecture
AC28 USA ⢠Mac mini M4 Pro OSX15 | 64 gb ram ⢠MacBook Pro M3 Pro | 36 gb ram OSX14

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2010-12-31 05:41 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2010-12-31 06:16 PM
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.
AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2010-12-31 11:47 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2011-01-01 02:33 AM
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 = 19. Just before the second instance of the code
GOSUB 2000add the following
ii = -110. Then just before the third instance of the code
GOSUB 2000add the following
ii = 111. In the 2000 subroutine (the one you listed) change both instances of the TEXT2 command to the following
TEXT2 0, -adj*ii-dsc, text_cont12. Save both the macro and the section marker part. You should now have control over where the text appears relative to the dividing line.
AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2011-01-02 05:53 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2011-01-03 02:37 AM
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
AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2011-01-03 04:29 PM
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