![图片[1]-word中实现插入Draw.io的流程图[SVG功能完美!]-Word实用工具](https://www.officexlbg.cn/wp-content/uploads/2026/02/image.png)
![图片[2]-word中实现插入Draw.io的流程图[SVG功能完美!]-Word实用工具](https://www.officexlbg.cn/wp-content/uploads/2026/02/image-1.png)
第一个添加:插入draw.io的画布;
![图片[3]-word中实现插入Draw.io的流程图[SVG功能完美!]-Word实用工具](https://www.officexlbg.cn/wp-content/uploads/2026/02/image-2-1024x328.png)
第二个查看/编辑比较鸡肋,因为双击也可以进入编辑;
![图片[4]-word中实现插入Draw.io的流程图[SVG功能完美!]-Word实用工具](https://www.officexlbg.cn/wp-content/uploads/2026/02/image-3-1024x410.png)
第三个:导出:可以批量,也可以选择1个图片,导出到选定目录中:
![图片[5]-word中实现插入Draw.io的流程图[SVG功能完美!]-Word实用工具](https://www.officexlbg.cn/wp-content/uploads/2026/02/image-4-1024x562.png)
导出后即为png格式图片:
![图片[6]-word中实现插入Draw.io的流程图[SVG功能完美!]-Word实用工具](https://www.officexlbg.cn/wp-content/uploads/2026/02/image-5.png)
插入SVG图片的方法
首先在设置里勾选svg:
![图片[7]-word中实现插入Draw.io的流程图[SVG功能完美!]-Word实用工具](https://www.officexlbg.cn/wp-content/uploads/2026/02/image-47.png)
然后点击插入流程图,就成了这个图示:
![图片[8]-word中实现插入Draw.io的流程图[SVG功能完美!]-Word实用工具](https://www.officexlbg.cn/wp-content/uploads/2026/02/image-48.png)
双击后操作和上面Png相同。
测试代码:
<mxGraphModel dx="937" dy="503" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="title" parent="1" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;fontStyle=1;fontFamily=SimSun;" value="问题一技术路线图" vertex="1">
<mxGeometry height="30" width="100" x="434" y="25" as="geometry" />
</mxCell>
<mxCell id="Ug0apRKd1kpeNteSPpxb-2" edge="1" parent="1" source="box1a" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontFamily=SimSun;fontSize=10;" target="box2">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="box1a" parent="1" style="rounded=1;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=10;fontFamily=SimSun;arcSize=15;" value="<b>附件1</b><br>常规负荷标幺功率曲线" vertex="1">
<mxGeometry height="50" width="170" x="180" y="80" as="geometry" />
</mxCell>
<mxCell id="box1b" parent="1" style="rounded=1;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=10;fontFamily=SimSun;arcSize=15;" value="<b>附件2</b><br>风电、光伏标幺出力曲线" vertex="1">
<mxGeometry height="50" width="150" x="410" y="80" as="geometry" />
</mxCell>
<mxCell id="Ug0apRKd1kpeNteSPpxb-3" edge="1" parent="1" source="box1c" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontFamily=SimSun;fontSize=10;" target="box2">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="box1c" parent="1" style="rounded=1;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=10;fontFamily=SimSun;arcSize=15;" value="<b>题目参数</b><br>装机容量、设备额定功率、<br>电价、运维成本等" vertex="1">
<mxGeometry height="50" width="170" x="650" y="80" as="geometry" />
</mxCell>
<mxCell id="arrow1b" edge="1" parent="1" source="box1b" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeColor=#333333;strokeWidth=1.5;fontFamily=SimSun;fontSize=10;" target="box2">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="box2" parent="1" style="rounded=0;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=10;fontFamily=SimSun;" value="<b>标幺功率还原</b><br>风电实际出力:P<sub>w,t</sub> = P<sub>w</sub><sup>cap</sup> · p<sub>w,t</sub><br>光伏实际出力:P<sub>pv,t</sub> = P<sub>pv</sub><sup>cap</sup> · p<sub>pv,t</sub><br>常规负荷:P<sub>c,t</sub> = P<sub>c</sub><sup>max</sup> · p<sub>c,t</sub>" vertex="1">
<mxGeometry height="80" width="350" x="310" y="170" as="geometry" />
</mxCell>
<mxCell id="arrow2" edge="1" parent="1" source="box2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeColor=#333333;strokeWidth=1.5;fontFamily=SimSun;fontSize=10;" target="box3">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="box3" parent="1" style="rounded=0;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=10;fontFamily=SimSun;" value="<b>园区总负荷建模</b><br>电解槽满负荷:P<sub>ALK,t</sub> = 10MW,P<sub>PEM,t</sub> = 10MW<br>合成氨满负荷:P<sub>NH₃,t</sub> = 0.75MW<br>总负荷:P<sub>load,t</sub> = P<sub>c,t</sub> + 20.75 MW" vertex="1">
<mxGeometry height="80" width="350" x="310" y="290" as="geometry" />
</mxCell>
<mxCell id="arrow3" edge="1" parent="1" source="box3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeColor=#333333;strokeWidth=1.5;fontFamily=SimSun;fontSize=10;" target="box4">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="box4" parent="1" style="rounded=0;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=10;fontFamily=SimSun;fontStyle=0;" value="<b>逐时功率平衡计算</b><br>P<sub>new,t</sub> + P<sub>buy,t</sub> = P<sub>load,t</sub> + P<sub>sell,t</sub>" vertex="1">
<mxGeometry height="55" width="290" x="340" y="410" as="geometry" />
</mxCell>
<mxCell id="arrow4" edge="1" parent="1" source="box4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeColor=#333333;strokeWidth=1.5;fontFamily=SimSun;fontSize=10;" target="diamond1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="diamond1" parent="1" style="rhombus;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontSize=10;fontFamily=SimSun;" value="P<sub>new,t</sub> ≥ P<sub>load,t</sub> ?" vertex="1">
<mxGeometry height="80" width="180" x="395" y="500" as="geometry" />
</mxCell>
<mxCell id="box5a" parent="1" style="rounded=0;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=10;fontFamily=SimSun;" value="新能源富余上网<br>P<sub>sell,t</sub> = P<sub>new,t</sub> − P<sub>load,t</sub><br>P<sub>buy,t</sub> = 0" vertex="1">
<mxGeometry height="70" width="200" x="620" y="505" as="geometry" />
</mxCell>
<mxCell id="arrow_yes" edge="1" parent="1" source="diamond1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;strokeColor=#333333;strokeWidth=1.5;fontSize=10;fontFamily=SimSun;" target="box5a" value="是">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="box5b" parent="1" style="rounded=0;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=10;fontFamily=SimSun;" value="新能源不足购电<br>P<sub>buy,t</sub> = P<sub>load,t</sub> − P<sub>new,t</sub><br>P<sub>sell,t</sub> = 0" vertex="1">
<mxGeometry height="70" width="200" x="150" y="505" as="geometry" />
</mxCell>
<mxCell id="arrow_no" edge="1" parent="1" source="diamond1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;strokeColor=#333333;strokeWidth=1.5;fontSize=10;fontFamily=SimSun;" target="box5b" value="否">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="arrow5a" edge="1" parent="1" source="box5a" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;strokeColor=#333333;strokeWidth=1.5;fontFamily=SimSun;fontSize=10;" target="box6">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="arrow5b" edge="1" parent="1" source="box5b" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.25;entryY=0;entryDx=0;entryDy=0;strokeColor=#333333;strokeWidth=1.5;fontFamily=SimSun;fontSize=10;" target="box6">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="box6" parent="1" style="rounded=0;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=10;fontFamily=SimSun;" value="<b>典型日电量统计</b><br>新能源发电量 E<sub>new</sub>、总用电量 E<sub>load</sub>、网购电量 E<sub>buy</sub>、上网电量 E<sub>sell</sub><br>电量守恒校验:E<sub>new</sub> + E<sub>buy</sub> = E<sub>load</sub> + E<sub>sell</sub>" vertex="1">
<mxGeometry height="70" width="410" x="280" y="620" as="geometry" />
</mxCell>
<mxCell id="arrow6a" edge="1" parent="1" source="box6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0.3;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeColor=#333333;strokeWidth=1.5;fontFamily=SimSun;fontSize=10;" target="box7a">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="arrow6b" edge="1" parent="1" source="box6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0.7;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeColor=#333333;strokeWidth=1.5;fontFamily=SimSun;fontSize=10;" target="box7b">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Ug0apRKd1kpeNteSPpxb-4" edge="1" parent="1" source="box7a" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontFamily=SimSun;fontSize=10;" target="box8">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="box7a" parent="1" style="rounded=0;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=10;fontFamily=SimSun;" value="<b>绿电直连指标计算</b><br>新能源自发自用比例 R<sub>1</sub> &gt; 60%<br>总用电量绿电比例 R<sub>2</sub> &gt; 30%<br>新能源上网比例 R<sub>3</sub> &lt; 20%" vertex="1">
<mxGeometry height="80" width="260" x="170" y="730" as="geometry" />
</mxCell>
<mxCell id="Ug0apRKd1kpeNteSPpxb-6" edge="1" parent="1" source="box7b" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;fontFamily=SimSun;fontSize=10;" target="box8">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="box7b" parent="1" style="rounded=0;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=10;fontFamily=SimSun;" value="<b>吨氨成本核算</b><br>风光发电成本 + 网购电成本<br>+ 电解槽运维 + 合成氨运维<br>− 余电上网收益<br>C<sub>ton</sub> = C / M<sub>NH₃</sub>" vertex="1">
<mxGeometry height="80" width="260" x="540" y="730" as="geometry" />
</mxCell>
<mxCell id="box8" parent="1" style="rounded=0;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontSize=10;fontFamily=SimSun;" value="<b>达标性判断与失配机理分析</b><br>R<sub>1</sub> = 28.16% &lt; 60%(不达标)、R<sub>2</sub> = 69.21% &gt; 30%(达标)、R<sub>3</sub> = 35.92% &gt; 20%(不达标)<br>满负荷连续运行方案不能完全满足绿电直连项目要求" vertex="1">
<mxGeometry height="70" width="550" x="210" y="855" as="geometry" />
</mxCell>
<mxCell id="arrow8" edge="1" parent="1" source="box8" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeColor=#333333;strokeWidth=1.5;fontFamily=SimSun;fontSize=10;" target="box9">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="box9" parent="1" style="rounded=1;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=10;fontFamily=SimSun;arcSize=15;fontStyle=0;" value="<b>结论</b><br>风光出力与园区负荷存在显著时序错配,需引入负荷调节与储能优化" vertex="1">
<mxGeometry height="55" width="410" x="280" y="965" as="geometry" />
</mxCell>
<mxCell id="label1" parent="1" style="text;html=1;align=right;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;fontStyle=1;fontColor=#666666;fontFamily=SimSun;" value="数据输入" vertex="1">
<mxGeometry height="30" width="60" x="60" y="90" as="geometry" />
</mxCell>
<mxCell id="label2" parent="1" style="text;html=1;align=right;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;fontStyle=1;fontColor=#666666;fontFamily=SimSun;" value="功率还原" vertex="1">
<mxGeometry height="30" width="60" x="60" y="195" as="geometry" />
</mxCell>
<mxCell id="label3" parent="1" style="text;html=1;align=right;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;fontStyle=1;fontColor=#666666;fontFamily=SimSun;" value="负荷建模" vertex="1">
<mxGeometry height="30" width="60" x="60" y="315" as="geometry" />
</mxCell>
<mxCell id="label4" parent="1" style="text;html=1;align=right;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;fontStyle=1;fontColor=#666666;fontFamily=SimSun;" value="功率平衡" vertex="1">
<mxGeometry height="30" width="60" x="60" y="425" as="geometry" />
</mxCell>
<mxCell id="label5" parent="1" style="text;html=1;align=right;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;fontStyle=1;fontColor=#666666;fontFamily=SimSun;" value="购售电判断" vertex="1">
<mxGeometry height="30" width="70" x="50" y="525" as="geometry" />
</mxCell>
<mxCell id="label6" parent="1" style="text;html=1;align=right;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;fontStyle=1;fontColor=#666666;fontFamily=SimSun;" value="电量统计" vertex="1">
<mxGeometry height="30" width="60" x="60" y="640" as="geometry" />
</mxCell>
<mxCell id="label7" parent="1" style="text;html=1;align=right;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;fontStyle=1;fontColor=#666666;fontFamily=SimSun;" value="指标与成本" vertex="1">
<mxGeometry height="30" width="70" x="50" y="755" as="geometry" />
</mxCell>
<mxCell id="label8" parent="1" style="text;html=1;align=right;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;fontStyle=1;fontColor=#666666;fontFamily=SimSun;" value="达标判断" vertex="1">
<mxGeometry height="30" width="60" x="60" y="875" as="geometry" />
</mxCell>
<mxCell id="label9" parent="1" style="text;html=1;align=right;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;fontStyle=1;fontColor=#666666;fontFamily=SimSun;" value="结论输出" vertex="1">
<mxGeometry height="30" width="60" x="60" y="978" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
高级技巧:豆包生成代码,复制到Draw.io微调
通过deepseek+draw.io,一键搞定各种可视化图表
给我生成一个阿司匹林的药理作用和不良反应图的mermaid代码
![图片[9]-word中实现插入Draw.io的流程图[SVG功能完美!]-Word实用工具](https://www.officexlbg.cn/wp-content/uploads/2026/02/image-18-1024x791.png)
graph TB
%% 核心节点
Core["💊 阿司匹林 (Aspirin)<br/>药理与临床应用全解"]
style Core fill:#f9f,stroke:#333,stroke-width:4px
%% 药理作用分支
Core --> Action["⚡ 药理作用 (Mechanism)"]
Action --> A1["❶ 解热镇痛<br/>抑制中枢PG合成"]
Action --> A2["❷ 抗炎抗风湿<br/>抑制炎症部位PG合成"]
Action --> A3["❸ 抗血小板聚集<br/>不可逆抑制COX-1"]
%% 临床应用分支
Core --> Clinic["✅ 临床应用"]
Clinic --> C1["感冒发热、头痛/牙痛/肌肉痛"]
Clinic --> C2["风湿性/类风湿性关节炎"]
Clinic --> C3["预防心梗、脑血栓二级预防"]
%% 不良反应分支 (警告色)
Core --> ADR["⚠️ 不良反应 (ADRs)"]
style ADR fill:#ff9,stroke:#f66,stroke-width:2px
ADR --> R1["🔴 胃肠道反应<br/>最常见: 恶心、溃疡、出血"]
ADR --> R2["🩸 出血倾向<br/>延长出血时间, 凝血障碍"]
ADR --> R3["🤧 过敏反应<br/>荨麻疹、'阿司匹林哮喘'"]
ADR --> R4["🧠 水杨酸反应<br/>剂量过大: 耳鸣、眩晕、精神错乱"]
ADR --> R5["🔞 瑞夷综合征 (Reye's)<br/>儿童病毒感染禁用"]
%% 禁忌症
Core --> Ban["🚫 禁忌症"]
style Ban fill:#f66,color:#fff
Ban --> B1["胃溃疡、严重肝肾功能不全"]
Ban --> B2["出血性疾病、孕妇后期"]
![图片[10]-word中实现插入Draw.io的流程图[SVG功能完美!]-Word实用工具](https://www.officexlbg.cn/wp-content/uploads/2026/02/image-19.png)
![图片[11]-word中实现插入Draw.io的流程图[SVG功能完美!]-Word实用工具](https://www.officexlbg.cn/wp-content/uploads/2026/02/image-20-1024x701.png)
![图片[12]-word中实现插入Draw.io的流程图[SVG功能完美!]-Word实用工具](https://www.officexlbg.cn/wp-content/uploads/2026/02/image-21-1024x273.png)
还可以直接xml格式的:
![图片[13]-word中实现插入Draw.io的流程图[SVG功能完美!]-Word实用工具](https://www.officexlbg.cn/wp-content/uploads/2026/02/image-22-1024x599.png)
![图片[14]-word中实现插入Draw.io的流程图[SVG功能完美!]-Word实用工具](https://www.officexlbg.cn/wp-content/uploads/2026/02/image-23-1024x520.png)
代码直接粘贴进去即可。
![图片[15]-word中实现插入Draw.io的流程图[SVG功能完美!]-Word实用工具](https://www.officexlbg.cn/wp-content/uploads/2026/02/1448350ddff0640fe4be4b14a77918f9.png)
下载地址:https://www.lanzoui.com/b0alq05ib
密码:word
THE END

请登录后查看评论内容