{"id":83,"date":"2008-12-07T23:10:35","date_gmt":"2008-12-07T12:10:35","guid":{"rendered":"http:\/\/www.madox.net\/blog\/?p=83"},"modified":"2008-12-15T22:41:44","modified_gmt":"2008-12-15T11:41:44","slug":"parametric-modelling-in-google-sketchup-and-ponoko-friendly-svg-export-for-sketchup","status":"publish","type":"post","link":"http:\/\/www.madox.net\/blog\/2008\/12\/07\/parametric-modelling-in-google-sketchup-and-ponoko-friendly-svg-export-for-sketchup\/","title":{"rendered":"Parametric Modelling in Google Sketchup and Ponoko friendly SVG export for Sketchup"},"content":{"rendered":"<h2>The problem<\/h2>\n<p>I&#8217;ve recently signed up <a href=\"http:\/\/www.ponoko.com\" target=\"_blank\">Ponoko&#8217;s<\/a> Prime account and wanted to get something made.\u00a0 I rather into a rather annoying problem, Alibre Xpress doesn&#8217;t have a SVG export.\u00a0 I needed a way to design something and export it as SVG.<\/p>\n<p>I&#8217;ll admit the long post title is a problem too \ud83d\ude42<\/p>\n<p><!--more--><\/p>\n<h2>A possible solution?<\/h2>\n<p>After searching the forums for a solution&#8230; I stumbled across a very promising method by using Alibre to export to DXF, using <a href=\"http:\/\/www.openoffice.org\" target=\"_blank\">OpenOffice<\/a> draw to import the DXF and then save-as SVG.\u00a0 Summary result &#8211; it didn&#8217;t work.\u00a0 OpenOffice had trouble opening the DXF file and so did the developmental release of Inkscape which includes a native DXF import.<\/p>\n<p>Scratch that.<\/p>\n<h2>Google SketchUp?<\/h2>\n<p>Then I thought of using <a href=\"http:\/\/sketchup.google.com\/\" target=\"_blank\">Google SketchUp<\/a> instead of <a href=\"http:\/\/www.alibre.com\/xpress\/\">Alibre Xpress <\/a>because there was the possibility that it&#8217;ll work under <a href=\"http:\/\/www.ubuntu.com\/\" target=\"_blank\">Ubuntu<\/a> with Wine rather than me popping back to windows just to use Alibre [Which doesn&#8217;t work with Wine].\u00a0 First of all, I couldn&#8217;t get it working with Wine because of my laptop graphics card, but apparently it works for other people if you follow the <a href=\"http:\/\/wiki.winehq.org\/GoogleSketchup\" target=\"_blank\">winehq wiki help<\/a>.\u00a0 But I wasn&#8217;t going to give up&#8230; back to windows I go and some more googling research later I stumbled upon some interesting plugins for google sketchup.<\/p>\n<h2>SVG Outline Export Plugin<\/h2>\n<p><a href=\"http:\/\/flightsofideas.com\/\" target=\"_blank\">Flight of ideas<\/a> has created a <a href=\"http:\/\/code.google.com\/p\/sketchup-svg-outline-plugin\/\" target=\"_blank\">plug-in<\/a> for the purpose of exporting SketchUp models into Ponoko friendly SVG files.\u00a0 Go to his blog or the plug-in page for intructions on how to install and use the plugin, but here are some screenshots to get you interested.<\/p>\n<figure id=\"attachment_85\" aria-describedby=\"caption-attachment-85\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2008\/12\/exportsvg.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-85\" title=\"exportsvg\" src=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2008\/12\/exportsvg-300x129.png\" alt=\"Yup its kinda that easy to use...\" width=\"300\" height=\"129\" srcset=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2008\/12\/exportsvg-300x129.png 300w, http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2008\/12\/exportsvg.png 670w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-85\" class=\"wp-caption-text\">Yup its kinda that easy to use...<\/figcaption><\/figure>\n<p><a href=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2008\/12\/exportedsvg.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-84\" title=\"exportedsvg\" src=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2008\/12\/exportedsvg-289x300.png\" alt=\"\" width=\"289\" height=\"300\" srcset=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2008\/12\/exportedsvg-289x300.png 289w, http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2008\/12\/exportedsvg.png 677w\" sizes=\"auto, (max-width: 289px) 85vw, 289px\" \/><\/a><\/p>\n<h2>Parametric Modeling in Google SketchUp?<\/h2>\n<p><a href=\"http:\/\/drivingdimensions.com\/\" target=\"_blank\">Driving Dimensions<\/a> is a sketchup plugin that attempts to add parametric capabilities onto sketchup.\u00a0 I&#8217;m pretty sure this is a pretty well kept secret because there weren&#8217;t all that many people that have <a href=\"http:\/\/drivingdimensions.com\/SketchUp\/download.php\" target=\"_blank\">downloaded<\/a> this plug-in (I was the 938th person).\u00a0 Whilst it is an interesting concept, functionality is rather limited on the current early releases.\u00a0 Basically you can add linear dimensions and angular dimensions onto lines\/objects\/whatever and the plugin will manage the these parametric constraints for you.\u00a0 While it sounds good, in practice its still a nightmare to use because the sheer amount of (dimension) constraints you have to add to fully constrain a sketch.<\/p>\n<figure id=\"attachment_86\" aria-describedby=\"caption-attachment-86\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2008\/12\/sketchupparametric.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-86\" title=\"sketchupparametric\" src=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2008\/12\/sketchupparametric-300x180.png\" alt=\"So many constraints for such a simple piece\" width=\"300\" height=\"180\" srcset=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2008\/12\/sketchupparametric-300x180.png 300w, http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2008\/12\/sketchupparametric.png 1280w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-86\" class=\"wp-caption-text\">So many constraints for such a simple piece<\/figcaption><\/figure>\n<figure id=\"attachment_87\" aria-describedby=\"caption-attachment-87\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2008\/12\/alibreparametric.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-87\" title=\"alibreparametric\" src=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2008\/12\/alibreparametric-300x225.png\" alt=\"So much easier in Alibre...\" width=\"300\" height=\"225\" srcset=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2008\/12\/alibreparametric-300x225.png 300w, http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2008\/12\/alibreparametric.png 800w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-87\" class=\"wp-caption-text\">Comparison - So much easier in Alibre...<\/figcaption><\/figure>\n<p>Scratch this idea too&#8230;<\/p>\n<h2>Alibre has a Google SketchUp export plugin!<\/h2>\n<p>Hidden away (I couldn&#8217;t find the navigation link at all from the alibre webpage!) and apparently only accessible if you know the exact name of the plugin and by a google search is the <a href=\"http:\/\/www.alibre.com\/promos\/online\/3DSketchUp.asp\" target=\"_blank\">Alibre 3D Publisher<\/a> (linked to save you the pain).\u00a0 This plugin allows for direct export to Google Sketchup as a version 6 file which can be used with SketchUp 7.<\/p>\n<figure id=\"attachment_88\" aria-describedby=\"caption-attachment-88\" style=\"width: 298px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2008\/12\/3dplublisher.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-88\" title=\"3dpublisher\" src=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2008\/12\/3dplublisher-298x300.png\" alt=\"Alibre 3D Publisher Plugin - Is it an STL export in disguise?\" width=\"298\" height=\"300\" srcset=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2008\/12\/3dplublisher-298x300.png 298w, http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2008\/12\/3dplublisher-150x150.png 150w, http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2008\/12\/3dplublisher.png 736w\" sizes=\"auto, (max-width: 298px) 85vw, 298px\" \/><\/a><figcaption id=\"caption-attachment-88\" class=\"wp-caption-text\">Alibre 3D Publisher Plugin - Is it an STL export in disguise?<\/figcaption><\/figure>\n<p>Ouch, what are all those triangles if you turn on view hidden geometry in sketchup?\u00a0 It looks like everything has been triangulated and the svg plugin export picks up all those as individual faces.\u00a0 One way to &#8216;fix this&#8217; is to manually select these edges and delete them.\u00a0 Another way is to automate the process somewhat with a &#8216;Ruby script&#8217;.\u00a0 But both are too messy for my liking.\u00a0 The plugin isn&#8217;t right for me to use for SVG exporting, but its great for getting a model into sketchup for viewing.<\/p>\n<h2>Back to square one&#8230;the DXF export&#8230;and it works!<\/h2>\n<p>While writing this I thought I&#8217;ll try the DXF export again and realised that Google SketchUp reads the Alibre Xpress DXFs pretty well.<\/p>\n<p>It goes something like this&#8230;<\/p>\n<ol>\n<li>Design and Model in Alibre Xpress<\/li>\n<li>Export the &#8216;drawing&#8217; in DXF<\/li>\n<li>Import into Google SketchUp.<\/li>\n<li>Use the Flight of Ideas SVG export plugin<\/li>\n<\/ol>\n<p>Voila, SVG for ponoko&#8230; its messy but hey it works.\u00a0 Maybe one day I&#8217;ll consider using Inkscape by itself&#8230;<\/p>\n<p>Edit : Be careful on the Google SketchUp import because it defaults to &#8216;feet&#8217; as the units!\u00a0 If you modeled in &#8216;mm&#8217; then things go horribly big.\u00a0 Click &#8216;Options&#8217; on the import open dialog before you press OK and select the right units!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The problem I&#8217;ve recently signed up Ponoko&#8217;s Prime account and wanted to get something made.\u00a0 I rather into a rather annoying problem, Alibre Xpress doesn&#8217;t have a SVG export.\u00a0 I needed a way to design something and export it as SVG. I&#8217;ll admit the long post title is a problem too \ud83d\ude42<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,16,25],"tags":[54,28,21,26,27],"class_list":["post-83","post","type-post","status-publish","format-standard","hentry","category-software","category-software-tips-tricks","category-weird","tag-3d-printing","tag-alibre-xpress","tag-free-software-tips","tag-laser-cutting","tag-ponoko"],"_links":{"self":[{"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/posts\/83","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/comments?post=83"}],"version-history":[{"count":7,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/posts\/83\/revisions"}],"predecessor-version":[{"id":101,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/posts\/83\/revisions\/101"}],"wp:attachment":[{"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/media?parent=83"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/categories?post=83"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/tags?post=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}