ESRI - Arcmap 帮助创建一个按钮,用于填充所选要素的当前日期

发布于 2024-09-19 05:55:14 字数 297 浏览 2 评论 0原文

我想在 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.

link text

I appreciate any suggestions on how to accomplish this.
Thanks,
Frank

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

末蓝 2024-09-26 05:55:49

我认为这种行为可能与脚本中编辑操作的管理有关。

您启动的任何编辑操作都必须停止(完成)或中止。如果尚未编辑任何要素,则需要中止编辑操作。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文