ESRI - Arcmap 帮助创建一个按钮,用于填充所选要素的当前日期
我想在 Arcmap 中创建一个自定义工具或按钮,以编程方式填充图层所选要素的许多属性。 为了简单起见,假设我的 Arcmap 项目只有一个 SDE 图层,并且我想填充 Date_Created 字段。 正在编辑的 SDE 层已进行版本控制。
我有一些部分有效的代码,但是在更新所选记录后,该图层无法再绘制,表明它处于关闭状态。
我感谢任何有关如何实现此目标的建议。 谢谢, 坦率
I would like to create a custom tool or button in Arcmap that programmatically fills in a number of attributes of selected features for a layer.
To keep things simple, lets say my Arcmap project only has one SDE layer, and I'd like to populate the Date_Created field.
The SDE layer being edited is versioned.
I have some code that partially works, but after the selected records are updated, the layer can no longer draw stating it's in a closed State.
I appreciate any suggestions on how to accomplish this.
Thanks,
Frank
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这种行为可能与脚本中编辑操作的管理有关。
您启动的任何编辑操作都必须停止(完成)或中止。如果尚未编辑任何要素,则需要中止编辑操作。
I think that this behavior may be related to management of the edit operations in your script.
Any edit operations that you start must either be stopped (completed) or aborted. If no features have been edited, the edit operation needs to be aborted.