Select to view content in your preferred language

Importing rule

2067
4
Jump to solution
12-28-2016 08:34 AM
VickyBEUTEL
Deactivated User

Hello   

First of all iam new to this so ive made a rule on my own but i want to do some vegetation on a place ( were i want to in my code its place between two buildings in my rule), so i want to import the vegetation rule (The one from Esri )  into my own code and to grow vegetation on a particular place can some one explain me the steps of importing the rule should i copy paste attr or?

Thanks in advance i hope will get some answers soon.

0 Kudos
1 Solution

Accepted Solutions
LR
by
Frequent Contributor

The help tends to be pretty helpful.. Importing Rules From Other CGA Files 

Basically

import ImportedRule: "path/rule.cga"

then

YourRule --> ImportedRule.Lot (or any other rule found within)

View solution in original post

4 Replies
VickyBEUTEL
Deactivated User

So much of this so called "Community" seems like the Esri stuff aint bother much around nowadays

0 Kudos
LR
by
Frequent Contributor

The help tends to be pretty helpful.. Importing Rules From Other CGA Files 

Basically

import ImportedRule: "path/rule.cga"

then

YourRule --> ImportedRule.Lot (or any other rule found within)

BilalMustafa
Occasional Contributor

L R

thank you for your tips and help it is really helpful 

 trying to modeling each building facades by using facade wizard im not sure if it possible or not to do so then import the CGA facade rule into main rule such as the following e.g 

version "2018.1"

import f1:"/Facade_Testing/rules/gen_Facade_يافا 69_cropped_cropped.cga"
import f2: "/Facade_Testing/rules/facade2.cga"

is this structure right or not; if not how can i modified the following rule to match my goal if it is possible  

lot-->
extrude (height)

comp(f) {0:AA |1:BB |2:CC | 3:DD |4:EE| 5:FF|6:GG |7:HH}

CC-->
comp(f) { 2 :gen_Facade_AdvancedFacade.Facade }

i'm trying to repeat  the above red code to the other polygon indices with different "facade wizard rules"

 

attr height=10

lot-->
extrude (height) mass

mass--> comp(f) {0:AA |1:BB |2:CC | 3:DD |4:EE| 5:FF|6:GG |7:HH }

f1.CC--> f1.facade /////this is one of my attempt to reach the solution\\\\\\  

i'm a bit confused and new to CE & coding if you have more tips or help i would be more than thankful. 

0 Kudos
BilalMustafa
Occasional Contributor

Thank you guys i the engine is strated!!   i found it 

0 Kudos