Hello,
i have two simple cga questions.
how i can place more balconies directly under the 1floor windows and add a enabled/diabled attribute for them?
regards
Dario
You add a reference to a balcony rule in the same bit that references the window generation and use a case to control its generation, like this:
attr BalconyEnabled <SPAN class="operator token">=</SPAN> true Lot <SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN> Window Balcony Window <SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> Balcony <SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN> case BalconyEnabled <SPAN class="operator token">==</SPAN> true<SPAN class="punctuation token">:</SPAN> RuleForBalconyCreation <SPAN class="keyword token">else</SPAN><SPAN class="punctuation token">:</SPAN> NIL RuleForBalconyCreation <SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Thank you, for the balcony the switch works fine but fot the details such as the red top ornament it wont. it just disapeared with this rule..
attr OrnamentTopEnabled = true
WindowOrnamentTop -->case OrnamentTopEnabled == true: WindowOrnamentTop
s('1.2, 0.4, 0.3) center(x) i(ornament1) color("#ff0000")
else: NIL
That rule calls itself when the case is true, infinitely.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.