|
POST
|
Note that the rule only counts whether the lot has two or more edges that border a street. This means that it won't work in some cases such as when a lot borders streets on two opposite sides but isn't a corner lot.
... View more
09-02-2019
05:45 AM
|
0
|
0
|
4498
|
|
POST
|
See other post: https://community.esri.com/thread/38802?commentID=227207#comment-875080
... View more
09-02-2019
04:48 AM
|
0
|
0
|
2037
|
|
POST
|
The rule works for me if I apply it to dynamic lot shapes generated inside street blocks. Can you be more specific about the problem? Do you see the streetWidth attr as a rule attribute in the Inspector? Does rule attribute's value match the value of the object attribute streetWidth? What is the exact code that returns 0? What prints if you insert print(streetWidth(0)) as the first line of the Lot rule? What is your input shape?
... View more
09-02-2019
04:47 AM
|
0
|
0
|
4498
|
|
POST
|
f1.Garden doesn't exist because ScatterRule02.cga does not have a rule called Garden. f1 refers to the imported rule file. After the . you want to put the name of the rule you want to call. You want to use f1.Lot instead because Lot is the name of the rule in ScatterRule02.cga that does the scattering.
... View more
09-02-2019
02:32 AM
|
2
|
1
|
1067
|
|
POST
|
Rule1.Plantation doesn't exist because ScatterRule01.cga does not have a rule called Plantation. If you hover the mouse over the compile error on this line, you will probably see that the compiler can't find a rule with this name. You want to use Rule1.Lot instead because Lot is the name of the rule in ScatterRule01.cga that does the scattering.
... View more
09-02-2019
01:30 AM
|
1
|
0
|
3488
|
|
POST
|
Grayed out attributes in the Inspector means the attributes are not being used during generation. To use MaxHeight along with the other attributes under the group Custom Mix, set Mix = Custom. The Plant_Distributor picks species of plants and inserts them with a random height within the typical height range of the species. With this rule, you can't scale the height of the models using the attributes in the Inspector. The MinHeight and MaxHeight attributes set up a range of valid heights to filter which species are allowed to be inserted. So, if you set MinHeight to 10m, then you won't get small bushes that are at most 4m tall. If you want to scale the models, then I would suggest writing a simple rule that scatters points using scatter(), inserts random models from the Vegetation library using i(), and scales them according to an attribute.
... View more
08-29-2019
07:32 AM
|
0
|
2
|
3488
|
|
POST
|
No, sorry, it is currently not possible to copy UV sets from one set to another. More details are in this other post. https://community.esri.com/message/780834-re-dirt-map-on-street-network?commentID=780834#comment-780834
... View more
08-28-2019
05:25 AM
|
0
|
1
|
1298
|
|
POST
|
The Plant_Distributor uses the Plant_Loader, so you can access the Plant_Loader's attributes as well. In the Inspector, click to expand the imported rule, and set Representation = Schematic.
... View more
08-28-2019
03:06 AM
|
1
|
0
|
3488
|
|
POST
|
Looks like a precision problem. We are looking into it. Thanks for reporting this.
... View more
08-13-2019
08:53 AM
|
1
|
0
|
1593
|
|
POST
|
It looks like your asset could be resized with s(). assetInfo() might also be useful to know the original asset's dimensions. s operation—CGA | ArcGIS assetInfo function—CGA | ArcGIS Alternatively, you could try to use the rule ESRI.lib/rules/Fences/Fence_On_Graph.cga and tell it to use your own assets for the pole and powerline. This rule file can be applied to street shapes. I imagine you would want something similar to the Rope_Fence style.
... View more
08-12-2019
04:39 AM
|
0
|
0
|
1351
|
|
POST
|
In the case statement, NMLY is being compared to a string "1", but NMLY is a float. Take away the quotation marks around "1" and "2", and do the logical comparison to floats 1 and 2 like this: attr NMLY = 0
zoneColor =
case NMLY == 1 :
"#ff0000"
case NMLY == 2 :
"#00ff00"
else:
"#0000ff"
... View more
08-09-2019
06:56 AM
|
0
|
0
|
929
|
|
POST
|
Generally speaking, in the rule that creates the building, you could use occlusion testing to test whether the building overlaps anything else in the scene. With the International City rule, you could change the attributes on the shapes to change the height of the building (Type, HeightFactor), or you could change the code to define different ranges for building heights.
... View more
08-09-2019
06:51 AM
|
0
|
0
|
729
|
|
POST
|
The problem is that when Building is recursively called, GFAR is not recalculated. It is initialized to a value (depending on the seed), and then it stays that same value as the rules are derived. This creates an endless recursion. Attributes are initialized at the beginning and don't change during rule derivation (unless they are specifically set). Changing the seedian with python won't make GFAR change its value during rule derivation. I would suggest initializing all attributes to valid values independent of the rule derivation. Perhaps you can initialize GFAR and BuildingX to values in the desired ranges and calculate the appropriate BuildingZ value from them. It is also possible to use recursive functions to define your attributes before any rule derivation happens.
... View more
08-09-2019
06:26 AM
|
1
|
1
|
1116
|
|
POST
|
Sorry, I don't think it's possible to create such a roof with the current cga roof operations.
... View more
08-09-2019
05:18 AM
|
0
|
0
|
1321
|
|
POST
|
This is unexpected behavior, and I suspect it might be due to precision (or maybe even non-planarity). I can't reproduce it though. Would you be able to post your scene file please?
... View more
08-09-2019
02:19 AM
|
1
|
1
|
1593
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-14-2022 07:18 AM | |
| 1 | 06-22-2020 04:54 AM | |
| 1 | 02-17-2020 03:10 AM | |
| 1 | 07-03-2023 03:37 AM | |
| 1 | 06-07-2023 05:26 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-19-2023
12:40 PM
|