{"id":163394,"date":"2023-01-31T09:26:17","date_gmt":"2023-01-31T09:26:17","guid":{"rendered":"\/knowledge\/forums\/topic\/script%ef%bc%9afield-plot%e5%9b%b3%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%87%ba%e5%8a%9b-exportplotimagetofile-3\/"},"modified":"2023-01-31T09:26:17","modified_gmt":"2023-01-31T09:26:17","slug":"script%ef%bc%9afield-plot%e5%9b%b3%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%87%ba%e5%8a%9b-exportplotimagetofile-3","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/script%ef%bc%9afield-plot%e5%9b%b3%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%87%ba%e5%8a%9b-exportplotimagetofile-3\/","title":{"rendered":"Script\uff1aField Plot\u56f3\u306e\u30d5\u30a1\u30a4\u30eb\u51fa\u529b (ExportPlotImageToFile)"},"content":{"rendered":"<p>Field Plot \u56f3\u3092\u3001\u8996\u70b9\u65b9\u5411\u3092\u6307\u5b9a\u3057\u3066\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u30d5\u30a1\u30a4\u30eb\u3078\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002  \u4f7f\u7528\u3059\u308b\u30b3\u30de\u30f3\u30c9 \u30fb ExportPlotImageToFile(\uff1cFileName\uff1e, &#8220;&#8221;, \uff1cplotItemName\uff1e, \uff1csetViewTopDownDirectionByRelativeCS\uff1e)  Field Plot \u56f3\u3092\u30d5\u30a1\u30a4\u30eb\u51fa\u529b\u3059\u308b  VBS \u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u4e0b\u8a18\u306b\u793a\u3057\u307e\u3059\u3002 \u672c\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u3001 \u307e\u305a\u3001Mag_E1\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001Global\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3057\u3001 \u6b21\u306b\u3001Mag_E2\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001RelativeCS1\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3057\u3001 \u6700\u5f8c\u306b\u3001Mag_E3\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001RelativeCS2\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3059\u308b\u5185\u5bb9\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u306a\u304a\u3001\u8868\u793a\u3055\u305b\u305f\u3044\u65b9\u5411\u304cZ\u8ef8\u65b9\u5411\u3068\u306a\u308b\u76f8\u5bfe\u5ea7\u6a19\u7cfb\u3092\u3042\u3089\u304b\u3058\u3081\u4f5c\u6210\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \uff1c\u6ce8\u610f\uff1e\u672c\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u3001\u5168\u3066\u306e\u52d5\u4f5c\u3092\u4fdd\u8a3c\u3059\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; Set oAnsoftApp = CreateObject(&#8220;Ansoft.ElectronicsDesktop&#8221;) Set oDesktop = oAnsoftApp.GetAppDesktop() oDesktop.RestoreWindow Set oProject = oDesktop.GetActiveProject() Set oDesign = oProject.GetActiveDesign()  output_file1 = &#8220;C:tempMagE1.bmp&#8221; output_file2 = &#8220;C:tempMagE2.bmp&#8221; output_file3 = &#8220;C:tempMagE3.bmp&#8221;  Set oModule = oDesign.GetModule(&#8220;FieldsReporter&#8221;) oModule.ExportPlotImageToFile output_file1,&#8221;&#8221;,&#8221;Mag_E1&#8243;,&#8221;Global&#8221; oModule.ExportPlotImageToFile output_file2,&#8221;&#8221;,&#8221;Mag_E2&#8243;,&#8221;RelativeCS1&#8243; oModule.ExportPlotImageToFile output_file3,&#8221;&#8221;,&#8221;Mag_E3&#8243;,&#8221;RelativeCS2&#8243; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;   \u30ad\u30fc\u30ef\u30fc\u30c9\uff1a Script, \u30b9\u30af\u30ea\u30d7\u30c8, VBS, IronPython, ExportPlotImageToFile<\/p>\n","protected":false},"template":"","class_list":["post-163394","topic","type-topic","status-publish","hentry","topic-tag-2020-r2","topic-tag-general-hfss","topic-tag-hfss"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Field Plot \u56f3\u3092\u3001\u8996\u70b9\u65b9\u5411\u3092\u6307\u5b9a\u3057\u3066\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u30d5\u30a1\u30a4\u30eb\u3078\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002 \u4f7f\u7528\u3059\u308b\u30b3\u30de\u30f3\u30c9 \u30fb ExportPlotImageToFile(\uff1cFileName\uff1e, &quot;&quot;, \uff1cplotItemName\uff1e, \uff1csetViewTopDownDirectionByRelativeCS\uff1e) Field Plot \u56f3\u3092\u30d5\u30a1\u30a4\u30eb\u51fa\u529b\u3059\u308b VBS \u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u4e0b\u8a18\u306b\u793a\u3057\u307e\u3059\u3002 \u672c\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u3001 \u307e\u305a\u3001Mag_E1\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001Global\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3057\u3001 \u6b21\u306b\u3001Mag_E2\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001RelativeCS1\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3057\u3001 \u6700\u5f8c\u306b\u3001Mag_E3\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001RelativeCS2\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3059\u308b\u5185\u5bb9\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u306a\u304a\u3001\u8868\u793a\u3055\u305b\u305f\u3044\u65b9\u5411\u304cZ\u8ef8\u65b9\u5411\u3068\u306a\u308b\u76f8\u5bfe\u5ea7\u6a19\u7cfb\u3092\u3042\u3089\u304b\u3058\u3081\u4f5c\u6210\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \uff1c\u6ce8\u610f\uff1e\u672c\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u3001\u5168\u3066\u306e\u52d5\u4f5c\u3092\u4fdd\u8a3c\u3059\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002 -------------------------------------------------------------------- Set oAnsoftApp = CreateObject(&quot;Ansoft.ElectronicsDesktop&quot;) Set oDesktop = oAnsoftApp.GetAppDesktop() oDesktop.RestoreWindow Set oProject = oDesktop.GetActiveProject() Set oDesign = oProject.GetActiveDesign() output_file1 = &quot;C:tempMagE1.bmp&quot; output_file2 = &quot;C:tempMagE2.bmp&quot; output_file3 = &quot;C:tempMagE3.bmp&quot; Set oModule = oDesign.GetModule(&quot;FieldsReporter&quot;) oModule.ExportPlotImageToFile output_file1,&quot;&quot;,&quot;Mag_E1&quot;,&quot;Global&quot; oModule.ExportPlotImageToFile output_file2,&quot;&quot;,&quot;Mag_E2&quot;,&quot;RelativeCS1&quot;\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/script%ef%bc%9afield-plot%e5%9b%b3%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%87%ba%e5%8a%9b-exportplotimagetofile-3\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Ansys Knowledge | Ansys Innovation Space\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Script\uff1aField Plot\u56f3\u306e\u30d5\u30a1\u30a4\u30eb\u51fa\u529b (ExportPlotImageToFile) | Ansys Knowledge\" \/>\n\t\t<meta property=\"og:description\" content=\"Field Plot \u56f3\u3092\u3001\u8996\u70b9\u65b9\u5411\u3092\u6307\u5b9a\u3057\u3066\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u30d5\u30a1\u30a4\u30eb\u3078\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002 \u4f7f\u7528\u3059\u308b\u30b3\u30de\u30f3\u30c9 \u30fb ExportPlotImageToFile(\uff1cFileName\uff1e, &quot;&quot;, \uff1cplotItemName\uff1e, \uff1csetViewTopDownDirectionByRelativeCS\uff1e) Field Plot \u56f3\u3092\u30d5\u30a1\u30a4\u30eb\u51fa\u529b\u3059\u308b VBS \u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u4e0b\u8a18\u306b\u793a\u3057\u307e\u3059\u3002 \u672c\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u3001 \u307e\u305a\u3001Mag_E1\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001Global\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3057\u3001 \u6b21\u306b\u3001Mag_E2\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001RelativeCS1\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3057\u3001 \u6700\u5f8c\u306b\u3001Mag_E3\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001RelativeCS2\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3059\u308b\u5185\u5bb9\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u306a\u304a\u3001\u8868\u793a\u3055\u305b\u305f\u3044\u65b9\u5411\u304cZ\u8ef8\u65b9\u5411\u3068\u306a\u308b\u76f8\u5bfe\u5ea7\u6a19\u7cfb\u3092\u3042\u3089\u304b\u3058\u3081\u4f5c\u6210\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \uff1c\u6ce8\u610f\uff1e\u672c\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u3001\u5168\u3066\u306e\u52d5\u4f5c\u3092\u4fdd\u8a3c\u3059\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002 -------------------------------------------------------------------- Set oAnsoftApp = CreateObject(&quot;Ansoft.ElectronicsDesktop&quot;) Set oDesktop = oAnsoftApp.GetAppDesktop() oDesktop.RestoreWindow Set oProject = oDesktop.GetActiveProject() Set oDesign = oProject.GetActiveDesign() output_file1 = &quot;C:tempMagE1.bmp&quot; output_file2 = &quot;C:tempMagE2.bmp&quot; output_file3 = &quot;C:tempMagE3.bmp&quot; Set oModule = oDesign.GetModule(&quot;FieldsReporter&quot;) oModule.ExportPlotImageToFile output_file1,&quot;&quot;,&quot;Mag_E1&quot;,&quot;Global&quot; oModule.ExportPlotImageToFile output_file2,&quot;&quot;,&quot;Mag_E2&quot;,&quot;RelativeCS1&quot;\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/script%ef%bc%9afield-plot%e5%9b%b3%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%87%ba%e5%8a%9b-exportplotimagetofile-3\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-01-31T09:26:17+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-01-31T09:26:17+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Script\uff1aField Plot\u56f3\u306e\u30d5\u30a1\u30a4\u30eb\u51fa\u529b (ExportPlotImageToFile) | Ansys Knowledge\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Field Plot \u56f3\u3092\u3001\u8996\u70b9\u65b9\u5411\u3092\u6307\u5b9a\u3057\u3066\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u30d5\u30a1\u30a4\u30eb\u3078\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002 \u4f7f\u7528\u3059\u308b\u30b3\u30de\u30f3\u30c9 \u30fb ExportPlotImageToFile(\uff1cFileName\uff1e, &quot;&quot;, \uff1cplotItemName\uff1e, \uff1csetViewTopDownDirectionByRelativeCS\uff1e) Field Plot \u56f3\u3092\u30d5\u30a1\u30a4\u30eb\u51fa\u529b\u3059\u308b VBS \u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u4e0b\u8a18\u306b\u793a\u3057\u307e\u3059\u3002 \u672c\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u3001 \u307e\u305a\u3001Mag_E1\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001Global\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3057\u3001 \u6b21\u306b\u3001Mag_E2\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001RelativeCS1\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3057\u3001 \u6700\u5f8c\u306b\u3001Mag_E3\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001RelativeCS2\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3059\u308b\u5185\u5bb9\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u306a\u304a\u3001\u8868\u793a\u3055\u305b\u305f\u3044\u65b9\u5411\u304cZ\u8ef8\u65b9\u5411\u3068\u306a\u308b\u76f8\u5bfe\u5ea7\u6a19\u7cfb\u3092\u3042\u3089\u304b\u3058\u3081\u4f5c\u6210\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \uff1c\u6ce8\u610f\uff1e\u672c\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u3001\u5168\u3066\u306e\u52d5\u4f5c\u3092\u4fdd\u8a3c\u3059\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002 -------------------------------------------------------------------- Set oAnsoftApp = CreateObject(&quot;Ansoft.ElectronicsDesktop&quot;) Set oDesktop = oAnsoftApp.GetAppDesktop() oDesktop.RestoreWindow Set oProject = oDesktop.GetActiveProject() Set oDesign = oProject.GetActiveDesign() output_file1 = &quot;C:tempMagE1.bmp&quot; output_file2 = &quot;C:tempMagE2.bmp&quot; output_file3 = &quot;C:tempMagE3.bmp&quot; Set oModule = oDesign.GetModule(&quot;FieldsReporter&quot;) oModule.ExportPlotImageToFile output_file1,&quot;&quot;,&quot;Mag_E1&quot;,&quot;Global&quot; oModule.ExportPlotImageToFile output_file2,&quot;&quot;,&quot;Mag_E2&quot;,&quot;RelativeCS1&quot;\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic\\\/script%ef%bc%9afield-plot%e5%9b%b3%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%87%ba%e5%8a%9b-exportplotimagetofile-3\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/topics\\\/#listItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic-tag\\\/hfss\\\/?template=japan#listItem\",\"name\":\"hfss\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic-tag\\\/hfss\\\/?template=japan#listItem\",\"position\":3,\"name\":\"hfss\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic-tag\\\/hfss\\\/?template=japan\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic\\\/script%ef%bc%9afield-plot%e5%9b%b3%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%87%ba%e5%8a%9b-exportplotimagetofile-3\\\/#listItem\",\"name\":\"Script\\uff1aField Plot\\u56f3\\u306e\\u30d5\\u30a1\\u30a4\\u30eb\\u51fa\\u529b (ExportPlotImageToFile)\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic\\\/script%ef%bc%9afield-plot%e5%9b%b3%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%87%ba%e5%8a%9b-exportplotimagetofile-3\\\/#listItem\",\"position\":4,\"name\":\"Script\\uff1aField Plot\\u56f3\\u306e\\u30d5\\u30a1\\u30a4\\u30eb\\u51fa\\u529b (ExportPlotImageToFile)\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic-tag\\\/hfss\\\/?template=japan#listItem\",\"name\":\"hfss\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/#organization\",\"name\":\"Ansys Knowledge\",\"description\":\"Ansys Innovation Space\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic\\\/script%ef%bc%9afield-plot%e5%9b%b3%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%87%ba%e5%8a%9b-exportplotimagetofile-3\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic\\\/script%ef%bc%9afield-plot%e5%9b%b3%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%87%ba%e5%8a%9b-exportplotimagetofile-3\\\/\",\"name\":\"Script\\uff1aField Plot\\u56f3\\u306e\\u30d5\\u30a1\\u30a4\\u30eb\\u51fa\\u529b (ExportPlotImageToFile) | Ansys Knowledge\",\"description\":\"Field Plot \\u56f3\\u3092\\u3001\\u8996\\u70b9\\u65b9\\u5411\\u3092\\u6307\\u5b9a\\u3057\\u3066\\u3001\\u30b9\\u30af\\u30ea\\u30d7\\u30c8\\u3067\\u30d5\\u30a1\\u30a4\\u30eb\\u3078\\u51fa\\u529b\\u3059\\u308b\\u3053\\u3068\\u304c\\u53ef\\u80fd\\u3067\\u3059\\u3002 \\u4f7f\\u7528\\u3059\\u308b\\u30b3\\u30de\\u30f3\\u30c9 \\u30fb ExportPlotImageToFile(\\uff1cFileName\\uff1e, \\\"\\\", \\uff1cplotItemName\\uff1e, \\uff1csetViewTopDownDirectionByRelativeCS\\uff1e) Field Plot \\u56f3\\u3092\\u30d5\\u30a1\\u30a4\\u30eb\\u51fa\\u529b\\u3059\\u308b VBS \\u306e\\u30b5\\u30f3\\u30d7\\u30eb\\u30b3\\u30fc\\u30c9\\u3092\\u4e0b\\u8a18\\u306b\\u793a\\u3057\\u307e\\u3059\\u3002 \\u672c\\u30b5\\u30f3\\u30d7\\u30eb\\u30b3\\u30fc\\u30c9\\u306f\\u3001 \\u307e\\u305a\\u3001Mag_E1\\u3068\\u3044\\u3046\\u8a2d\\u5b9a\\u540d\\u306e\\u30d7\\u30ed\\u30c3\\u30c8\\u56f3\\u3092\\u3001Global\\u5ea7\\u6a19\\u7cfb\\u306eZ\\u8ef8\\uff0b\\u5074\\u304b\\u3089\\u306e\\u8996\\u70b9\\u3067\\u51fa\\u529b\\u3057\\u3001 \\u6b21\\u306b\\u3001Mag_E2\\u3068\\u3044\\u3046\\u8a2d\\u5b9a\\u540d\\u306e\\u30d7\\u30ed\\u30c3\\u30c8\\u56f3\\u3092\\u3001RelativeCS1\\u5ea7\\u6a19\\u7cfb\\u306eZ\\u8ef8\\uff0b\\u5074\\u304b\\u3089\\u306e\\u8996\\u70b9\\u3067\\u51fa\\u529b\\u3057\\u3001 \\u6700\\u5f8c\\u306b\\u3001Mag_E3\\u3068\\u3044\\u3046\\u8a2d\\u5b9a\\u540d\\u306e\\u30d7\\u30ed\\u30c3\\u30c8\\u56f3\\u3092\\u3001RelativeCS2\\u5ea7\\u6a19\\u7cfb\\u306eZ\\u8ef8\\uff0b\\u5074\\u304b\\u3089\\u306e\\u8996\\u70b9\\u3067\\u51fa\\u529b\\u3059\\u308b\\u5185\\u5bb9\\u3068\\u306a\\u3063\\u3066\\u3044\\u307e\\u3059\\u3002 \\u306a\\u304a\\u3001\\u8868\\u793a\\u3055\\u305b\\u305f\\u3044\\u65b9\\u5411\\u304cZ\\u8ef8\\u65b9\\u5411\\u3068\\u306a\\u308b\\u76f8\\u5bfe\\u5ea7\\u6a19\\u7cfb\\u3092\\u3042\\u3089\\u304b\\u3058\\u3081\\u4f5c\\u6210\\u3057\\u3066\\u304a\\u304f\\u5fc5\\u8981\\u304c\\u3042\\u308a\\u307e\\u3059\\u3002 \\uff1c\\u6ce8\\u610f\\uff1e\\u672c\\u30b5\\u30f3\\u30d7\\u30eb\\u30b3\\u30fc\\u30c9\\u306f\\u3001\\u5168\\u3066\\u306e\\u52d5\\u4f5c\\u3092\\u4fdd\\u8a3c\\u3059\\u308b\\u3082\\u306e\\u3067\\u306f\\u3042\\u308a\\u307e\\u305b\\u3093\\u3002 -------------------------------------------------------------------- Set oAnsoftApp = CreateObject(\\\"Ansoft.ElectronicsDesktop\\\") Set oDesktop = oAnsoftApp.GetAppDesktop() oDesktop.RestoreWindow Set oProject = oDesktop.GetActiveProject() Set oDesign = oProject.GetActiveDesign() output_file1 = \\\"C:tempMagE1.bmp\\\" output_file2 = \\\"C:tempMagE2.bmp\\\" output_file3 = \\\"C:tempMagE3.bmp\\\" Set oModule = oDesign.GetModule(\\\"FieldsReporter\\\") oModule.ExportPlotImageToFile output_file1,\\\"\\\",\\\"Mag_E1\\\",\\\"Global\\\" oModule.ExportPlotImageToFile output_file2,\\\"\\\",\\\"Mag_E2\\\",\\\"RelativeCS1\\\"\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic\\\/script%ef%bc%9afield-plot%e5%9b%b3%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%87%ba%e5%8a%9b-exportplotimagetofile-3\\\/#breadcrumblist\"},\"datePublished\":\"2023-01-31T09:26:17+00:00\",\"dateModified\":\"2023-01-31T09:26:17+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/#website\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/\",\"name\":\"Ansys Knowledge\",\"description\":\"Ansys Innovation Space\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Script\uff1aField Plot\u56f3\u306e\u30d5\u30a1\u30a4\u30eb\u51fa\u529b (ExportPlotImageToFile) | Ansys Knowledge","description":"Field Plot \u56f3\u3092\u3001\u8996\u70b9\u65b9\u5411\u3092\u6307\u5b9a\u3057\u3066\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u30d5\u30a1\u30a4\u30eb\u3078\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002 \u4f7f\u7528\u3059\u308b\u30b3\u30de\u30f3\u30c9 \u30fb ExportPlotImageToFile(\uff1cFileName\uff1e, \"\", \uff1cplotItemName\uff1e, \uff1csetViewTopDownDirectionByRelativeCS\uff1e) Field Plot \u56f3\u3092\u30d5\u30a1\u30a4\u30eb\u51fa\u529b\u3059\u308b VBS \u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u4e0b\u8a18\u306b\u793a\u3057\u307e\u3059\u3002 \u672c\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u3001 \u307e\u305a\u3001Mag_E1\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001Global\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3057\u3001 \u6b21\u306b\u3001Mag_E2\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001RelativeCS1\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3057\u3001 \u6700\u5f8c\u306b\u3001Mag_E3\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001RelativeCS2\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3059\u308b\u5185\u5bb9\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u306a\u304a\u3001\u8868\u793a\u3055\u305b\u305f\u3044\u65b9\u5411\u304cZ\u8ef8\u65b9\u5411\u3068\u306a\u308b\u76f8\u5bfe\u5ea7\u6a19\u7cfb\u3092\u3042\u3089\u304b\u3058\u3081\u4f5c\u6210\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \uff1c\u6ce8\u610f\uff1e\u672c\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u3001\u5168\u3066\u306e\u52d5\u4f5c\u3092\u4fdd\u8a3c\u3059\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002 -------------------------------------------------------------------- Set oAnsoftApp = CreateObject(\"Ansoft.ElectronicsDesktop\") Set oDesktop = oAnsoftApp.GetAppDesktop() oDesktop.RestoreWindow Set oProject = oDesktop.GetActiveProject() Set oDesign = oProject.GetActiveDesign() output_file1 = \"C:tempMagE1.bmp\" output_file2 = \"C:tempMagE2.bmp\" output_file3 = \"C:tempMagE3.bmp\" Set oModule = oDesign.GetModule(\"FieldsReporter\") oModule.ExportPlotImageToFile output_file1,\"\",\"Mag_E1\",\"Global\" oModule.ExportPlotImageToFile output_file2,\"\",\"Mag_E2\",\"RelativeCS1\"","canonical_url":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/script%ef%bc%9afield-plot%e5%9b%b3%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%87%ba%e5%8a%9b-exportplotimagetofile-3\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/script%ef%bc%9afield-plot%e5%9b%b3%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%87%ba%e5%8a%9b-exportplotimagetofile-3\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge#listItem","position":1,"name":"Home","item":"https:\/\/innovationspace.ansys.com\/knowledge","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/topics\/#listItem","position":2,"name":"Topics","item":"https:\/\/innovationspace.ansys.com\/knowledge\/topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic-tag\/hfss\/?template=japan#listItem","name":"hfss"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic-tag\/hfss\/?template=japan#listItem","position":3,"name":"hfss","item":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic-tag\/hfss\/?template=japan","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/script%ef%bc%9afield-plot%e5%9b%b3%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%87%ba%e5%8a%9b-exportplotimagetofile-3\/#listItem","name":"Script\uff1aField Plot\u56f3\u306e\u30d5\u30a1\u30a4\u30eb\u51fa\u529b (ExportPlotImageToFile)"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/script%ef%bc%9afield-plot%e5%9b%b3%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%87%ba%e5%8a%9b-exportplotimagetofile-3\/#listItem","position":4,"name":"Script\uff1aField Plot\u56f3\u306e\u30d5\u30a1\u30a4\u30eb\u51fa\u529b (ExportPlotImageToFile)","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic-tag\/hfss\/?template=japan#listItem","name":"hfss"}}]},{"@type":"Organization","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/#organization","name":"Ansys Knowledge","description":"Ansys Innovation Space","url":"https:\/\/innovationspace.ansys.com\/knowledge\/"},{"@type":"WebPage","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/script%ef%bc%9afield-plot%e5%9b%b3%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%87%ba%e5%8a%9b-exportplotimagetofile-3\/#webpage","url":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/script%ef%bc%9afield-plot%e5%9b%b3%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%87%ba%e5%8a%9b-exportplotimagetofile-3\/","name":"Script\uff1aField Plot\u56f3\u306e\u30d5\u30a1\u30a4\u30eb\u51fa\u529b (ExportPlotImageToFile) | Ansys Knowledge","description":"Field Plot \u56f3\u3092\u3001\u8996\u70b9\u65b9\u5411\u3092\u6307\u5b9a\u3057\u3066\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u30d5\u30a1\u30a4\u30eb\u3078\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002 \u4f7f\u7528\u3059\u308b\u30b3\u30de\u30f3\u30c9 \u30fb ExportPlotImageToFile(\uff1cFileName\uff1e, \"\", \uff1cplotItemName\uff1e, \uff1csetViewTopDownDirectionByRelativeCS\uff1e) Field Plot \u56f3\u3092\u30d5\u30a1\u30a4\u30eb\u51fa\u529b\u3059\u308b VBS \u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u4e0b\u8a18\u306b\u793a\u3057\u307e\u3059\u3002 \u672c\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u3001 \u307e\u305a\u3001Mag_E1\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001Global\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3057\u3001 \u6b21\u306b\u3001Mag_E2\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001RelativeCS1\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3057\u3001 \u6700\u5f8c\u306b\u3001Mag_E3\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001RelativeCS2\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3059\u308b\u5185\u5bb9\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u306a\u304a\u3001\u8868\u793a\u3055\u305b\u305f\u3044\u65b9\u5411\u304cZ\u8ef8\u65b9\u5411\u3068\u306a\u308b\u76f8\u5bfe\u5ea7\u6a19\u7cfb\u3092\u3042\u3089\u304b\u3058\u3081\u4f5c\u6210\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \uff1c\u6ce8\u610f\uff1e\u672c\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u3001\u5168\u3066\u306e\u52d5\u4f5c\u3092\u4fdd\u8a3c\u3059\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002 -------------------------------------------------------------------- Set oAnsoftApp = CreateObject(\"Ansoft.ElectronicsDesktop\") Set oDesktop = oAnsoftApp.GetAppDesktop() oDesktop.RestoreWindow Set oProject = oDesktop.GetActiveProject() Set oDesign = oProject.GetActiveDesign() output_file1 = \"C:tempMagE1.bmp\" output_file2 = \"C:tempMagE2.bmp\" output_file3 = \"C:tempMagE3.bmp\" Set oModule = oDesign.GetModule(\"FieldsReporter\") oModule.ExportPlotImageToFile output_file1,\"\",\"Mag_E1\",\"Global\" oModule.ExportPlotImageToFile output_file2,\"\",\"Mag_E2\",\"RelativeCS1\"","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/knowledge\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/script%ef%bc%9afield-plot%e5%9b%b3%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%87%ba%e5%8a%9b-exportplotimagetofile-3\/#breadcrumblist"},"datePublished":"2023-01-31T09:26:17+00:00","dateModified":"2023-01-31T09:26:17+00:00"},{"@type":"WebSite","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/#website","url":"https:\/\/innovationspace.ansys.com\/knowledge\/","name":"Ansys Knowledge","description":"Ansys Innovation Space","inLanguage":"en-US","publisher":{"@id":"https:\/\/innovationspace.ansys.com\/knowledge\/#organization"}}]},"og:locale":"en_US","og:site_name":"Ansys Knowledge | Ansys Innovation Space","og:type":"article","og:title":"Script\uff1aField Plot\u56f3\u306e\u30d5\u30a1\u30a4\u30eb\u51fa\u529b (ExportPlotImageToFile) | Ansys Knowledge","og:description":"Field Plot \u56f3\u3092\u3001\u8996\u70b9\u65b9\u5411\u3092\u6307\u5b9a\u3057\u3066\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u30d5\u30a1\u30a4\u30eb\u3078\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002 \u4f7f\u7528\u3059\u308b\u30b3\u30de\u30f3\u30c9 \u30fb ExportPlotImageToFile(\uff1cFileName\uff1e, &quot;&quot;, \uff1cplotItemName\uff1e, \uff1csetViewTopDownDirectionByRelativeCS\uff1e) Field Plot \u56f3\u3092\u30d5\u30a1\u30a4\u30eb\u51fa\u529b\u3059\u308b VBS \u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u4e0b\u8a18\u306b\u793a\u3057\u307e\u3059\u3002 \u672c\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u3001 \u307e\u305a\u3001Mag_E1\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001Global\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3057\u3001 \u6b21\u306b\u3001Mag_E2\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001RelativeCS1\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3057\u3001 \u6700\u5f8c\u306b\u3001Mag_E3\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001RelativeCS2\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3059\u308b\u5185\u5bb9\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u306a\u304a\u3001\u8868\u793a\u3055\u305b\u305f\u3044\u65b9\u5411\u304cZ\u8ef8\u65b9\u5411\u3068\u306a\u308b\u76f8\u5bfe\u5ea7\u6a19\u7cfb\u3092\u3042\u3089\u304b\u3058\u3081\u4f5c\u6210\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \uff1c\u6ce8\u610f\uff1e\u672c\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u3001\u5168\u3066\u306e\u52d5\u4f5c\u3092\u4fdd\u8a3c\u3059\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002 -------------------------------------------------------------------- Set oAnsoftApp = CreateObject(&quot;Ansoft.ElectronicsDesktop&quot;) Set oDesktop = oAnsoftApp.GetAppDesktop() oDesktop.RestoreWindow Set oProject = oDesktop.GetActiveProject() Set oDesign = oProject.GetActiveDesign() output_file1 = &quot;C:tempMagE1.bmp&quot; output_file2 = &quot;C:tempMagE2.bmp&quot; output_file3 = &quot;C:tempMagE3.bmp&quot; Set oModule = oDesign.GetModule(&quot;FieldsReporter&quot;) oModule.ExportPlotImageToFile output_file1,&quot;&quot;,&quot;Mag_E1&quot;,&quot;Global&quot; oModule.ExportPlotImageToFile output_file2,&quot;&quot;,&quot;Mag_E2&quot;,&quot;RelativeCS1&quot;","og:url":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/script%ef%bc%9afield-plot%e5%9b%b3%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%87%ba%e5%8a%9b-exportplotimagetofile-3\/","article:published_time":"2023-01-31T09:26:17+00:00","article:modified_time":"2023-01-31T09:26:17+00:00","twitter:card":"summary_large_image","twitter:title":"Script\uff1aField Plot\u56f3\u306e\u30d5\u30a1\u30a4\u30eb\u51fa\u529b (ExportPlotImageToFile) | Ansys Knowledge","twitter:description":"Field Plot \u56f3\u3092\u3001\u8996\u70b9\u65b9\u5411\u3092\u6307\u5b9a\u3057\u3066\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u30d5\u30a1\u30a4\u30eb\u3078\u51fa\u529b\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002 \u4f7f\u7528\u3059\u308b\u30b3\u30de\u30f3\u30c9 \u30fb ExportPlotImageToFile(\uff1cFileName\uff1e, &quot;&quot;, \uff1cplotItemName\uff1e, \uff1csetViewTopDownDirectionByRelativeCS\uff1e) Field Plot \u56f3\u3092\u30d5\u30a1\u30a4\u30eb\u51fa\u529b\u3059\u308b VBS \u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u4e0b\u8a18\u306b\u793a\u3057\u307e\u3059\u3002 \u672c\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u3001 \u307e\u305a\u3001Mag_E1\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001Global\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3057\u3001 \u6b21\u306b\u3001Mag_E2\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001RelativeCS1\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3057\u3001 \u6700\u5f8c\u306b\u3001Mag_E3\u3068\u3044\u3046\u8a2d\u5b9a\u540d\u306e\u30d7\u30ed\u30c3\u30c8\u56f3\u3092\u3001RelativeCS2\u5ea7\u6a19\u7cfb\u306eZ\u8ef8\uff0b\u5074\u304b\u3089\u306e\u8996\u70b9\u3067\u51fa\u529b\u3059\u308b\u5185\u5bb9\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u306a\u304a\u3001\u8868\u793a\u3055\u305b\u305f\u3044\u65b9\u5411\u304cZ\u8ef8\u65b9\u5411\u3068\u306a\u308b\u76f8\u5bfe\u5ea7\u6a19\u7cfb\u3092\u3042\u3089\u304b\u3058\u3081\u4f5c\u6210\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \uff1c\u6ce8\u610f\uff1e\u672c\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u3001\u5168\u3066\u306e\u52d5\u4f5c\u3092\u4fdd\u8a3c\u3059\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002 -------------------------------------------------------------------- Set oAnsoftApp = CreateObject(&quot;Ansoft.ElectronicsDesktop&quot;) Set oDesktop = oAnsoftApp.GetAppDesktop() oDesktop.RestoreWindow Set oProject = oDesktop.GetActiveProject() Set oDesign = oProject.GetActiveDesign() output_file1 = &quot;C:tempMagE1.bmp&quot; output_file2 = &quot;C:tempMagE2.bmp&quot; output_file3 = &quot;C:tempMagE3.bmp&quot; Set oModule = oDesign.GetModule(&quot;FieldsReporter&quot;) oModule.ExportPlotImageToFile output_file1,&quot;&quot;,&quot;Mag_E1&quot;,&quot;Global&quot; oModule.ExportPlotImageToFile output_file2,&quot;&quot;,&quot;Mag_E2&quot;,&quot;RelativeCS1&quot;"},"aioseo_meta_data":{"post_id":"163394","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2025-10-17 20:37:29","updated":"2026-07-29 09:31:43","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/knowledge\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/knowledge\/topics\/\" title=\"Topics\">Topics<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic-tag\/hfss\/?template=japan\" title=\"hfss\">hfss<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tScript\uff1aField Plot\u56f3\u306e\u30d5\u30a1\u30a4\u30eb\u51fa\u529b (ExportPlotImageToFile)\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/innovationspace.ansys.com\/knowledge"},{"label":"Topics","link":"https:\/\/innovationspace.ansys.com\/knowledge\/topics\/"},{"label":"hfss","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic-tag\/hfss\/?template=japan"},{"label":"Script\uff1aField Plot\u56f3\u306e\u30d5\u30a1\u30a4\u30eb\u51fa\u529b (ExportPlotImageToFile)","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/script%ef%bc%9afield-plot%e5%9b%b3%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e5%87%ba%e5%8a%9b-exportplotimagetofile-3\/"}],"acf":[],"custom_fields":[{"0":{"_wp_page_template":["default"],"_bbp_last_active_time":["1-31-2023  20:20:49"],"_bbp_forum_id":["162358"],"_bbp_author_ip":["209.182.204.162"],"_btv_view_count":["190"]},"test":"articlesansys-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/163394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/163394\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/media?parent=163394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}