{"id":26075,"date":"2020-03-30T10:29:00","date_gmt":"2020-03-30T14:29:00","guid":{"rendered":"https:\/\/blogs.solidworks.com\/tech\/?p=26075"},"modified":"2020-03-30T10:29:00","modified_gmt":"2020-03-30T14:29:00","slug":"solidworks-support-monthly-news-march-2020","status":"publish","type":"post","link":"https:\/\/blogs.solidworks.com\/tech\/2020\/03\/solidworks-support-monthly-news-march-2020.html","title":{"rendered":"SOLIDWORKS Support Monthly News &#8211; March 2020"},"content":{"rendered":"<p style=\"margin: 0in;font-family: Calibri;font-size: 11.0pt\">Hello to all,<\/p>\n<p style=\"margin: 0in;font-family: Calibri;font-size: 11.0pt\">Welcome to the new edition of the SOLIDWORKS Support Monthly News!\u00a0 This monthly news blog is co-authored by members of the SOLIDWORKS Technical Support teams worldwide.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"margin: 0in;font-family: Calibri;font-size: 20.0pt\">Configuring the SOLIDWORKS PDM &#8216;Draftsight to PDF&#8217; task to use options such as <em>&#8216;Print Style Table&#8217;<\/em>, <em>&#8216;Use Layers in PDF file&#8217;<\/em>, <em>&#8216;Custom bitmap resolution&#8217;<\/em> and<em> &#8216;Embedded True Type Fonts&#8217;<\/em>.<\/p>\n<p style=\"margin: 0in;font-family: Calibri;font-size: 11.0pt\"><span style=\"font-style: italic\">By Petr Sadlo<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>The SWPDFTaskAddIn allows user to generate PDF file from DraftSight. However, until DraftSight 2018 there was no API exposed in order to control the various options such as \u2018Print Style Table\u2019, \u2018Use Layers in PDF file\u2019, \u2019Custom bitmap resolution\u2019 and \u2018Embedded True Type Fonts\u2019 that are available when exporting PDF from DraftSight manually using the DraftSight UI.<\/p>\n<p>The SWPDFTaskAddIn utilize the \u2018Export\u2019 &gt; \u2018PDF Export\u2019 option from DraftSight.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-26228\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/Export-option.png\" alt=\"\" width=\"588\" height=\"536\" srcset=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/Export-option.png 588w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/Export-option-300x273.png 300w\" sizes=\"auto, (max-width: 588px) 100vw, 588px\" \/><\/p>\n<p>The following example demonstrate the script modification needed to control those options. This script modification is valid for SWPDM2019sp4 or newer as it utilizes new DraftSight API call <strong>ExportToPDF2<\/strong> that is not present in previous versions of \u2018DraftSight.Interop.dsAutomation.dll\u2019 distributed with SOLIDWORK PDM. Also make sure that the task Add-In (SWPDFTaskAddIn) is updated to 2019sp4 version.<\/p>\n<p><strong>Confirm that your \u2018DraftSight.Interop.dsAutomation.dll\u2019 is at least 2019.<\/strong> Right mouse click on \u2018DraftSight.Interop.dsAutomation.dll\u2019 located in \u2018%appdata%\\SWPDFTaskAddIn\u2019, select \u2018Properties\u2019 and on the \u2018Details\u2019 tab make sure that the \u2018File version\u2019 starts with at least with 2019<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-26229\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/properties-1.png\" alt=\"\" width=\"363\" height=\"283\" srcset=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/properties-1.png 363w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/properties-1-300x234.png 300w\" sizes=\"auto, (max-width: 363px) 100vw, 363px\" \/><\/p>\n<p><strong>Upgrade DraftSight Interop process<\/strong><\/p>\n<p>The \u2018DraftSight.Interop.dsAutomation.dll\u2019 is part of the SWPDFTaskAddIn. For example, for the SWPDM2019sp3 Add-In the DraftSight.Interop.dsAutomation.dll is the outdated 2014 version as shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-26230\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-interop-process.png\" alt=\"\" width=\"686\" height=\"544\" srcset=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-interop-process.png 686w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-interop-process-300x238.png 300w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-interop-process-615x488.png 615w\" sizes=\"auto, (max-width: 686px) 100vw, 686px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>You can upgrade the client by installing SWPDM2019sp4 or you can also upgrade the Task Add-In only by drag and drop the Add-In from 2019sp4 DraftSight_to_PDF_gb.cex into your 2019sp0-sp3 vault as shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-26231\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-interop-process-2.png\" alt=\"\" width=\"687\" height=\"548\" srcset=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-interop-process-2.png 687w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-interop-process-2-300x239.png 300w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-interop-process-2-615x491.png 615w\" sizes=\"auto, (max-width: 687px) 100vw, 687px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>1. Open the \u2018DraftSight to PDF\u2019, \u2018Output PDF Details\u2019 and press the \u2018Advanced Scripting Options\u2019 to access the task script.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-26232\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-task-step1.png\" alt=\"\" width=\"687\" height=\"606\" srcset=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-task-step1.png 687w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-task-step1-300x265.png 300w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-task-step1-615x542.png 615w\" sizes=\"auto, (max-width: 687px) 100vw, 687px\" \/><\/p>\n<p>2. Locate the section towards the end of the script where the script defines which sheet to select preceding with comment (&#8216;define which sheet to select) and modify the code as indicated below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-26233\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-task-step-2.jpg\" alt=\"\" width=\"1418\" height=\"766\" srcset=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-task-step-2.jpg 1383w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-task-step-2-300x162.jpg 300w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-task-step-2-615x332.jpg 615w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-task-step-2-768x415.jpg 768w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-task-step-2-728x393.jpg 728w\" sizes=\"auto, (max-width: 1418px) 100vw, 1418px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-26234\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-task-step-2-old.jpg\" alt=\"\" width=\"1381\" height=\"492\" srcset=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-task-step-2-old.jpg 1381w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-task-step-2-old-300x107.jpg 300w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-task-step-2-old-615x219.jpg 615w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-task-step-2-old-768x274.jpg 768w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-task-step-2-old-728x259.jpg 728w\" sizes=\"auto, (max-width: 1381px) 100vw, 1381px\" \/><\/p>\n<p>3. Press OK and thoroughly test the change.<\/p>\n<p>&nbsp;<\/p>\n<p>Options and settings from the DraftSight API help that are now avaliable for the ExportToPdf2 call:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-26235\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-API-DS-calls.jpg\" alt=\"\" width=\"1479\" height=\"851\" srcset=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-API-DS-calls.jpg 1347w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-API-DS-calls-300x173.jpg 300w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-API-DS-calls-615x354.jpg 615w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-API-DS-calls-768x442.jpg 768w, https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/DS-API-DS-calls-728x419.jpg 728w\" sizes=\"auto, (max-width: 1479px) 100vw, 1479px\" \/><\/p>\n<p>You can find this information as a part of KB solution S-076456 \u2013 \u2018In SOLIDWORKS\u00ae PDM, how do I configure the \u2018DraftSight to PDF\u2019 task to use the \u2018Print Style Table\u2019, \u2018Use Layers in PDF file\u2019, Custom bitmap resolution\u2019 and \u2018Embedded True Type Fonts\u2019 options?\u2019<\/p>\n<p>&nbsp;<\/p>\n<p style=\"margin: 0in;font-family: Calibri;font-size: 20.0pt\"><span style=\"font-weight: bold\">Noteworthy Solutions from the SOLIDWORKS Knowledge Base<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-408\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/Screen-capture3.png\" alt=\"icon - SW\" width=\"16\" height=\"16\" \/> When I start SOLIDWORKS\u00ae Visualize, why do I see the error &#8216;SOLIDWORKS Visualize has encountered an error&#8217;?<\/b><br \/>\nFor more information, see Solution Id: <a href=\"https:\/\/customerportal.solidworks.com\/siebel\/app\/customerportal\/enu?SWECmd=GotoView&amp;SWEView=SW+OUI+KBase+Solution+View+(eService)&amp;SWERF=1&amp;SWEBU=1&amp;SWEApplet0=SW+OUI+KBase+Solution+Form+Applet+(eService)&amp;SWERowId0=1-A8NT9GB\" target=\"_blank\" rel=\"noopener noreferrer\">S-077448<\/a>.<\/p>\n<p><b><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7480\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/SOLIDWORKS-Electrical-Icon.png\" alt=\"\" width=\"16\" height=\"16\" \/> Why do changes I make in the SOLIDWORKS\u00ae Electrical &#8216;Application Settings&#8217; dialog box not save when closing and restarting the application?<\/b><br \/>\nFor more information on this, see Solution Id: <a href=\"https:\/\/customerportal.solidworks.com\/siebel\/app\/customerportal\/enu?SWECmd=GotoView&amp;SWEView=SW+OUI+KBase+Solution+View+(eService)&amp;SWERF=1&amp;SWEBU=1&amp;SWEApplet0=SW+OUI+KBase+Solution+Form+Applet+(eService)&amp;SWERowId0=1-A945E\" target=\"_blank\" rel=\"noopener noreferrer\">S-077497<\/a>.<\/p>\n<p><b><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-405\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/Screen-capture1.png\" alt=\"Icon - EPDM\" width=\"16\" height=\"16\" \/> When using a search card in the SOLIDWORKS\u00ae PDM 2019 SP5 software, what can cause the search to fail with the error \u2018Could not access the item in the database&#8217;?<\/b><br \/>\nFor more information, see Solution Id: <a href=\"https:\/\/customerportal.solidworks.com\/siebel\/app\/customerportal\/enu?SWECmd=GotoView&amp;SWEView=SW+OUI+KBase+Solution+View+(eService)&amp;SWERF=1&amp;SWEBU=1&amp;SWEApplet0=SW+OUI+KBase+Solution+Form+Applet+(eService)&amp;SWERowId0=1-A8RWTN4\" target=\"_blank\" rel=\"noopener noreferrer\">S-077467<\/a>.<\/p>\n<p><b><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-410\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/Screen-capture4.png\" alt=\"\" width=\"16\" height=\"16\" \/> In SOLIDWORKS\u00ae Plastics, what is the location of the &#8216;Runner Balancing&#8217; option?<br \/>\n<\/b>For more information on this, see Solution Id: <a href=\"https:\/\/customerportal.solidworks.com\/siebel\/app\/customerportal\/enu?SWECmd=GotoView&amp;SWEView=SW+OUI+KBase+Solution+View+(eService)&amp;SWERF=1&amp;SWEBU=1&amp;SWEApplet0=SW+OUI+KBase+Solution+Form+Applet+(eService)&amp;SWERowId0=1-A8SB7TQ\" target=\"_blank\" rel=\"noopener noreferrer\">S-077469<\/a>.<\/p>\n<p><b><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-639\" src=\"https:\/\/blog-assets.solidworks.com\/uploads\/sites\/4\/Flow-Simulation-icon.png\" alt=\"\" width=\"16\" height=\"16\" \/> Does using radiation in a vacuum in the SOLIDWORKS\u00ae Flow Simulation application always require meshing of the vacuum region?<\/b><br \/>\nFor more information, check out Solution Id: <a href=\"https:\/\/customerportal.solidworks.com\/siebel\/app\/customerportal\/enu?SWECmd=GotoView&amp;SWEView=SW+OUI+KBase+Solution+View+(eService)&amp;SWERF=1&amp;SWEBU=1&amp;SWEApplet0=SW+OUI+KBase+Solution+Form+Applet+(eService)&amp;SWERowId0=1-AAC8IRN\" target=\"_blank\" rel=\"noopener noreferrer\">S-077547<\/a>.<\/p>\n<hr \/>\n<p style=\"margin: 0in;font-family: Calibri;font-size: 11.0pt\">That\u2019s it for this month. Thanks for reading this edition of SOLIDWORKS Support News. If you need additional help with these issues or any others, please contact your SOLIDWORKS Value Added Reseller.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"margin: 0in;font-family: Calibri;font-size: 11.0pt\">Comments and suggestions are always welcome. You can enter them below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello to all, Welcome to the new edition of the SOLIDWORKS Support Monthly News!\u00a0 This monthly news blog is co-authored by members of the SOLIDWORKS Technical Support teams worldwide. &nbsp; Configuring the SOLIDWORKS PDM &#8216;Draftsight to PDF&#8217; task to use<\/p>\n... <a href=\"https:\/\/blogs.solidworks.com\/tech\/2020\/03\/solidworks-support-monthly-news-march-2020.html\">Continued<\/a>","protected":false},"author":458,"featured_media":6787,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[25,497,34,35,1],"tags":[888,2688,1006],"class_list":["post-26075","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-solidworks-enterprise-pdm","category-solidworks-support-monthly-news","category-support","category-tips-tricks","category-uncategorized","tag-draftsight","tag-draftsight-to-pdf-task","tag-solidworks-pdm"],"acf":[],"_links":{"self":[{"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/posts\/26075","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/users\/458"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/comments?post=26075"}],"version-history":[{"count":9,"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/posts\/26075\/revisions"}],"predecessor-version":[{"id":26242,"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/posts\/26075\/revisions\/26242"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/media\/6787"}],"wp:attachment":[{"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/media?parent=26075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/categories?post=26075"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.solidworks.com\/tech\/wp-json\/wp\/v2\/tags?post=26075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}