2009-02-05 05:19 AM
2009-02-05 07:41 AM
2009-02-05 10:05 AM
ystring = 'Y-' + texty + 'kN' TEXT2 0,0, ystring
2009-02-05 03:59 PM
2009-02-06 01:00 AM
vistasp wrote:cheers for the link.. ill have a read through it
A simple object like this is a great way to get your feet wet with GDL. For starters, you might like the "Introduction to Object Making" by David Nicholson Cole. That - and his "GDL Cookbook 4" can be downloaded from ArchiCad East.
rocorona wrote:
What are the variables in the "##" text?
- You want it to be RED, as shown, or same color (and size and font) of the other text?
- Has it a fixed length (i.e. 2 digit) or can be any text?
What are your knowledge of GDL? did you script the basis object, or you just saved some plan element "as GDL"?
Strings in GDL can be combined simply with the "+" operator. If you create in your library part a text parameter called "texty", for example:
ystring = 'Y-' + texty + 'kN' TEXT2 0,0, ystring
If the parameter has a value of "00" you will get Y-00kN
Hope this can be a good starting point for you.
David wrote:i tryed looking at a few, but all the ones i found were editable 3d objects and couldnt really tell what was what.. ill have another look for a editable 2d item.
GeNOS:
You can also look at some of he simpler 2D symbol objects in the ArchiCAD Library (for instance, in the US Library "Revision Indicator_NCS 12") to see an example of how this can be done.
David
2009-02-06 01:12 AM
rocorona wrote:because i just saved it form AC as a GDL object it wouldnt know that the black text was actually text tho.. correcT?
What are the variables in the "##" text?
- You want it to be RED, as shown, or same color (and size and font) of the other text?
- Has it a fixed length (i.e. 2 digit) or can be any text?
What are your knowledge of GDL? did you script the basis object, or you just saved some plan element "as GDL"?
Strings in GDL can be combined simply with the "+" operator. If you create in your library part a text parameter called "texty", for example:
ystring = 'Y-' + texty + 'kN' TEXT2 0,0, ystring
If the parameter has a value of "00" you will get Y-00kN
Hope this can be a good starting point for you.
2009-02-06 01:41 AM
GeNOS wrote:No, AC would not treat it as normal text, as produced using the text tool.
because i just saved it form AC as a GDL object it wouldnt know that the black text was actually text tho.. correcT?
2009-02-06 02:24 AM
2009-02-06 02:37 AM
2009-02-06 02:48 AM