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

automatic texts in object

Anonymous
Not applicable
Hi,

Is there a way to make title block object so, that
it will not list drawings done in 1:1 scale?

Problem occurs when adding a 1:1 scale drawing
(like automatic drawing list) to the layout.
Automatic text lists all scales which can be
confusing when inserted lists and tables are not "real" drawings.

So is it possible to split <DRAWINGSCALE> parameter so that
if scale is for example 1:1 object will not list it?

could u help me with the code plz?
13 REPLIES 13
Anonymous
Not applicable
cejava1 wrote:
With autotext <drawingscale> it works, but long string has to be divided to many rows of text.
Use the PARAGRAPH and RICHTEXT functions to get automatic word wrap.
Anonymous
Not applicable
Thanks again for trying to help Matt,
but its not working atleast with AC10 1176 FIN version.

Its not wrapping the text or not wrapping as it should.
It can for instance split the word from middle,
which simple autotext is not doing.

To clear my intentions I put some code from my object.
Its in metric system, I'm sorry, put please try and put
it to the layout and give a very long name to a drawing.


!text width scale is working: 
    scnimip=1 
!aligment full justification is not working: 
    alig = 4 
!This line is representing a titleblock line, which is messing the word wrap. 
    Line2 0,0.05,0.3,0.05 
 
!if piirnimi = "Piirustusten nimet" then  
		paragraph		"AC_PRG_56"     alig, 0, 0, 0, 1 
		"<DRAWINGNAME>" 
		endparagraph 
		textblock	"AC_TEXTBLOCK_56" 60, 1, 0, scnimip, 1, 1,  
		"AC_PRG_56" 
		richtext2		0.09423, 0.05, "AC_TEXTBLOCK_56" 
!endif 
!pen ac_huomiopen 
!if piirnimi = "Planssin nimi" then  
!		paragraph		"AC_PRG_1"      alig, 0, 0, 0, 1 
!		"<LAYOUTNAME>" 
!		endparagraph 
!		textblock	"AC_TEXTBLOCK_1" 60, 1, 0, scnimip, 1, 1,  
!		"AC_PRG_1" 
!		richtext2	0.09423, 0.05, "AC_TEXTBLOCK_1" 
!endif 
!if piirnimi = "Alaryhmän nimi+Planssin nimi" then  
!		paragraph		"AC_PRG_71"      alig, 0, 0, 0, 1 
!		"<SUBSETNAME> <LAYOUTNAME>" 
!		endparagraph 
!		textblock	"AC_TEXTBLOCK_71" 60, 1, 0, scnimip, 1, 1,  
!		"AC_PRG_71" 
!		richtext2	0.09423, 0.05, "AC_TEXTBLOCK_71" 
!endif 
!if piirnimi = "Muu nimi" then 
!		text2 0.09423, 0.0507, omanimi 
!endif 
!pen         ac_textpen
Anonymous
Not applicable
I still wanted to add that I noticed autotext is wrapping just fine in layout if it is in object and placed in master layout or in model space.

Then it "calculates" rows and wrapping is working, but when object is placed directly to the layout, it wont be wrapped.

Thats really awkward because it would be nice have titleblock object in layout and therefore be able to control different variations.
Anonymous
Not applicable
I'm sorry I haven't time to test your code, but it looks OK from what I recall (the PARAGRAPH > TEXTBLOCK > RICHTEXT method is a bit torturous).

I have used it for title types and it has wrapped just fine but not for general purpose parts placed on the layouts. Perhaps there is a scaling issue since the layout is at 1:1.