爱招飞帮助手册 爱招飞帮助手册
首页
  • 学习手册

    • 基本入门
    • 功能介绍
    • 控件说明
    • 功能用法
    • 专用模板
    • 开发流程
    • 函数程序
  • 学习手册

    • 基本入门
    • 功能介绍
    • 控件说明
    • 系统工具
    • 系统管理
    • 数据库工具
    • 专用模板
    • 外部功能
    • 开发流程
    • 函数代码
  • 开发手册
  • 学习手册

    • 基本入门
    • 功能介绍
    • 控件说明
    • 功能用法
    • 专用模板
    • 开发流程
    • 函数程序
  • 开发手册
  • 学习手册

    • 基本入门
    • 功能介绍
    • 控件说明
    • 功能用法
    • 专用模板
    • 开发流程
    • 函数程序
  • 开发手册
  • 学习手册

    • 安装配置
    • 快速上手
    • 界面介绍
    • 功能介绍
    • 报表设计
  • 学习手册

    • 安装配置
    • 快速上手
    • 界面介绍
    • 功能介绍
    • RestAPI
    • WebSocket
  • 学习手册

    • 安装配置
    • 快速上手
    • 程序架构
    • 界面介绍
    • 功能介绍
  • 学习手册

    • 安装配置
    • 快速上手
    • 界面介绍
    • 功能介绍
  • 学习手册

    • 安装配置
    • 快速上手
    • 界面介绍
    • 功能介绍
    • 预设资料
    • RestAPI说明
    • WebSocket说明
    • MQTT说明
    • Python说明
    • 自定程序
    • 运行卫士
    • 自动化作业
    • 函数程序
    • 控件使用
  • 开发手册
  • FastERP
  • FastWeb
  • Smart
  • PinToo
  • Flying
  • TARS
  • 通用功能

    • Report
    • Script
    • Echarts
    • Chart
    • DB Install
    • HiDesk
    • HiNAT
    • FastBPM
    • ReportBuilder
首页
  • 学习手册

    • 基本入门
    • 功能介绍
    • 控件说明
    • 功能用法
    • 专用模板
    • 开发流程
    • 函数程序
  • 学习手册

    • 基本入门
    • 功能介绍
    • 控件说明
    • 系统工具
    • 系统管理
    • 数据库工具
    • 专用模板
    • 外部功能
    • 开发流程
    • 函数代码
  • 开发手册
  • 学习手册

    • 基本入门
    • 功能介绍
    • 控件说明
    • 功能用法
    • 专用模板
    • 开发流程
    • 函数程序
  • 开发手册
  • 学习手册

    • 基本入门
    • 功能介绍
    • 控件说明
    • 功能用法
    • 专用模板
    • 开发流程
    • 函数程序
  • 开发手册
  • 学习手册

    • 安装配置
    • 快速上手
    • 界面介绍
    • 功能介绍
    • 报表设计
  • 学习手册

    • 安装配置
    • 快速上手
    • 界面介绍
    • 功能介绍
    • RestAPI
    • WebSocket
  • 学习手册

    • 安装配置
    • 快速上手
    • 程序架构
    • 界面介绍
    • 功能介绍
  • 学习手册

    • 安装配置
    • 快速上手
    • 界面介绍
    • 功能介绍
  • 学习手册

    • 安装配置
    • 快速上手
    • 界面介绍
    • 功能介绍
    • 预设资料
    • RestAPI说明
    • WebSocket说明
    • MQTT说明
    • Python说明
    • 自定程序
    • 运行卫士
    • 自动化作业
    • 函数程序
    • 控件使用
  • 开发手册
  • FastERP
  • FastWeb
  • Smart
  • PinToo
  • Flying
  • TARS
  • 通用功能

    • Report
    • Script
    • Echarts
    • Chart
    • DB Install
    • HiDesk
    • HiNAT
    • FastBPM
    • ReportBuilder
  • Smart帮助主页
  • 学习手册

  • 开发手册

    • 通讯协议

    • 交互输出

    • 媒体存取

    • 人工智慧

    • 实例运用

      • 定位精灵
      • 温湿度采集与控制
      • 车间信息采集与控制
      • SVG组态
        • 1. 说明
        • 2. 设计明细
        • 3. 程序设计
          • 3.1. 程序初始设置
          • 3.2. 事件设置
        • 4. 运行结果
      • 网络聊天室
      • 三色声光报警器运用
目录

SVG组态

# Smart之SVG组态

# 1. 说明

  SVG是一种可缩放矢量图形,其使用XML来描述形状特征,关于SVG的说明等信息可参考https://developer.mozilla.org/zh-CN/docs/Web/SVG (opens new window)。由于其矢量图的特性,在进行编辑缩放等相关操作后,图形不失真,可广泛用于图形展示的场合。组态界面由于其图形的特性,非常适合使用SVG来展示。

  通过范例学习,可以掌握使用SVG来展示组态的界面,并通过控件来实现组态界面的动态显示。

