Thanks for the help guys, I did manage to grasp the concept of the ARRAY. I've used it in some instances but the rest of the code could probably be written bit smarter.
(I didn't check the STRSUB command Joachim ... I got your post after I figured out the ARRAY method).
I do have a follow up question I would like sorted.
So I have my NOTE object now. Works a treat. I used a bit of code from Cookbook 3 and other parts from GLD Reference ... one thing I cannot figure out is how to keep my text block the same width (on paper in mm) rather then keeping the same 'true width' in model space and hence changing the number of lines and overall width on paper depending on scale.
I've attached the object for reference ... if you place it on a layout sheet at scale 1:100 and 1:20 you will see what I mean.
I amended this part of code (based on cookbook) from:
TEXTBLOCK "AC_TEXTBLOCK_2" A*1000/GLOB_SCALE, 1, 0, 1, 1, 1,"para_head", "para_note"
(Usually I use A/1000*GLOB_SCALE ... this seems to be other way around??? I'm a little confused as to the logic.)
to:
TEXTBLOCK "AC_TEXTBLOCK_2" A, 1, 0, 1, 1, 1,"para_head", "para_note"
and it does the trick but then the width is 10 times less then actual 'A' dimension? but it keeps it the same width and number of lines at all scales.
I also can manage to keep my hotspot in the correct place and keeping it adjustable.
I seem to have lost myself in this code??? Help would be much appreciated. The object itself is quite useful as is, I just really want to fix this one problem.
Thanks for your help as always.
ArchiCAD 10 - 25 | Windows 10
ARCHIcreate | Perth, Western Australia
archicad solutions | content creation | training | software implementation