简体   繁体   English

标记绘图事件

[英]Event for Markup drawing

What is the name of event when we start drawing the markup(circle, arrow, rectangle etc.) on the shape when in edit mode?在编辑模式下,当我们开始在形状上绘制标记(圆形、箭头、矩形等)时,事件的名称是什么? And can we change the markup type in this event?我们可以更改此事件中的标记类型吗?

Problem is: When we are in edit mode and have selected specific shape and color to draw the markup, and in between if we select any markup, the drawing tool takes up that shape and color for the next markup to be drawn ignoring the markup type and color we selected earlier.问题是:当我们处于编辑模式并选择了特定的形状和颜色来绘制标记时,如果我们在 select 之间绘制任何标记,绘图工具将采用该形状和颜色来绘制下一个标记,而忽略标记类型和我们之前选择的颜色。 Is this the normal behavior.这是正常的行为吗。 Why does the drawing tool take up the configuration of the last selected markup and overrides the type we define through - new Autodesk.Viewing.Extensions.Markups.Core.EditModeCloud(markupExt);为什么绘图工具会占用最后选择的标记的配置并覆盖我们通过定义的类型 - new Autodesk.Viewing.Extensions.Markups.Core.EditModeCloud(markupExt); Thanks!谢谢!

That's an interesting question.这是一个有趣的问题。 I believe the current behavior of markups is as-designed because one would typically only select a markup if they wanted to move it around, scale it, etc. That's why in the current implementation, selecting a markup automatically enters its edit mode.我相信标记的当前行为是按设计的,因为如果他们想要移动标记、缩放标记等,通常只会 select 标记。这就是为什么在当前实现中,选择标记会自动进入其编辑模式。

At the same time I understand your view where if I already activate a specific edit mode, it seems strange that that edit mode would change after simply selecting another markup.同时,我理解您的观点,如果我已经激活了特定的编辑模式,那么在简单地选择另一个标记后该编辑模式会改变似乎很奇怪。

Let me bring this up with the engineering team, and in the meantime, I'd suggest using the Autodesk.Viewing.Extensions.Markups.Core.EVENT_EDITMODE_CHANGED event to detect a change to the edit mode, and if needed, reset the mode to the one you want.让我向工程团队提出这个问题,与此同时,我建议使用Autodesk.Viewing.Extensions.Markups.Core.EVENT_EDITMODE_CHANGED事件来检测对编辑模式的更改,如果需要,将模式重置为你想要的那个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM