使用产品:supermap idesktop 11i,操作系统:win10 x64
问题详细描述:在三维场景中,使用GeoStyle3D中setLineSymbolID方法不生效,我已经正确在场景中获取到三维线段图层,我把代码截图放在下边,不知代码是否写的有误
IForm form = Application.getActiveApplication().getActiveForm();
IFormScene formScene = (IFormScene)form;
Layer3D[] activeLayer3Ds = formScene.getActiveLayer3Ds();
GeoStyle3D geoStyle3D = Layer3DUtilities.getGeoStyle3D(activeLayer3Ds[0]);
geoStyle3D.setLineSymbolID(962048);
Layer3D activeLayer3D = activeLayer3Ds[0];
Layer3DUtilities.setGeoStyle3D(activeLayer3D,geoStyle3D);
System.out.println(activeLayer3D.getName());
activeLayer3D.updateData();
formScene.getSceneControl().getScene().refresh();