# 2. 设计明细

  开启Smart智慧控制平台,分别加入下插图之控件。或者通过点击菜单栏[文件]-[打开项目]选择项目打开该范例。

  1:TPanel组件,控件名称为Panel1。

  2:TAbClock组件,控件名称为AbClock1。

  3:TAbDBLED组件,控件名称为AbDBLED7。

  4:TAbDBLED组件,控件名称为AbDBLED8。

  5:TAbDBLED组件,控件名称为AbDBLED5。

  6:TAbDBLED组件,控件名称为AbDBLED1。

  7:TAbDBToggleSwitch组件,控件名称为AbDBToggleSwitch1。

  8:TAbDBToggleSwitch组件,控件名称为AbDBToggleSwitch2。

  9:TAbDBLED组件,控件名称为AbDBLED2。

  10:TAbDBLED组件,控件名称为AbDBLED3。

  11:TAbDBToggleSwitch组件,控件名称为AbDBToggleSwitch3。

  12:TAbDBToggleSwitch组件,控件名称为AbDBToggleSwitch4。

  13:TAbDBLED组件,控件名称为AbDBLED4。

  14:TAbDBLED组件,控件名称为AbDBLED6。

  15:TRSSVGImageList组件,控件名称为RSSVGImageList1。

  16:TRSSVGImageList组件,控件名称为RSSVGImageList2。

  TRSSVGThreadImage组件用于生成各界面显示用的组件。

  • Main窗体属性设置

    • ClientHeight:窗体客户区高度=550。
    • ClientWidth:窗体客户区宽度=720。
  • 1:Panel1属性设置

    • Align:设置对齐的方式,设置为alTop。
    • Caption:设置显示的字幕内容,设置为反应塔流程图。
    • Height:设置高度,设置为41。
    • Font:设置字体信息。

      点击右侧的[...],打开字体设置界面,点击设置字体内容。

  • 3:AbDBLED7属性设置

    • Caption:设置显示的字幕内容,设置为增压泵3。
  • 4:AbDBLED8属性设置

    • Caption:设置显示的字幕内容,设置为增压泵4。
  • 5:AbDBLED5属性设置

    • Caption:设置显示的字幕内容,设置为增压泵1。
  • 6:AbDBLED1属性设置

    • Caprtion:设置显示的字幕内容,设置为一号机组。
  • 7:AbDBToggleSwitch1属性设置

    • TextOff:设置关闭状态显示的字幕内容,设置为关。
    • TextOn:设置开启状态显示的字幕内容,设置为开。
  • 8:AbDBToggleSwitch2属性设置

    • TextOff:设置关闭状态显示的字幕内容,设置为关。
    • TextOn:设置开启状态显示的字幕内容,设置为开。
  • 9:AbDBLED2属性设置

    • Caprtion:设置显示的字幕内容,设置为二号机组。
  • 10:AbDBLED3属性设置

    • Caption:设置显示的字幕内容,设置为三号机组。
  • 11:AbDBToggleSwitch3属性设置

    • TextOff:设置关闭状态显示的字幕内容,设置为关。
    • TextOn:设置开启状态显示的字幕内容,设置为开。
  • 12:AbDBToggleSwitch4属性设置

    • TextOff:设置关闭状态显示的字幕内容,设置为关。
    • TextOn:设置开启状态显示的字幕内容,设置为开。
  • 13:AbDBLED4属性设置

    • Caption:设置显示的字幕内容,设置为四号机组。
  • 14:AbDBLED6属性设置

    • Caption:设置显示的字幕内容,设置为增压泵2。
  • 15:RSSVGImageList1属性设置

      点击Items属性右侧的[...],打开列表,新增两个编辑列表,分别设置Lines属性。

    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"[]><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="64px" height="64px" viewBox="0 0 125.921 121.105" enable-background="new 0 0 125.921 121.105" xml:space="preserve">
    <g id="Group_OutletPort">
        
    	    <linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="119.3706" y1="-412.0227" x2="119.3706" y2="-361.6145" gradientTransform="matrix(1 0 0 -1 0 -360.895)">
    	    <stop offset="0" style="stop-color:#4D4D4D" />
    	    <stop offset="0.21" style="stop-color:#717171" />
    	    <stop offset="0.54" style="stop-color:#A6A6A6" />
    	    <stop offset="0.64" style="stop-color:#9F9F9F" />
    	    <stop offset="0.79" style="stop-color:#8C8C8C" />
    	    <stop offset="0.97" style="stop-color:#6D6D6D" />
    	    <stop offset="1" style="stop-color:#666666" />
        </linearGradient>
        <rect x="112.821" y="0.719" fill="url(#SVGID_1_)" stroke="#B3B3B3" stroke-width="0.5" width="13.101" height="50.408" />
        
    	    <linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="83.0708" y1="76.9197" x2="83.0708" y2="115.9207" gradientTransform="matrix(1 0 0 -1 0 122.105)">
    	    <stop offset="0" style="stop-color:#4D4D4D" />
    	    <stop offset="0.52" style="stop-color:#B2B2B2" />
    	    <stop offset="1" style="stop-color:#666666" />
        </linearGradient>
        <polyline fill="url(#SVGID_2_)" points="53.235,6.184 112.907,6.184 112.907,45.185 102.517,45.185  " />
    </g>
    <g id="Group_Legs">
        
    	    <linearGradient id="SVGID_3_" gradientUnits="userSpaceOnUse" x1="52.5283" y1="1094.1335" x2="52.5283" y2="1058.2527" gradientTransform="matrix(1 0 0 1 0 -973.75)">
    	    <stop offset="0" style="stop-color:#999999" />
    	    <stop offset="1" style="stop-color:#666666" />
        </linearGradient>
        <path fill="url(#SVGID_3_)" stroke="#999999" stroke-width="0.396" d="M11.321,120.384l10.254-35.881h61.908l10.252,35.881H72.966   L52.462,89.497l-20.769,30.887H11.321z" />
    </g>
    <g id="Group_LegBase">
        <path fill="#999999" stroke="#B3B3B3" stroke-width="0.5" d="M0.76,115.851h37.533v5.254H0.76V115.851z" />
        <path fill="#999999" stroke="#B3B3B3" stroke-width="0.5" d="M66.603,115.851h37.929v5.254H66.603V115.851L66.603,115.851z" />
    </g>
    <g id="Group_PumpBody">
        
    	    <radialGradient id="SVGID_4_" cx="126.48" cy="837.1521" r="51.5659" gradientTransform="matrix(0.9999 0.0069 -0.0069 0.9999 -67.9976 -780.2224)" gradientUnits="userSpaceOnUse">
    	    <stop offset="0.18" style="stop-color:#333333" />
    	    <stop offset="0.26" style="stop-color:#383838" />
    	    <stop offset="0.35" style="stop-color:#454545" />
    	    <stop offset="0.44" style="stop-color:#5C5C5C" />
    	    <stop offset="0.54" style="stop-color:#7B7B7B" />
    	    <stop offset="0.64" style="stop-color:#A4A4A4" />
    	    <stop offset="0.72" style="stop-color:#CCCCCC" />
    	    <stop offset="0.81" style="stop-color:#B1B1B1" />
    	    <stop offset="0.99" style="stop-color:#6B6B6B" />
    	    <stop offset="1" style="stop-color:#666666" />
        </radialGradient>
        <path fill="url(#SVGID_4_)" d="M53.047,6.158c28.477,0.196,51.402,23.439,51.207,51.917c-0.195,28.475-23.438,51.398-51.914,51.204   C23.862,109.086,0.938,85.841,1.133,57.364C1.326,28.889,24.573,5.963,53.047,6.158z" />
    </g>
    <g id="Group_CenterShade">
        
    	    <radialGradient id="SVGID_5_" cx="52.4468" cy="-418.7268" r="27.2441" gradientTransform="matrix(1 0 0 -1 0 -360.895)" gradientUnits="userSpaceOnUse">
    	    <stop offset="0" style="stop-color:#000000" />
    	    <stop offset="1" style="stop-color:#333333" />
        </radialGradient>
        <path fill="url(#SVGID_5_)" d="M38.399,81.168C25.508,73.407,21.35,56.67,29.111,43.78c7.762-12.888,24.502-17.045,37.385-9.285   c12.891,7.761,17.047,24.498,9.289,37.393C68.021,84.769,51.286,88.928,38.399,81.168z" />
    </g>
    <g id="Group_Impeller">
        
    	    <linearGradient id="SVGID_6_" gradientUnits="userSpaceOnUse" x1="101.9819" y1="125.5398" x2="106.1411" y2="125.5342" gradientTransform="matrix(0.9889 0.1484 0.1484 -0.9889 -69.6528 166.4384)">
    	    <stop offset="0.01" style="stop-color:#666666" />
    	    <stop offset="0.51" style="stop-color:#B8B8B8" />
    	    <stop offset="1" style="stop-color:#666666" />
        </linearGradient>
        <path fill="url(#SVGID_6_)" d="M51.014,77.055c-0.642,4.14-2.024,7.351-3.166,7.187c-1.139-0.165-1.545-3.651-0.902-7.789   l0.014-0.081l5.874-37.983c0.64-4.139,1.986-7.314,3.125-7.149c1.142,0.163,1.507,3.623,0.866,7.76L51.014,77.055z" />
        
    	    <linearGradient id="SVGID_7_" gradientUnits="userSpaceOnUse" x1="-277.9653" y1="21.0618" x2="-273.8071" y2="21.0562" gradientTransform="matrix(0.6317 -0.7752 -0.7752 -0.6317 243.0495 -142.3917)">
    	    <stop offset="0.01" style="stop-color:#666666" />
    	    <stop offset="0.51" style="stop-color:#B8B8B8" />
    	    <stop offset="1" style="stop-color:#666666" />
        </linearGradient>
        <path fill="url(#SVGID_7_)" d="M68.625,68.765c3.234,2.659,5.291,5.485,4.57,6.387c-0.724,0.895-3.931-0.533-7.162-3.193   l-0.063-0.053L36.284,47.493c-3.234-2.66-5.28-5.437-4.559-6.333c0.722-0.898,3.884,0.55,7.117,3.21L68.625,68.765z" />
        
    	    <linearGradient id="SVGID_8_" gradientUnits="userSpaceOnUse" x1="216.7651" y1="433.1179" x2="220.9233" y2="433.1123" gradientTransform="matrix(0.4225 0.9064 0.9064 -0.4225 -432.8737 42.0522)">
    	    <stop offset="0.01" style="stop-color:#666666" />
    	    <stop offset="0.51" style="stop-color:#B8B8B8" />
    	    <stop offset="1" style="stop-color:#666666" />
        </linearGradient>
        <path fill="url(#SVGID_8_)" d="M35.58,67.368c-3.803,1.752-7.245,2.373-7.739,1.332c-0.491-1.041,2.193-3.306,5.994-5.057   l0.076-0.033L68.82,47.527c3.805-1.752,7.195-2.384,7.686-1.345c0.494,1.041-2.188,3.258-5.99,5.008L35.58,67.368z" />
        
    	    <radialGradient id="SVGID_9_" cx="51.9766" cy="64.4246" r="6.541" gradientTransform="matrix(1 0 0 -1 0 122.105)" gradientUnits="userSpaceOnUse">
    	    <stop offset="0" style="stop-color:#B8B8B8" />
    	    <stop offset="0.47" style="stop-color:#B6B6B6" />
    	    <stop offset="0.64" style="stop-color:#AFAFAF" />
    	    <stop offset="0.76" style="stop-color:#A3A3A3" />
    	    <stop offset="0.85" style="stop-color:#929292" />
    	    <stop offset="0.94" style="stop-color:#7D7D7D" />
    	    <stop offset="1" style="stop-color:#666666" />
        </radialGradient>
        <path fill="url(#SVGID_9_)" d="M53.274,51.269c3.543,0.718,5.829,4.168,5.11,7.709c-0.717,3.544-4.167,5.83-7.71,5.113   c-3.536-0.719-5.824-4.171-5.105-7.711C46.284,52.844,49.739,50.552,53.274,51.269z" />
    </g>
    </svg>
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <svg
    version="1.1"
    id="Layer_1"
    width="64px"
    height="64px"
    viewBox="0 0 125.921 121.105"
    enable-background="new 0 0 125.921 121.105"
    xml:space="preserve"
    sodipodi:docname="Cool pump Horz 45.svg"
    inkscape:version="1.1 (c68e22c387, 2021-05-23)"
    xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
    xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    xmlns="http://www.w3.org/2000/svg"
    xmlns:svg="http://www.w3.org/2000/svg"><defs
    id="defs122" /><sodipodi:namedview
    id="namedview120"
    pagecolor="#ffffff"
    bordercolor="#666666"
    borderopacity="1.0"
    inkscape:pageshadow="2"
    inkscape:pageopacity="0.0"
    inkscape:pagecheckerboard="0"
    showgrid="false"
    inkscape:zoom="12.984375"
    inkscape:cx="31.961492"
    inkscape:cy="31.961492"
    inkscape:window-width="2560"
    inkscape:window-height="1377"
    inkscape:window-x="1912"
    inkscape:window-y="-8"
    inkscape:window-maximized="1"
    inkscape:current-layer="Layer_1" />
    <g
    id="Group_OutletPort">
        
    	    <linearGradient
    id="SVGID_1_"
    gradientUnits="userSpaceOnUse"
    x1="119.3706"
    y1="-412.0227"
    x2="119.3706"
    y2="-361.6145"
    gradientTransform="matrix(1 0 0 -1 0 -360.895)">
    	    <stop
    offset="0"
    style="stop-color:#4D4D4D"
    id="stop2" />
    	    <stop
    offset="0.21"
    style="stop-color:#717171"
    id="stop4" />
    	    <stop
    offset="0.54"
    style="stop-color:#A6A6A6"
    id="stop6" />
    	    <stop
    offset="0.64"
    style="stop-color:#9F9F9F"
    id="stop8" />
    	    <stop
    offset="0.79"
    style="stop-color:#8C8C8C"
    id="stop10" />
    	    <stop
    offset="0.97"
    style="stop-color:#6D6D6D"
    id="stop12" />
    	    <stop
    offset="1"
    style="stop-color:#666666"
    id="stop14" />
        </linearGradient>
        <rect
    x="112.821"
    y="0.719"
    fill="url(#SVGID_1_)"
    stroke="#B3B3B3"
    stroke-width="0.5"
    width="13.101"
    height="50.408"
    id="rect17" />
        
    	    <linearGradient
    id="SVGID_2_"
    gradientUnits="userSpaceOnUse"
    x1="83.0708"
    y1="76.9197"
    x2="83.0708"
    y2="115.9207"
    gradientTransform="matrix(1 0 0 -1 0 122.105)">
    	    <stop
    offset="0"
    style="stop-color:#4D4D4D"
    id="stop19" />
    	    <stop
    offset="0.52"
    style="stop-color:#B2B2B2"
    id="stop21" />
    	    <stop
    offset="1"
    style="stop-color:#666666"
    id="stop23" />
        </linearGradient>
        <polyline
    fill="url(#SVGID_2_)"
    points="53.235,6.184 112.907,6.184 112.907,45.185 102.517,45.185  "
    id="polyline26" />
    </g>
    <g
    id="Group_Legs">
        
    	    <linearGradient
    id="SVGID_3_"
    gradientUnits="userSpaceOnUse"
    x1="52.5283"
    y1="1094.1335"
    x2="52.5283"
    y2="1058.2527"
    gradientTransform="matrix(1 0 0 1 0 -973.75)">
    	    <stop
    offset="0"
    style="stop-color:#999999"
    id="stop29" />
    	    <stop
    offset="1"
    style="stop-color:#666666"
    id="stop31" />
        </linearGradient>
        <path
    fill="url(#SVGID_3_)"
    stroke="#999999"
    stroke-width="0.396"
    d="M11.321,120.384l10.254-35.881h61.908l10.252,35.881H72.966   L52.462,89.497l-20.769,30.887H11.321z"
    id="path34" />
    </g>
    <g
    id="Group_LegBase">
        <path
    fill="#999999"
    stroke="#B3B3B3"
    stroke-width="0.5"
    d="M0.76,115.851h37.533v5.254H0.76V115.851z"
    id="path37" />
        <path
    fill="#999999"
    stroke="#B3B3B3"
    stroke-width="0.5"
    d="M66.603,115.851h37.929v5.254H66.603V115.851L66.603,115.851z"
    id="path39" />
    </g>
    <g
    id="Group_PumpBody">
        
    	    <radialGradient
    id="SVGID_4_"
    cx="126.48"
    cy="837.1521"
    r="51.5659"
    gradientTransform="matrix(0.9999 0.0069 -0.0069 0.9999 -67.9976 -780.2224)"
    gradientUnits="userSpaceOnUse">
    	    <stop
    offset="0.18"
    style="stop-color:#333333"
    id="stop42" />
    	    <stop
    offset="0.26"
    style="stop-color:#383838"
    id="stop44" />
    	    <stop
    offset="0.35"
    style="stop-color:#454545"
    id="stop46" />
    	    <stop
    offset="0.44"
    style="stop-color:#5C5C5C"
    id="stop48" />
    	    <stop
    offset="0.54"
    style="stop-color:#7B7B7B"
    id="stop50" />
    	    <stop
    offset="0.64"
    style="stop-color:#A4A4A4"
    id="stop52" />
    	    <stop
    offset="0.72"
    style="stop-color:#CCCCCC"
    id="stop54" />
    	    <stop
    offset="0.81"
    style="stop-color:#B1B1B1"
    id="stop56" />
    	    <stop
    offset="0.99"
    style="stop-color:#6B6B6B"
    id="stop58" />
    	    <stop
    offset="1"
    style="stop-color:#666666"
    id="stop60" />
        </radialGradient>
        <path
    fill="url(#SVGID_4_)"
    d="M53.047,6.158c28.477,0.196,51.402,23.439,51.207,51.917c-0.195,28.475-23.438,51.398-51.914,51.204   C23.862,109.086,0.938,85.841,1.133,57.364C1.326,28.889,24.573,5.963,53.047,6.158z"
    id="path63" />
    </g>
    <g
    id="Group_CenterShade">
        
    	    <radialGradient
    id="SVGID_5_"
    cx="52.4468"
    cy="-418.7268"
    r="27.2441"
    gradientTransform="matrix(1 0 0 -1 0 -360.895)"
    gradientUnits="userSpaceOnUse">
    	    <stop
    offset="0"
    style="stop-color:#000000"
    id="stop66" />
    	    <stop
    offset="1"
    style="stop-color:#333333"
    id="stop68" />
        </radialGradient>
        <path
    fill="url(#SVGID_5_)"
    d="M38.399,81.168C25.508,73.407,21.35,56.67,29.111,43.78c7.762-12.888,24.502-17.045,37.385-9.285   c12.891,7.761,17.047,24.498,9.289,37.393C68.021,84.769,51.286,88.928,38.399,81.168z"
    id="path71" />
    </g>
    <g
    id="Group_Impeller"
    transform="rotate(45,52.173848,57.740931)">
        
    	    <linearGradient
    id="SVGID_6_"
    gradientUnits="userSpaceOnUse"
    x1="101.9819"
    y1="125.5398"
    x2="106.1411"
    y2="125.5342"
    gradientTransform="matrix(0.9889,0.1484,0.1484,-0.9889,-69.6528,166.4384)">
    	    <stop
    offset="0.01"
    style="stop-color:#666666"
    id="stop74" />
    	    <stop
    offset="0.51"
    style="stop-color:#B8B8B8"
    id="stop76" />
    	    <stop
    offset="1"
    style="stop-color:#666666"
    id="stop78" />
        </linearGradient>
        <path
    fill="url(#SVGID_6_)"
    d="m 51.014,77.055 c -0.642,4.14 -2.024,7.351 -3.166,7.187 -1.139,-0.165 -1.545,-3.651 -0.902,-7.789 l 0.014,-0.081 5.874,-37.983 c 0.64,-4.139 1.986,-7.314 3.125,-7.149 1.142,0.163 1.507,3.623 0.866,7.76 z"
    id="path81"
    style="fill:url(#SVGID_6_)" />
        
    	    <linearGradient
    id="SVGID_7_"
    gradientUnits="userSpaceOnUse"
    x1="-277.9653"
    y1="21.0618"
    x2="-273.8071"
    y2="21.0562"
    gradientTransform="matrix(0.6317,-0.7752,-0.7752,-0.6317,243.0495,-142.3917)">
    	    <stop
    offset="0.01"
    style="stop-color:#666666"
    id="stop83" />
    	    <stop
    offset="0.51"
    style="stop-color:#B8B8B8"
    id="stop85" />
    	    <stop
    offset="1"
    style="stop-color:#666666"
    id="stop87" />
        </linearGradient>
        <path
    fill="url(#SVGID_7_)"
    d="m 68.625,68.765 c 3.234,2.659 5.291,5.485 4.57,6.387 -0.724,0.895 -3.931,-0.533 -7.162,-3.193 L 65.97,71.906 36.284,47.493 c -3.234,-2.66 -5.28,-5.437 -4.559,-6.333 0.722,-0.898 3.884,0.55 7.117,3.21 z"
    id="path90"
    style="fill:url(#SVGID_7_)" />
        
    	    <linearGradient
    id="SVGID_8_"
    gradientUnits="userSpaceOnUse"
    x1="216.76511"
    y1="433.11789"
    x2="220.92329"
    y2="433.1123"
    gradientTransform="matrix(0.4225,0.9064,0.9064,-0.4225,-432.8737,42.0522)">
    	    <stop
    offset="0.01"
    style="stop-color:#666666"
    id="stop92" />
    	    <stop
    offset="0.51"
    style="stop-color:#B8B8B8"
    id="stop94" />
    	    <stop
    offset="1"
    style="stop-color:#666666"
    id="stop96" />
        </linearGradient>
        <path
    fill="url(#SVGID_8_)"
    d="m 35.58,67.368 c -3.803,1.752 -7.245,2.373 -7.739,1.332 -0.491,-1.041 2.193,-3.306 5.994,-5.057 L 33.911,63.61 68.82,47.527 c 3.805,-1.752 7.195,-2.384 7.686,-1.345 0.494,1.041 -2.188,3.258 -5.99,5.008 z"
    id="path99"
    style="fill:url(#SVGID_8_)" />
        
    	    <radialGradient
    id="SVGID_9_"
    cx="51.976601"
    cy="64.424599"
    r="6.5409999"
    gradientTransform="matrix(1,0,0,-1,0,122.105)"
    gradientUnits="userSpaceOnUse">
    	    <stop
    offset="0"
    style="stop-color:#B8B8B8"
    id="stop101" />
    	    <stop
    offset="0.47"
    style="stop-color:#B6B6B6"
    id="stop103" />
    	    <stop
    offset="0.64"
    style="stop-color:#AFAFAF"
    id="stop105" />
    	    <stop
    offset="0.76"
    style="stop-color:#A3A3A3"
    id="stop107" />
    	    <stop
    offset="0.85"
    style="stop-color:#929292"
    id="stop109" />
    	    <stop
    offset="0.94"
    style="stop-color:#7D7D7D"
    id="stop111" />
    	    <stop
    offset="1"
    style="stop-color:#666666"
    id="stop113" />
        </radialGradient>
        <path
    fill="url(#SVGID_9_)"
    d="m 53.274,51.269 c 3.543,0.718 5.829,4.168 5.11,7.709 -0.717,3.544 -4.167,5.83 -7.71,5.113 -3.536,-0.719 -5.824,-4.171 -5.105,-7.711 0.715,-3.536 4.17,-5.828 7.705,-5.111 z"
    id="path116"
    style="fill:url(#SVGID_9_)" />
    </g>
    </svg>
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
  • 16:RSSVGImageList2属性设置

      点击Items属性右侧的[...],打开列表,新增两个编辑列表,分别设置Lines属性。

    <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="64px" height="64px" viewBox="0 0 125.921 121.105" enable-background="new 0 0 125.921 121.105" xml:space="preserve">
    <g id="Group_OutletPort">
        
    	    <linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="119.3706" y1="-412.0227" x2="119.3706" y2="-361.6145" gradientTransform="matrix(1 0 0 -1 0 -360.895)">
    	    <stop offset="0" style="stop-color:#004C00" />
    	    <stop offset="0.21" style="stop-color:#007000" />
    	    <stop offset="0.54" style="stop-color:#4BA54B" />
    	    <stop offset="0.64" style="stop-color:#3D9E3D" />
    	    <stop offset="0.79" style="stop-color:#178B17" />
    	    <stop offset="0.97" style="stop-color:#006C00" />
    	    <stop offset="1" style="stop-color:#006500" />
        </linearGradient>
        <rect x="112.821" y="0.719" fill="url(#SVGID_1_)" stroke="#B3B3B3" stroke-width="0.5" width="13.101" height="50.408" />
        
    	    <linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="83.0708" y1="76.9197" x2="83.0708" y2="115.9207" gradientTransform="matrix(1 0 0 -1 0 122.105)">
    	    <stop offset="0" style="stop-color:#004C00" />
    	    <stop offset="0.52" style="stop-color:#63B163" />
    	    <stop offset="1" style="stop-color:#006500" />
        </linearGradient>
        <polyline fill="url(#SVGID_2_)" points="53.235,6.184 112.907,6.184 112.907,45.185 102.517,45.185  " />
    </g>
    <g id="Group_Legs">
        
    	    <linearGradient id="SVGID_3_" gradientUnits="userSpaceOnUse" x1="52.5283" y1="1094.1335" x2="52.5283" y2="1058.2527" gradientTransform="matrix(1 0 0 1 0 -973.75)">
    	    <stop offset="0" style="stop-color:#319831" />
    	    <stop offset="1" style="stop-color:#006500" />
        </linearGradient>
        <path fill="url(#SVGID_3_)" stroke="#999999" stroke-width="0.396" d="M11.321,120.384l10.254-35.881h61.908l10.252,35.881H72.966   L52.462,89.497l-20.769,30.887H11.321z" />
    </g>
    <g id="Group_LegBase">
        <path fill="#319831" stroke="#B3B3B3" stroke-width="0.5" d="M0.76,115.851h37.533v5.254H0.76V115.851z" />
        <path fill="#319831" stroke="#B3B3B3" stroke-width="0.5" d="M66.603,115.851h37.929v5.254H66.603V115.851L66.603,115.851z" />
    </g>
    <g id="Group_PumpBody">
        
    	    <radialGradient id="SVGID_4_" cx="126.48" cy="837.1521" r="51.5659" gradientTransform="matrix(0.9999 0.0069 -0.0069 0.9999 -67.9976 -780.2224)" gradientUnits="userSpaceOnUse">
    	    <stop offset="0.18" style="stop-color:#003200" />
    	    <stop offset="0.26" style="stop-color:#003700" />
    	    <stop offset="0.35" style="stop-color:#004400" />
    	    <stop offset="0.44" style="stop-color:#005B00" />
    	    <stop offset="0.54" style="stop-color:#007A00" />
    	    <stop offset="0.64" style="stop-color:#47A347" />
    	    <stop offset="0.72" style="stop-color:#97CB97" />
    	    <stop offset="0.81" style="stop-color:#61B061" />
    	    <stop offset="0.99" style="stop-color:#006A00" />
    	    <stop offset="1" style="stop-color:#006500" />
        </radialGradient>
        <path fill="url(#SVGID_4_)" d="M53.047,6.158c28.477,0.196,51.402,23.439,51.207,51.917c-0.195,28.475-23.438,51.398-51.914,51.204   C23.862,109.086,0.938,85.841,1.133,57.364C1.326,28.889,24.573,5.963,53.047,6.158z" />
    </g>
    <g id="Group_CenterShade">
        
    	    <radialGradient id="SVGID_5_" cx="52.4468" cy="-418.7268" r="27.2441" gradientTransform="matrix(1 0 0 -1 0 -360.895)" gradientUnits="userSpaceOnUse">
    	    <stop offset="0" style="stop-color:#000000" />
    	    <stop offset="1" style="stop-color:#003200" />
        </radialGradient>
        <path fill="url(#SVGID_5_)" d="M38.399,81.168C25.508,73.407,21.35,56.67,29.111,43.78c7.762-12.888,24.502-17.045,37.385-9.285   c12.891,7.761,17.047,24.498,9.289,37.393C68.021,84.769,51.286,88.928,38.399,81.168z" />
    </g>
    <g id="Group_Impeller">
        
    	    <linearGradient id="SVGID_6_" gradientUnits="userSpaceOnUse" x1="101.9819" y1="125.5398" x2="106.1411" y2="125.5342" gradientTransform="matrix(0.9889 0.1484 0.1484 -0.9889 -69.6528 166.4384)">
    	    <stop offset="0.01" style="stop-color:#006500" />
    	    <stop offset="0.51" style="stop-color:#6FB76F" />
    	    <stop offset="1" style="stop-color:#006500" />
        </linearGradient>
        <path fill="url(#SVGID_6_)" d="M51.014,77.055c-0.642,4.14-2.024,7.351-3.166,7.187c-1.139-0.165-1.545-3.651-0.902-7.789   l0.014-0.081l5.874-37.983c0.64-4.139,1.986-7.314,3.125-7.149c1.142,0.163,1.507,3.623,0.866,7.76L51.014,77.055z" />
        
    	    <linearGradient id="SVGID_7_" gradientUnits="userSpaceOnUse" x1="-277.9653" y1="21.0618" x2="-273.8071" y2="21.0562" gradientTransform="matrix(0.6317 -0.7752 -0.7752 -0.6317 243.0495 -142.3917)">
    	    <stop offset="0.01" style="stop-color:#006500" />
    	    <stop offset="0.51" style="stop-color:#6FB76F" />
    	    <stop offset="1" style="stop-color:#006500" />
        </linearGradient>
        <path fill="url(#SVGID_7_)" d="M68.625,68.765c3.234,2.659,5.291,5.485,4.57,6.387c-0.724,0.895-3.931-0.533-7.162-3.193   l-0.063-0.053L36.284,47.493c-3.234-2.66-5.28-5.437-4.559-6.333c0.722-0.898,3.884,0.55,7.117,3.21L68.625,68.765z" />
        
    	    <linearGradient id="SVGID_8_" gradientUnits="userSpaceOnUse" x1="216.7651" y1="433.1179" x2="220.9233" y2="433.1123" gradientTransform="matrix(0.4225 0.9064 0.9064 -0.4225 -432.8737 42.0522)">
    	    <stop offset="0.01" style="stop-color:#006500" />
    	    <stop offset="0.51" style="stop-color:#6FB76F" />
    	    <stop offset="1" style="stop-color:#006500" />
        </linearGradient>
        <path fill="url(#SVGID_8_)" d="M35.58,67.368c-3.803,1.752-7.245,2.373-7.739,1.332c-0.491-1.041,2.193-3.306,5.994-5.057   l0.076-0.033L68.82,47.527c3.805-1.752,7.195-2.384,7.686-1.345c0.494,1.041-2.188,3.258-5.99,5.008L35.58,67.368z" />
        
    	    <radialGradient id="SVGID_9_" cx="51.9766" cy="64.4246" r="6.541" gradientTransform="matrix(1 0 0 -1 0 122.105)" gradientUnits="userSpaceOnUse">
    	    <stop offset="0" style="stop-color:#6FB76F" />
    	    <stop offset="0.47" style="stop-color:#6BB56B" />
    	    <stop offset="0.64" style="stop-color:#5DAE5D" />
    	    <stop offset="0.76" style="stop-color:#45A245" />
    	    <stop offset="0.85" style="stop-color:#239123" />
    	    <stop offset="0.94" style="stop-color:#007C00" />
    	    <stop offset="1" style="stop-color:#006500" />
        </radialGradient>
        <path fill="url(#SVGID_9_)" d="M53.274,51.269c3.543,0.718,5.829,4.168,5.11,7.709c-0.717,3.544-4.167,5.83-7.71,5.113   c-3.536-0.719-5.824-4.171-5.105-7.711C46.284,52.844,49.739,50.552,53.274,51.269z" />
    </g>
    </svg>
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <svg
    version="1.1"
    id="Layer_1"
    width="64px"
    height="64px"
    viewBox="0 0 125.921 121.105"
    enable-background="new 0 0 125.921 121.105"
    xml:space="preserve"
    sodipodi:docname="Cool pump 45.svg"
    inkscape:version="1.1 (c68e22c387, 2021-05-23)"
    xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
    xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    xmlns="http://www.w3.org/2000/svg"
    xmlns:svg="http://www.w3.org/2000/svg"><defs
    id="defs122" /><sodipodi:namedview
    id="namedview120"
    pagecolor="#ffffff"
    bordercolor="#666666"
    borderopacity="1.0"
    inkscape:pageshadow="2"
    inkscape:pageopacity="0.0"
    inkscape:pagecheckerboard="0"
    showgrid="false"
    inkscape:zoom="12.984375"
    inkscape:cx="32.038508"
    inkscape:cy="32.038508"
    inkscape:window-width="1920"
    inkscape:window-height="1017"
    inkscape:window-x="-8"
    inkscape:window-y="-8"
    inkscape:window-maximized="1"
    inkscape:current-layer="Layer_1" />
    <g
    id="Group_OutletPort">
        
    	    <linearGradient
    id="SVGID_1_"
    gradientUnits="userSpaceOnUse"
    x1="119.3706"
    y1="-412.0227"
    x2="119.3706"
    y2="-361.6145"
    gradientTransform="matrix(1 0 0 -1 0 -360.895)">
    	    <stop
    offset="0"
    style="stop-color:#004C00"
    id="stop2" />
    	    <stop
    offset="0.21"
    style="stop-color:#007000"
    id="stop4" />
    	    <stop
    offset="0.54"
    style="stop-color:#4BA54B"
    id="stop6" />
    	    <stop
    offset="0.64"
    style="stop-color:#3D9E3D"
    id="stop8" />
    	    <stop
    offset="0.79"
    style="stop-color:#178B17"
    id="stop10" />
    	    <stop
    offset="0.97"
    style="stop-color:#006C00"
    id="stop12" />
    	    <stop
    offset="1"
    style="stop-color:#006500"
    id="stop14" />
        </linearGradient>
        <rect
    x="112.821"
    y="0.719"
    fill="url(#SVGID_1_)"
    stroke="#B3B3B3"
    stroke-width="0.5"
    width="13.101"
    height="50.408"
    id="rect17" />
        
    	    <linearGradient
    id="SVGID_2_"
    gradientUnits="userSpaceOnUse"
    x1="83.0708"
    y1="76.9197"
    x2="83.0708"
    y2="115.9207"
    gradientTransform="matrix(1 0 0 -1 0 122.105)">
    	    <stop
    offset="0"
    style="stop-color:#004C00"
    id="stop19" />
    	    <stop
    offset="0.52"
    style="stop-color:#63B163"
    id="stop21" />
    	    <stop
    offset="1"
    style="stop-color:#006500"
    id="stop23" />
        </linearGradient>
        <polyline
    fill="url(#SVGID_2_)"
    points="53.235,6.184 112.907,6.184 112.907,45.185 102.517,45.185  "
    id="polyline26" />
    </g>
    <g
    id="Group_Legs">
        
    	    <linearGradient
    id="SVGID_3_"
    gradientUnits="userSpaceOnUse"
    x1="52.5283"
    y1="1094.1335"
    x2="52.5283"
    y2="1058.2527"
    gradientTransform="matrix(1 0 0 1 0 -973.75)">
    	    <stop
    offset="0"
    style="stop-color:#319831"
    id="stop29" />
    	    <stop
    offset="1"
    style="stop-color:#006500"
    id="stop31" />
        </linearGradient>
        <path
    fill="url(#SVGID_3_)"
    stroke="#999999"
    stroke-width="0.396"
    d="M11.321,120.384l10.254-35.881h61.908l10.252,35.881H72.966   L52.462,89.497l-20.769,30.887H11.321z"
    id="path34" />
    </g>
    <g
    id="Group_LegBase">
        <path
    fill="#319831"
    stroke="#B3B3B3"
    stroke-width="0.5"
    d="M0.76,115.851h37.533v5.254H0.76V115.851z"
    id="path37" />
        <path
    fill="#319831"
    stroke="#B3B3B3"
    stroke-width="0.5"
    d="M66.603,115.851h37.929v5.254H66.603V115.851L66.603,115.851z"
    id="path39" />
    </g>
    <g
    id="Group_PumpBody">
        
    	    <radialGradient
    id="SVGID_4_"
    cx="126.48"
    cy="837.1521"
    r="51.5659"
    gradientTransform="matrix(0.9999 0.0069 -0.0069 0.9999 -67.9976 -780.2224)"
    gradientUnits="userSpaceOnUse">
    	    <stop
    offset="0.18"
    style="stop-color:#003200"
    id="stop42" />
    	    <stop
    offset="0.26"
    style="stop-color:#003700"
    id="stop44" />
    	    <stop
    offset="0.35"
    style="stop-color:#004400"
    id="stop46" />
    	    <stop
    offset="0.44"
    style="stop-color:#005B00"
    id="stop48" />
    	    <stop
    offset="0.54"
    style="stop-color:#007A00"
    id="stop50" />
    	    <stop
    offset="0.64"
    style="stop-color:#47A347"
    id="stop52" />
    	    <stop
    offset="0.72"
    style="stop-color:#97CB97"
    id="stop54" />
    	    <stop
    offset="0.81"
    style="stop-color:#61B061"
    id="stop56" />
    	    <stop
    offset="0.99"
    style="stop-color:#006A00"
    id="stop58" />
    	    <stop
    offset="1"
    style="stop-color:#006500"
    id="stop60" />
        </radialGradient>
        <path
    fill="url(#SVGID_4_)"
    d="M53.047,6.158c28.477,0.196,51.402,23.439,51.207,51.917c-0.195,28.475-23.438,51.398-51.914,51.204   C23.862,109.086,0.938,85.841,1.133,57.364C1.326,28.889,24.573,5.963,53.047,6.158z"
    id="path63" />
    </g>
    <g
    id="Group_CenterShade">
        
    	    <radialGradient
    id="SVGID_5_"
    cx="52.4468"
    cy="-418.7268"
    r="27.2441"
    gradientTransform="matrix(1 0 0 -1 0 -360.895)"
    gradientUnits="userSpaceOnUse">
    	    <stop
    offset="0"
    style="stop-color:#000000"
    id="stop66" />
    	    <stop
    offset="1"
    style="stop-color:#003200"
    id="stop68" />
        </radialGradient>
        <path
    fill="url(#SVGID_5_)"
    d="M38.399,81.168C25.508,73.407,21.35,56.67,29.111,43.78c7.762-12.888,24.502-17.045,37.385-9.285   c12.891,7.761,17.047,24.498,9.289,37.393C68.021,84.769,51.286,88.928,38.399,81.168z"
    id="path71" />
    </g>
    <g
    id="Group_Impeller"
    transform="rotate(30,52.173848,57.740931)">
        
    	    <linearGradient
    id="SVGID_6_"
    gradientUnits="userSpaceOnUse"
    x1="101.9819"
    y1="125.5398"
    x2="106.1411"
    y2="125.5342"
    gradientTransform="matrix(0.9889,0.1484,0.1484,-0.9889,-69.6528,166.4384)">
    	    <stop
    offset="0.01"
    style="stop-color:#006500"
    id="stop74" />
    	    <stop
    offset="0.51"
    style="stop-color:#6FB76F"
    id="stop76" />
    	    <stop
    offset="1"
    style="stop-color:#006500"
    id="stop78" />
        </linearGradient>
        <path
    fill="url(#SVGID_6_)"
    d="m 51.014,77.055 c -0.642,4.14 -2.024,7.351 -3.166,7.187 -1.139,-0.165 -1.545,-3.651 -0.902,-7.789 l 0.014,-0.081 5.874,-37.983 c 0.64,-4.139 1.986,-7.314 3.125,-7.149 1.142,0.163 1.507,3.623 0.866,7.76 z"
    id="path81"
    style="fill:url(#SVGID_6_)" />
        
    	    <linearGradient
    id="SVGID_7_"
    gradientUnits="userSpaceOnUse"
    x1="-277.9653"
    y1="21.0618"
    x2="-273.8071"
    y2="21.0562"
    gradientTransform="matrix(0.6317,-0.7752,-0.7752,-0.6317,243.0495,-142.3917)">
    	    <stop
    offset="0.01"
    style="stop-color:#006500"
    id="stop83" />
    	    <stop
    offset="0.51"
    style="stop-color:#6FB76F"
    id="stop85" />
    	    <stop
    offset="1"
    style="stop-color:#006500"
    id="stop87" />
        </linearGradient>
        <path
    fill="url(#SVGID_7_)"
    d="m 68.625,68.765 c 3.234,2.659 5.291,5.485 4.57,6.387 -0.724,0.895 -3.931,-0.533 -7.162,-3.193 L 65.97,71.906 36.284,47.493 c -3.234,-2.66 -5.28,-5.437 -4.559,-6.333 0.722,-0.898 3.884,0.55 7.117,3.21 z"
    id="path90"
    style="fill:url(#SVGID_7_)" />
        
    	    <linearGradient
    id="SVGID_8_"
    gradientUnits="userSpaceOnUse"
    x1="216.76511"
    y1="433.11789"
    x2="220.92329"
    y2="433.1123"
    gradientTransform="matrix(0.4225,0.9064,0.9064,-0.4225,-432.8737,42.0522)">
    	    <stop
    offset="0.01"
    style="stop-color:#006500"
    id="stop92" />
    	    <stop
    offset="0.51"
    style="stop-color:#6FB76F"
    id="stop94" />
    	    <stop
    offset="1"
    style="stop-color:#006500"
    id="stop96" />
        </linearGradient>
        <path
    fill="url(#SVGID_8_)"
    d="m 35.58,67.368 c -3.803,1.752 -7.245,2.373 -7.739,1.332 -0.491,-1.041 2.193,-3.306 5.994,-5.057 L 33.911,63.61 68.82,47.527 c 3.805,-1.752 7.195,-2.384 7.686,-1.345 0.494,1.041 -2.188,3.258 -5.99,5.008 z"
    id="path99"
    style="fill:url(#SVGID_8_)" />
        
    	    <radialGradient
    id="SVGID_9_"
    cx="51.976601"
    cy="64.424599"
    r="6.5409999"
    gradientTransform="matrix(1,0,0,-1,0,122.105)"
    gradientUnits="userSpaceOnUse">
    	    <stop
    offset="0"
    style="stop-color:#6FB76F"
    id="stop101" />
    	    <stop
    offset="0.47"
    style="stop-color:#6BB56B"
    id="stop103" />
    	    <stop
    offset="0.64"
    style="stop-color:#5DAE5D"
    id="stop105" />
    	    <stop
    offset="0.76"
    style="stop-color:#45A245"
    id="stop107" />
    	    <stop
    offset="0.85"
    style="stop-color:#239123"
    id="stop109" />
    	    <stop
    offset="0.94"
    style="stop-color:#007C00"
    id="stop111" />
    	    <stop
    offset="1"
    style="stop-color:#006500"
    id="stop113" />
        </radialGradient>
        <path
    fill="url(#SVGID_9_)"
    d="m 53.274,51.269 c 3.543,0.718 5.829,4.168 5.11,7.709 -0.717,3.544 -4.167,5.83 -7.71,5.113 -3.536,-0.719 -5.824,-4.171 -5.105,-7.711 0.715,-3.536 4.17,-5.828 7.705,-5.111 z"
    id="path116"
    style="fill:url(#SVGID_9_)" />
    </g>
    </svg>
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
  • RSSVGThreadImage属性设置

  双击创建的控件,打开图形选择界面,在界面种选择图形,其中泵类型的图形位于Pumps分组中,管道类型的位于Pipes分组中,阀门位于Valves分组中,可根据需求自行选择与组合。

  本示例中的部分图形是根据图库中的范例图形进行颜色变更、旋转、镜像翻转等操作后生成的。不能直接使用,可点击[SVG编辑...]按钮,打开编辑器进行自定义编辑的操作。

