|
POST
|
Ah dang, I should stop breaking up everything into faces first. This works great, on uneven surfaces as well. Piles sitting on steep hills can also be evened out by aligning the scope to the Y axis. Thanks!
... View more
07-27-2016
05:50 AM
|
0
|
0
|
1316
|
|
POST
|
It's unfortunately not bad cga - this is what I wrote for the test: version "2016.0"
@Range(0,50)
attr Extrude = 0
@StartRule
Lot -->
color(1,1,0)
extrude(Extrude) I noticed that when I hover over the slider that pops up, the CE window loses focus. When the value changes by moving the slider, it gains focus again, but apparently at the cost of the slider.. could this be a video card driver issue?
... View more
07-26-2016
02:49 AM
|
0
|
0
|
1110
|
|
POST
|
Well, that's odd. I did try this approach, except that I split the components first and used the top. As you can see in the blue pile, my NIL part is invisible (as I thought it should be, the documentation says it deletes the face). Unfortunately I might need to build on the plateau, and when I close the hole in your approach so I have a face to use, the pile pops back in (red pile). For now I (mostly) solved the problem by using setback(), extruding the "core", closing the hole in the setback ring, then creating a roof. The roof center is cut out by splitting the roof so its edges meet the core top, the correct values for this are conjured employing the dark arts of trigonometry. Unfortunately, this is not 1000000000% accurate, resulting in tiny gaps or (rarely) invisible faces. CGA for blue pile: version "2016.0"
@Range(1,50)
attr pAngle = 30
@StartRule
Lot -->
color(0,0,1)
roofHip(pAngle)
comp(f){top: Plateau}
Plateau -->
split(y){7: Side. | ~1: NIL}
... View more
07-26-2016
02:29 AM
|
0
|
1
|
1316
|
|
POST
|
I'm constructing a pile of dirt that changes shape depending on a couple of variables. It starts out pointy and then flattens out. Using the roofHip operation seems to work for this however I'm stuck with the flattening out part. I comp'd the roof in X direction but I can't flatten it out. It should look like the pile on the right. Any ideas?
... View more
07-25-2016
03:01 AM
|
0
|
4
|
2463
|
|
POST
|
Whenever I try to use it, it loses focus the moment I move it / the value changes. Then it disappears until I click on the value field again. (left 2015.2, right 2016).
... View more
07-25-2016
02:07 AM
|
0
|
5
|
2654
|
|
POST
|
You could read that table as csv with Python. If your lots have matching LotIDs, you could use ce.getAttribute to grab the shape's LotID and use that to match the loaded csv lines and then use ce.setAttribute to append them to the shapes. If you don't (meaning you only have your coordinates), you could instead use ce.getPosition to get the shape's position and (with some fiddling) use that as match attribute. However: - the values will probably not match perfectly so you'll have to use a search radius (yuck, math) - you probably have to convert between coordinate systems, as CE returns position in meters (yuck, much more math) Easy solution: do it with a desktop GIS system (there are some free ones too, like QGIS), or ask someone to do it for you. It would take like five minutes. All you'd have to do is convert the XY table data to a point shape and then do a spatial join with the lot polygons.
... View more
07-22-2016
10:18 AM
|
0
|
0
|
763
|
|
POST
|
Not that I know of, but you can pull out and write attributes with Python, so you could possibly send the values to Google Maps API, parse the response and then append the values to the shapes.
... View more
07-22-2016
04:04 AM
|
2
|
0
|
390
|
|
POST
|
Your CGA is correct - I'd suspect that the old program version's the culprit here. Maybe try color(1,0,0) instead of hex.
... View more
07-13-2016
03:41 AM
|
0
|
1
|
1137
|
|
POST
|
Ah, I see. Good luck fixing it. Do you maintain a public bug list? I couldn't find anything, or looked in the wrong places.
... View more
07-13-2016
03:30 AM
|
0
|
0
|
1892
|
|
POST
|
I'm having trouble getting gable roofs to work on square shapes. See attached images. In CE 2015.2, when you rotate the scope by 90°, the roof turns flat. If you rotate it by 270°, it turns into a pyramid! In CE 2016.0, the roof is messed up no matter what. This can be "fixed" by making the shape slightly irregular, but is that expected behavior? Seems rather strange.
... View more
07-12-2016
06:35 AM
|
0
|
10
|
3805
|
|
POST
|
You mean something like this? attr RowRow = 2
attr Expo = 2
attr HoldMe = 0
Lot -->
extrude(5)
color (1,1,0)
print("----------")
DoTheThing
DoTheThing -->
case Expo > 10: EndThis
else: GoGo
GoGo -->
print("Expo old: " + Expo)
set(HoldMe,pow(RowRow, Expo))
set(Expo, Expo+1)
print("Expo new: " + Expo)
print("Exponential!: " + HoldMe)
print("--")
DoTheThing
EndThis -->
#important
print(":D-/-<")
print(":D-\\-<")
print(":D-/-<")
print(":D-\\-<")
print(":D-/-<")
print(":D-\\-<")
print(":D-/-<")
print(":D-\\-<")
... View more
07-06-2016
08:25 AM
|
3
|
1
|
1359
|
|
POST
|
The AGP project is in a project folder on a drive and was created through the new project option within AGP. It looks like this: D:\AGP_Projects\myProject\ project.aprx vectordata.gdb raster_data (folder) file_folder (containing data I want to link) The manually set up ArcMap project is more or less the same: D:\AM_Projects\myProject\ project.mxd vectordata.gdb raster_data (folder) file_folder (containing data I want to link)
... View more
07-04-2016
06:26 AM
|
0
|
3
|
2200
|
|
POST
|
When linking files in ArcMap, I can simply point to a file folder in my (self-created) project structure, which creates the following link: file:///drive:/pathToMXD/fileFolder/file.extension However, when I try to do this in AGP, I get this link instead: file:///C:/Users/%USERNAME%/AppData/Local/Temp/ArcGISPro5924/fileFolder/file.extension Obviously, this is rather useless. Is there any way to replicate ArcMap's behavior?
... View more
07-04-2016
01:00 AM
|
0
|
5
|
4832
|
|
POST
|
CE uses Jython, version 2.7b21; at least the 2016.0 version. 2015 used 2.5.something, afaik. You don't need a specific module to do basic text file modification like that, Python can do it out of the box: from scripting import *
ce = CE()
rulename = "RuleToChange.cga"
if __name__ == '__main__':
#assuming the rule is in the rules folder
cgafile = ce.toFSPath("rules/"+rulename)
cga = open(cgafile, "r+")
cgacontent = cga.read()
cgacontent = cgacontent.replace("old", "new")
cga.seek(0)
cga.write(cgacontent)
cga.truncate()
cga.close()
print("done!") You could pack this in a function so you could do something like ChangeText(rulename, oldtext, newtext) from the console window as well.
... View more
07-01-2016
01:55 AM
|
3
|
1
|
1290
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-13-2018 02:05 AM | |
| 1 | 08-08-2016 06:59 AM | |
| 1 | 07-12-2018 09:08 AM | |
| 4 | 04-12-2019 08:20 AM | |
| 1 | 05-17-2016 03:25 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|