|
POST
|
Seems like CityEngine writes out a wrong world file not taking into account the center of the first pixel. Reference: World files for raster datasets—ArcGIS Pro | ArcGIS Desktop I've filed a bug report. As a workaround the offset to the pixel center needs to be corrected manually: CityEngine world file: 0.500000000000000
0.000000000000000
0.000000000000000
-0.500000000000000
300000.000000000000000
5001000.000000000000000 Corrected: 0.500000000000000
0.000000000000000
0.000000000000000
-0.500000000000000
300000.250000000000000
5000999.750000000000000
... View more
06-07-2017
06:09 AM
|
2
|
2
|
1125
|
|
POST
|
Q1: Is there a way to choose multiple addresses? A1: You could add a second combo widget and set the names again: from scripting import *
import org.eclipse.swt as swt
import org.eclipse.swt.widgets as widgets
import org.eclipse.swt.layout as layout
# get a CityEngine instance
ce = CE()
if __name__ == '__main__':
result = None
display = widgets.Display()
shell = widgets.Shell(display)
shell.pack()
shell.open()
dialog = widgets.Shell(shell, swt.SWT.DIALOG_TRIM | swt.SWT.APPLICATION_MODAL)
dialog.setLayout(layout.RowLayout())
dialog.setText("Address Search")
names = []
OIDs = []
sceneShapes = ce.getObjectsFrom(ce.scene, ce.isShape)
for s in sceneShapes:
name = ce.getAttribute(s, 'name')
if not (name == None) | (name == ""):
names.append(name)
OIDs.append(ce.getOID(s))
searchName = widgets.Combo(dialog, swt.SWT.READ_ONLY)
searchName.setItems(names)
searchName2 = widgets.Combo(dialog, swt.SWT.READ_ONLY)
searchName2.setItems(names)
ok = widgets.Button(dialog, swt.SWT.PUSH)
ok.setText ("OK")
cancel = widgets.Button(dialog, swt.SWT.PUSH);
cancel.setText("Cancel");
class MyListener(widgets.Listener):
def handleEvent(self, event):
global result, result2
if event.widget == ok:
result = searchName.getSelectionIndex()
result2 = searchName2.getSelectionIndex()
else:
result = -1
dialog.close()
listener = MyListener()
ok.addListener(swt.SWT.Selection, listener)
cancel.addListener(swt.SWT.Selection, listener)
dialog.pack()
dialog.open()
while not dialog.isDisposed():
if not display.readAndDispatch():
display.sleep ()
display.dispose()
if result>-1:
print "Selection:", names[result], names[result2]
ce.setSelection(ce.findByOID(OIDs[result]))
if result2>-1:
ce.setSelection([ce.findByOID(OIDs[result]), ce.findByOID(OIDs[result2])])
views = ce.getObjectsFrom(ce.get3DViews())
views[0].frame(ce.selection()) for more help on SWT widgets please visit: SWT Widgets Q2: Is there a way to display the addresses in numerical order? A2: "names" is a list of of strings please refer Python data structure sort list alphabetically - Stack Overflow on how to sort such lists. You probably also want to cut away the street numbers prior to sorting: python - How to split a string into a list? - Stack Overflow
... View more
06-02-2017
10:00 AM
|
0
|
1
|
3014
|
|
POST
|
GeoNet users can make CityEngine feature requests on ArcGIS Ideas - CityEngine Other users with the same request can vote on it and add comments. This section is moderated by the CityEngine development team.
... View more
05-30-2017
07:56 AM
|
0
|
0
|
691
|
|
POST
|
Unfortunately not, currently ArcGIS online doesn’t have a way to hide the download button on different item types. There is delete protection offered which will hide the delete button but apps and files will always show the download button. Please add your request to ArcGIS Ideas - ArcGIS Online
... View more
05-30-2017
07:34 AM
|
0
|
4
|
1391
|
|
POST
|
Update: Sadly, I have to confirm that there is a bug in the spacial envelope. Any entered values are not set. The development team is working on a fix. At this point only the SQL queries can be used.
... View more
05-30-2017
07:15 AM
|
1
|
1
|
2918
|
|
POST
|
Here is an example of how to write a basic address search with GUI in Python: from scripting import *
import org.eclipse.swt as swt
import org.eclipse.swt.widgets as widgets
import org.eclipse.swt.layout.RowLayout as layout
# get a CityEngine instance
ce = CE()
if __name__ == '__main__':
result = None
display = widgets.Display()
shell = widgets.Shell(display)
shell.pack()
shell.open()
dialog = widgets.Shell(shell, swt.SWT.DIALOG_TRIM | swt.SWT.APPLICATION_MODAL)
dialog.setLayout(layout())
dialog.setText("Address Search")
names = []
OIDs = []
sceneShapes = ce.getObjectsFrom(ce.scene, ce.isShape)
for s in sceneShapes:
name = ce.getAttribute(s, 'name')
if not (name == None) | (name == ""):
names.append(name)
OIDs.append(ce.getOID(s))
searchName = widgets.Combo(dialog, swt.SWT.READ_ONLY)
searchName.setItems(names)
ok = widgets.Button(dialog, swt.SWT.PUSH)
ok.setText ("OK")
cancel = widgets.Button(dialog, swt.SWT.PUSH);
cancel.setText("Cancel");
class MyListener(widgets.Listener):
def handleEvent(self, event):
global result
if event.widget == ok:
result = searchName.getSelectionIndex()
else:
result = -1
dialog.close()
listener = MyListener()
ok.addListener(swt.SWT.Selection, listener)
cancel.addListener(swt.SWT.Selection, listener)
dialog.pack()
dialog.open()
while not dialog.isDisposed():
if not display.readAndDispatch():
display.sleep ()
display.dispose()
if result>-1:
print "Selection:", names[result]
ce.setSelection(ce.findByOID(OIDs[result]))
views = ce.getObjectsFrom(ce.get3DViews())
views[0].frame(ce.selection()) You can add this script as a shortcut to CityEngine
... View more
05-29-2017
11:40 AM
|
0
|
1
|
3014
|
|
POST
|
CityEngine 2015.2 licenses won't work for CityEngine 2016.1 Go to https://my.esri.com to check if you have a license for 2016.1 If not, please contact your ESRI sales representative. You can also test this version in a free trial: Esri CityEngine | Try CityEngine Free
... View more
05-29-2017
10:29 AM
|
0
|
0
|
2329
|
|
POST
|
Thank you for the questions. For SHP files no boundaries can be defined on import. This option is only available for FileGDBs: Block/Lot Shapes can only be created within a loop in the graph network. If there is an error in the graph network (marked red), it has to be resolved first, before a block is generated. This task can be automated with the Cleanup Graph Networks tool.
... View more
05-29-2017
10:08 AM
|
2
|
3
|
1911
|
|
POST
|
Thank you for the report. Actually it is the other way around - 2016.1 does contain may Bugfixes. CGA Changelog I'm not quite sure if the issue has been resolved. If not, please try to delete the files in the /project/bin folder. This will recompile the binaries (*.cgb). Can you generate a RPK from your rule?
... View more
05-29-2017
09:17 AM
|
0
|
1
|
1439
|
|
POST
|
Thank you for reporting this issue. I can reproduce it and need to work with a developer on this. At this time it is unclear if it can be resolved by changing the command alone. I'll keep you posted.
... View more
05-29-2017
09:06 AM
|
1
|
2
|
1100
|
|
POST
|
Thank you for your report. Sorry to hear your trouble. There is an issue with saving proxy settings in CityEngine 2015.1 and 2016.0. It has been solved in the CityEngine 2016.1 version, please upgrade to this version.
... View more
05-23-2017
01:06 AM
|
0
|
0
|
2708
|
|
POST
|
Thank you for the question. In CityEngine point cloud or DSM analysis is not possible. Please use ArcGIS Pro for such workflows. CityEngine,  LiDAR,  building footprints and roof modelling The building height can stored as an attribute of the footprint shapes and imported into CityEngine to model buildings.
... View more
05-17-2017
04:11 AM
|
0
|
0
|
7220
|
|
POST
|
CityEngine Terrain Layer support a wide range of image formats. But there might be some, that are not yet supported. Please provide more information about: image format size bitdepth georeferencing
... View more
05-15-2017
09:22 AM
|
0
|
0
|
641
|
|
POST
|
Yes, there is an export option to define if Object Metadata is shared. The settings are None Attributes Reports All So in case you only want to share a subset of the attributes, there are 2 options: Prior to export, delete the unwanted attributes with a Python script: deleteAttribute(self, objects, name)
Deletes the named object attribute.
@param objects: The objects to delete the attribute from.
@param name: The attribute name. [str]
@note: # delete the attribute height from the currently selected objects
ce.deleteAttribute(ce.selection(), 'height') Us share "All" as export setting Link the desired object attributes to rule attributes and report them. Then only share "Reports".
... View more
05-15-2017
08:54 AM
|
0
|
0
|
519
|
|
POST
|
There is no workflow to crate analysis layers like in ArcGIS Pro. Find a geoprocessing tool—ArcGIS Pro | ArcGIS Desktop As mentioned by Cheryl Lau , in CityEngine you can define shape attributes based on layer attributes / content. Generally layers are used for visualization and as input data for the model generation.
... View more
05-15-2017
08:25 AM
|
1
|
0
|
620
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-15-2025 08:03 AM | |
| 1 | 10-16-2025 03:16 AM | |
| 3 | 10-20-2025 06:11 AM | |
| 1 | 04-19-2023 12:30 AM | |
| 1 | 02-27-2025 05:19 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|