# 3. 程序设计

# 3.1. 程序初始设置

  该程序无初始设置。

# 3.2. 事件设置

  • 7:AbDBToggleSwitch1-OnClick事件设置

  点击以切换一号机组的开关显示。

procedure TMyHandler.AbDBToggleSwitch1Click;
//一号机组
begin
  if FThis.AbDBToggleSwitch1.Checked then
  begin
    FThis.SVGThreadImage33.ThreadEnabled := True;
    FThis.AbDBLED1.Checked := True;
  end
  else 
  begin
    FThis.SVGThreadImage33.ThreadEnabled := False;
    FThis.AbDBLED1.Checked := False;
  end;
  if (FThis.SVGThreadImage33.ThreadEnabled) or (FThis.SVGThreadImage44.ThreadEnabled) then
  begin
    FThis.SVGThreadImage16.ThreadEnabled := True;
    FThis.SVGThreadImage31.ThreadEnabled := True;
    FThis.AbDBLED5.Checked := True;
    FThis.AbDBLED8.Checked := True;
  end
  else
  begin
    FThis.SVGThreadImage16.ThreadEnabled := False;
    FThis.SVGThreadImage31.ThreadEnabled := False;
    FThis.AbDBLED5.Checked := False;
    FThis.AbDBLED8.Checked := False;
  end;
