形状属性,引用文档属性的属性不会在文档属性更改时进行更新

发布于 2025-01-26 10:48:38 字数 586 浏览 0 评论 0原文

我有以下情况:

我在文档级别定义了一个用户属性(“ user.docprop”)。我想在形状属性单元格(“ prop.someprop”)中引用此属性,并将形状属性显示为形状上的文本。

这正在起作用(我将字段插入指向我的形状数据的形状文本中)。文档属性的值正确显示在形状上。

当我更改文档属性时,形状的文本会更新。惊人的!

但是,当我拥有多个页面的形状与以前相同的形状时,此(更改文档属性之后的更新文本)不再起作用。现在,当我在文档表上更改属性时,只有这些形状被更新了,这些形状放在我之前浏览的页面上(自打开图纸以来)。在所有其他页面上,形状文本将显示文档属性的旧值。只有当我通过按F2直接进入ShapeSheet中的单元格时,并随着输入文本离开,才会更新。

我在形状属性中尝试了几个公式:

  • = thedoc!user.docprop
  • = setAtref(thedoc!user.docprop)
  • = setAtref(thedoc!user.docprop,setAtrefeval(setAtrefexpr()))

我找不到方法)迫使公式的重新计算。我在这里想念什么?

I have the following case:

I defined a user property ("User.DocProp") at the documentsheet level. I want to reference this property in a shape property cell ("Prop.SomeProp") and display the shape property as text on the shape.

This is working (I inserted a field into the shape text which points to my shape data). The value of the document property is correctly displayed on the shape.

And when I change the document property the shape's text gets updated. Awesome!

BUT this (update of the shape's text after change of the document property) doesn't work anymore when I have multiple pages each with the same kind of shape as before. When I now change the property on the documentsheet only those shapes get updated which lay on pages that I have navigated to before (since I opened the drawing). On all other pages the shape text will show the old value of the document property. Only when I directly enter the cell in the shapesheet by pressing F2 and leave with ENTER the text will get updated.

I tried several formulas in the shape property with no avail:

  • =TheDoc!User.DocProp
  • =SETATREF(TheDoc!User.DocProp)
  • =SETATREF(TheDoc!User.DocProp,SETATREFEVAL(SETATREFEXPR()))

I can't find a method to force recalculation of formulas neither. What am I missing here?

Screenshot from test drawing

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文