We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2005-01-05 10:34 PM
2005-01-05 11:06 PM
2005-01-06 03:32 AM
Weston wrote:Library parts can ask which zones they are in, and they can be in any number of overlapping zones at that. The only zones that are retrieved by the zone request are the visible ones. You can take advantage of that.
I am trying to create a library part that shows lines and text when a "text layer" is turned on in the layer settings, but only show the lines when the "text layer" is turned off.
dim strParams[] nParamCount=request ("Zone_relations", "",strParams) nZoneCount = nParamCount / 4 text2 0, 0, "zone count="+str(nZoneCount,3,0) for nRow=1 to nParamCount add2 0, -0.2 text2 0, 0, strParams[nRow] next nRowand instead of displaying the values of the parameters, iterate through them (in steps of 4) to see if your special zone name is present ... if so , then you know that the text layer is on, if not, you know that it is off.
2005-01-06 06:31 AM
2005-01-09 09:41 AM
Aussie wrote:Sure - use the global variable :
I know is not the same but often you dont want to see the text when the scale gets too small so you library part can be scripted to not show text at certain scales
2005-02-04 07:27 PM