end;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  • 8:AbDBToggleSwitch2-OnClick事件设置

  点击以切换二号机组的开关显示。

procedure TMyHandler.AbDBToggleSwitch2Click;
//二号机组
begin
  if FThis.AbDBToggleSwitch2.Checked then
  begin
    FThis.SVGThreadImage44.ThreadEnabled := True;
    FThis.AbDBLED2.Checked := True;
  end
  else 
  begin
    FThis.SVGThreadImage44.ThreadEnabled := False;
    FThis.AbDBLED2.Checked := False;
  end;
  if (FThis.SVGThreadImage33.ThreadEnabled) or (FThis.SVGThreadImage44.ThreadEnabled) then
  begin
    FThis.SVGThreadImage16.ThreadEnabled := True;
    FThis.SVGThreadImage31.ThreadEnabled := True;
    FThis.AbDBLED5.Checked := True;
    FThis.AbDBLED8.Checked := True;
  end
  else
  begin
    FThis.SVGThreadImage16.ThreadEnabled := False;
    FThis.SVGThreadImage31.ThreadEnabled := False;
    FThis.AbDBLED5.Checked := False;
    FThis.AbDBLED8.Checked := False;
  end;
end;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  • 11:AbDBToggleSwitch3-OnClick事件设置

  点击以切换三号机组的开关显示。

