我們的品牌

Impact-Company-Logo-English Black-01-177x54

歡迎造訪施耐德電機全球網站

歡迎訪問我們的網站
		
我们今天能为您提供什么帮助?
How to use rotation to create "analog meter" style animation

DISCLAIMER

The example below is intended to demonstrate one or more features or methods and is presented as a configuration example only. Schneider Electric assumes no liability for the use or application of this example or any portion thereof.



We will show, step by step, how to get an animation that shows the value of an analog point like an old style analog meter.
First, we draw the objects. The simple example below shows a circle, a "hand" (arrow), text boxes showing values at "0", "90", "180" and "270" degrees angles. Note that the "hand" was drawn in a way where it's bottom end is on the circle center and that it is "pointing"to "0". There is also a regular analog display (Value), just to show the value that will animate the "hand":

Meter

Let's double click on the "hand" and set the "Pivot" to "Bottom":

Animation 1

Now, let's click on the "Animations" button and set the "Rotation" property expression, in this example, to use the value stored in a point named "A1". Any valid expression can be used here and the resulting value will be used by the animation as the angle (0-360) the "hand will rotate:

Animation 2

The "Value" analog display is just used here as a way to enter new values to the "A1" internal analog point so we can see the effects on the "handle" animation. Please note that, unlike most of the other animation types, the "Rotation" one is only active in runtime, not in design mode. Below some examples of the results:

Result 90 degrees

Result 180 degrees




施耐德電機Taiwan

探索更多
產品:
探索更多
產品:
  • 產品文檔
  • 軟體下載
  • 產品選型工具
  • 產品替代和替換
  • 幫助和聯絡中心
  • 尋找我們的辦公室
  • 取得報價
  • 施耐德電機社群
  • 人才招募
  • 公司簡介
  • 舉報不當行為
  • 無障礙
  • 新聞中心
  • 投資者
  • 專業洞察
  • 台灣施耐德電機學院
  • 綠色影響力落差調查
  • Schneider Go Green 2025
  • 隱私政策
  • Cookie通告
  • 使用條款
  • Change your cookie settings