|
POST
|
Hey Tess, Try using relative path from your assets folder rather than an absolute path. "streets/hydrant.obj" as an example. However, if you want to get fancy, use the @File annotation on your attribute so you could pick between different KINDS of fire hydrants if you have another obj (or other similar models). David
... View more
10-20-2015
02:58 PM
|
0
|
5
|
1627
|
|
DOC
|
Hey Aida, I am not entirely sure what the issue is, but I will say I usually don't use import zipped project. I usually do one of two things. 1. Unzip the folder, grab Complete_Street.cga from the rules folder, replace the rule in a project you already have the rule. The assets folder has not changed, only the code. 2. Unzip the folder, and try File->Import-> Import Existing Project into Workspace- go into the directory one level and import the folder inside (I will work on fixing this by making it not a nested directory). I think the reason why Import Zipped Project does not work is because the project folder is technically one level in. I will work on fixing this. David
... View more
10-15-2015
07:18 AM
|
0
|
0
|
42755
|
|
POST
|
Hey Aida, You need to copy the street segment (select one segment) before you edit the nodes (because then it is a copy of the street segment that is not connected to the other streets). When you copy the segment you want to make a curb extension, you must edit it immediately after it is copied, otherwise it gets hard to select the copy over the old segment. I would suggest keeping the network on visually, it helps with selections. David
... View more
10-13-2015
10:45 PM
|
0
|
1
|
4125
|
|
POST
|
Here Aida, Step 1: Set up street into desired design. Step 2: Select the segment that will get a curb extension. Hit Control+C, and copy the segment layer. Step 3: WHILE the segment is selected, hit the edit button to drag its end nodes away from the connecting streets. Step 4: Delete the old segment. Step 5: Draw two new connecting segments to the intersections from before. Step 6: Edit rule and shape attributes to get desired street curb extension. At the very least you must reduce the streetWidth shape attributes by the same the amount you increase the sidewalk width attributes. Hope this helps. David
... View more
10-13-2015
09:57 PM
|
1
|
3
|
4124
|
|
POST
|
Hey Ernesto, I might provide a rough template here if you want to look at code. Proportional Line Split I realize this thread is old, so I am sure you might have solved the problem. A great Arcpy Cafe post is here those for those who find this post. Split into equal length features | ArcPy Café David PS: If you have lines that do not overlap, the method suggested by ESRI staff is the best way to do this without scripting. In the case of overlapping lines (network analyst routes), the script I have creates a descent template. I have used this script to help with animations (by segmenting routes into smaller portions).
... View more
10-13-2015
07:47 PM
|
1
|
0
|
1209
|
|
POST
|
Hey Aida, So this is something I have been playing around with. Ideally, GIS data would be imported and then segmented based on using functions like segment along line or splitting at a buffers end to create the points where sidewalk width/street width would change. When I need to do it manually what I usually do is pull the nodes of a copy of the segment* connecting to other streets away the distance I want to be, then I draw new segments (starting at the middle street to allow the main street to inherit its attributes) to connect to the rest of the network. Let me know if this helps or if I should make a picture example. The roof code looks good to me! Glad you got a working solution. 😃 Also, just keep in mind that that CityEngine uses CGA, which is pretty different from python and might be a source of confusion. David Edited: I forgot to mention I make a copy of the "curb extension" segment. Then reconnect the copy. If you don't copy it, the nodes will move the connecting streets.
... View more
10-13-2015
07:46 PM
|
0
|
5
|
4124
|
|
POST
|
I have been using inspections so far for sure. That is where I got my first crack at the text box that was commented out before. However, I think I will do more reading into the links you sent to get a better idea of what to look for or try (like persisting changes in chrome perhaps). Thanks! The video link goes to a "history" location, not an actual video, can you relink it?
... View more
10-08-2015
04:08 PM
|
0
|
1
|
4403
|
|
POST
|
Hey Rickey, First of thanks for the help and suggestions. Can you give me some understanding on how you determine which properties to query? For example, I was able to get what I wanted by changing the sizer width, but the content pane height (and the parent adjusted). With no code I get: With the following code I get close: //query('.dijitTextBox',this.map.infoWindow.domNode).style({width:"60px",height:"60px"});
query(".templatePicker", this.domNode).style('height', height - 50 + 'px');
query(".grid", this.domNode).style('height', height - 60 + 'px');
query(".dojoxGridView", this.domNode).style('height', height - 60 + 'px');
query('.contentPane', this.map.infoWindow.domNode).style({height:"150px"});
query('.sizer', this.map.infoWindow.domNode).style({ width:"450px"});
query(".dojoxGridScrollbox", this.domNode).style('height', height - 60 + 'px');
query(".dojoxGridRowTable", this.domNode).style('width', width - 32 + 'px'); What I would want now is to access the gray text box and edit it so that is both wider and taller. Do you know what property does that specifically? Guidance on adding buttons would be appreciated too. Thanks for the help so far.
... View more
10-08-2015
03:48 PM
|
0
|
14
|
4403
|
|
POST
|
Hey Rickey, I am editing the app on my wwwroot folder, outside of app builder. I am trying to edit the app itself rather than the WAP code itself. After some steps following the advice of those listed above, I tried incognito and clearing my cache to see the change. I did make a change near line 223 here: query('.sizer', this.map.infoWindow.domNode).style({ height:"100px"}); The result was that the overall pop up size changed, but the content did not resize with it. I think I need to access the base CSS/or query other aspects of the popup.
... View more
10-08-2015
11:28 AM
|
0
|
16
|
4403
|
|
POST
|
Thank Rickey, I will give this a shot. I tried to search for previous threads and I am surprised I did not get this one to come up. I have tried different edits before, but when I refresh the page nothing seems to change. Do you know what can causes edits to not reveal themselves sometimes. I have tried cleaning out the cache, but similar results.
... View more
10-08-2015
09:47 AM
|
0
|
19
|
4403
|
|
POST
|
Hi All, I have been slowly trying to pick up the ArcGIS API and Javascript, and I want to make what seems like should be an easy CSS edit to the infoWindow in web app builder. I was curious if someone could give me an understanding of where within the edit widget (or the layer list widget?) the relevant JS/CSS files might be. My goal is to make the pop up for creating features with the edit widget: 1. Larger in terms of size for the textArea. 2. Create a submit button rather than hitting the X. to close the widget. I have been experimenting a bit with this, but I think part of the reason I can't see changes might just be because of cache or other issues. I would appreciate any guidance if anyone has any about where to look. David
... View more
10-07-2015
04:24 PM
|
0
|
24
|
16951
|
|
POST
|
I am having a similar problem, except with edits to the edit widgets popup. Changes don't necessarily reveal themselves. itsomes works better when I view the results in another browser or use "incognito".
... View more
10-07-2015
04:15 PM
|
0
|
0
|
469
|
|
POST
|
As Marcos said, you chang the App ID in signininfo.json or actually delete it and restart app builder. It is explained on the FAQs here too: FAQs—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers
... View more
10-05-2015
04:49 PM
|
0
|
0
|
3138
|
|
DOC
|
So this was just a play tool idea I had, but I ultimately was not pleased with how I ultimately handled the inputs. The input is literally text, and I thought about remap tables or other objects but was not sure it was much better. I actually would like input or advice on an appropriate input past the solution I made. Code is revealed in the the script folder, but the main thing I have been playing with is functions to assist in tool creation such as ArcPrint and the get field index functions which I used with DA cursors a little bit. If anyone has any good patterns for indexing by field name with DA cursors I would love to hear it. I am no longer supporting this tool, so it is really provided on this page as is. If there is a strong desire for an update please comment below. Summary This scripting tool is designed to take in multiple field-alias pairs to rename multiple fields simultaneously. This tool is intended to make backend data preparation for web maps where revealed names should be understandable to the application user or for back-end data management for formatted or frequently updated data. If you have standard data, you can save the run for this tool and apply it to applicable areas. Usage This tool is really designed to help make renaming field aliases for data management or web display purposes potentially easier, specifically formatted data that might be used again (census data, private data, etc) or data that is updated on a regular basis.
... View more
10-03-2015
12:14 AM
|
0
|
6
|
7879
|
|
DOC
|
Oh I forgot about making styles. Before it had stability issues, but I think i will give that a shot again. Thanks.
... View more
10-01-2015
04:42 PM
|
0
|
0
|
42754
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-07-2024 02:16 PM | |
| 1 | 05-15-2022 12:21 PM | |
| 1 | 08-27-2016 11:03 AM | |
| 1 | 12-19-2021 01:10 PM | |
| 1 | 06-12-2020 03:29 PM |