procedure TMyHandler.AbDBToggleSwitch3Click;
//三号机组
begin
  if FThis.AbDBToggleSwitch3.Checked then
  begin
    FThis.SVGThreadImage74.ThreadEnabled := True;
    FThis.AbDBLED3.Checked := True;
  end
  else 
  begin
    FThis.SVGThreadImage74.ThreadEnabled := False;
    FThis.AbDBLED3.Checked := False;
  end;
  if (FThis.SVGThreadImage74.ThreadEnabled) or (FThis.SVGThreadImage70.ThreadEnabled) then
  begin
    FThis.SVGThreadImage2.ThreadEnabled := True;
    FThis.SVGThreadImage67.ThreadEnabled := True;
    FThis.AbDBLED6.Checked := True;
    FThis.AbDBLED7.Checked := True;
  end
  else
  begin
    FThis.SVGThreadImage2.ThreadEnabled := False;
    FThis.SVGThreadImage67.ThreadEnabled := False;
    FThis.AbDBLED6.Checked := False;
    FThis.AbDBLED7.Checked := False;
  end;
end;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  • 12:AbDBToggleSwitch4-OnClick事件设置

  点击以切换四号机组的开关显示。

procedure TMyHandler.AbDBToggleSwitch4Click;
//四号机组
begin
  if FThis.AbDBToggleSwitch4.Checked then
  begin
    FThis.SVGThreadImage70.ThreadEnabled := True;
    FThis.AbDBLED4.Checked := True;
  end
  else 
  begin
    FThis.SVGThreadImage70.ThreadEnabled := False;
    FThis.AbDBLED4.Checked := False;
  end;
  if (FThis.SVGThreadImage74.ThreadEnabled) or (FThis.SVGThreadImage70.ThreadEnabled) then
  begin
    FThis.SVGThreadImage2.ThreadEnabled := True;
    FThis.SVGThreadImage67.ThreadEnabled := True;
    FThis.AbDBLED6.Checked := True;
    FThis.AbDBLED7.Checked := True;
  end
  else
  begin
    FThis.SVGThreadImage2.ThreadEnabled := False;
    FThis.SVGThreadImage67.ThreadEnabled := False;
    FThis.AbDBLED6.Checked := False;
    FThis.AbDBLED7.Checked := False;
  end;
end;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

# 4. 运行结果

  使用鼠标点击工具栏运行(Run),测试运行结果。

  通过工具栏保存,将程序保存为 sdb 项目文件。

  当开启机组的开关时,泵的指示灯亮,同时泵的扇叶开始转动。

车间信息采集与控制
网络聊天室

← 车间信息采集与控制 网络聊天室→

Copyright © 2021-2025 爱招飞IsoFace | ALL Rights Reserved
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式