{"id":466,"date":"2022-11-04T01:15:16","date_gmt":"2022-11-04T01:15:16","guid":{"rendered":"https:\/\/portfolio.wcu.edu\/hjhester1\/?p=466"},"modified":"2022-11-04T01:20:43","modified_gmt":"2022-11-04T01:20:43","slug":"how-to-import-and-scale-an-image-in-onshape","status":"publish","type":"post","link":"https:\/\/portfolio.wcu.edu\/hjhester1\/2022\/11\/04\/how-to-import-and-scale-an-image-in-onshape\/","title":{"rendered":"How to import and scale an image in onShape"},"content":{"rendered":"<p><span style=\"font-weight: 400\">\u00a0 \u00a0 \u00a0Importing an image to onShape while you are designing a part has many benefits. Specifications are easy to reference and you can align your sketch with the images\u2019 lines. In addition, overlaying the product specifications with your sketch makes it easier to position screw holes. I will be designing a &#8220;L&#8221; shaped stepper motor mount. But before we get started&#8230;<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Tips for onShape (and other CAD programs)<\/strong><\/h3>\n<ol>\n<li><span style=\"font-weight: 400\">Rename sketches, extrusions, and parts to make specific features easier to edit in the future<\/span><\/li>\n<li><span style=\"font-weight: 400\">Familiarize yourself with the keyboard shortcuts<\/span><\/li>\n<li><span style=\"font-weight: 400\">Use a mouse<\/span><\/li>\n<li><span style=\"font-weight: 400\">Draw circles and other shapes outside of your main sketch to prevent accidental constraints from forming<\/span><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h3><strong>Step 1. Find a specifications sheet for the product<\/strong><\/h3>\n<p>I am using a specification page by Cookie Robotics for a 28BYJ-48 Stepper Motor. Link: <a href=\"https:\/\/cookierobotics.com\/042\/\">https:\/\/cookierobotics.com\/042\/<\/a>. When you find a specifications page, save it to your computer as a PNG or JPEG.<\/p>\n<p><span style=\"font-weight: 400\">Tip: Since unconstrained lines in onShape are blue, try to avoid using a specifications page with blue lines.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Step 2. Adding an image in onShape<\/strong><\/h3>\n<p>The button to upload pictures should be on the right side of the toolbar. It can have 2 different appearances.<\/p>\n<p>.<img loading=\"lazy\" decoding=\"async\" class=\"wp-image-474 alignleft\" src=\"https:\/\/portfolio.wcu.edu\/hjhester1\/wp-content\/uploads\/sites\/1698\/2022\/11\/Screen-Shot-2022-11-03-at-10.50.55-AM-300x114.jpg\" alt=\"\" width=\"295\" height=\"112\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"wp-image-476 alignnone\" src=\"https:\/\/portfolio.wcu.edu\/hjhester1\/wp-content\/uploads\/sites\/1698\/2022\/11\/Screen-Shot-2022-11-03-at-10.31.48-AM-300x91.jpg\" alt=\"\" width=\"359\" height=\"109\" \/><\/p>\n<p>When you add the image to onShape don&#8217;t worry about its initial size. Step 3 is all about scaling the image to the correct size.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-477\" src=\"https:\/\/portfolio.wcu.edu\/hjhester1\/wp-content\/uploads\/sites\/1698\/2022\/11\/Screen-Shot-2022-11-03-at-10.39.52-AM-1-300x198.jpg\" alt=\"\" width=\"300\" height=\"198\" \/><\/p>\n<p>Tip: If you can&#8217;t find a tool in the toolbar make sure you aren&#8217;t zoomed in too much and you are in the Sketch mode.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Step 3. Scaling your image<\/strong><\/h3>\n<p>Now that you have added your image, we need to scale it to the correct size. In the same sketch as your image, draw a line and dimension it to the same length as a line in the image<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-483\" src=\"https:\/\/portfolio.wcu.edu\/hjhester1\/wp-content\/uploads\/sites\/1698\/2022\/11\/Screen-Shot-2022-11-03-at-3.44.37-PM-300x201.jpg\" alt=\"\" width=\"300\" height=\"201\" \/><\/p>\n<p>Second, increase and decrease the size of the image until the line on the image is close to the same length as the line you drew. You should move your line as you change the size of the image in order to get the most accurate comparison.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-482\" src=\"https:\/\/portfolio.wcu.edu\/hjhester1\/wp-content\/uploads\/sites\/1698\/2022\/11\/Screen-Shot-2022-11-03-at-3.48.42-PM-300x244.jpg\" alt=\"\" width=\"300\" height=\"244\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Step 4. Design your product<\/strong><\/h3>\n<p>In a new sketch, you can start designing the part that you need. In my sketch, the circle in the middle is a hole for the shaft of the motor. The two smaller circles are screw holes that will be used to attach the motor to the mount. The small rectangle at the top is where I will create an extrusion with 2 screw holes.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-484\" src=\"https:\/\/portfolio.wcu.edu\/hjhester1\/wp-content\/uploads\/sites\/1698\/2022\/11\/Screen-Shot-2022-11-03-at-3.53.37-PM-300x203.jpg\" alt=\"\" width=\"300\" height=\"203\" \/><\/p>\n<p>Next, you need to extrude add or extrude remove the parts of your product that you want to be solid or holes. The top part of the mount was created in a different another sketch and extruded separately.<\/p>\n<p>.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-485\" src=\"https:\/\/portfolio.wcu.edu\/hjhester1\/wp-content\/uploads\/sites\/1698\/2022\/11\/Screen-Shot-2022-11-03-at-3.54.47-PM-300x208.jpg\" alt=\"\" width=\"300\" height=\"208\" \/><\/p>\n<p>Tip: Make the diameter of the holes slightly larger then the shaft, because the overall dimensions of the finished product will be slightly smaller then what is in CAD.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Step 5. Printing your product<\/strong><\/h3>\n<p>To export your product, right-click on the part name in the side menu and click export.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-488\" src=\"https:\/\/portfolio.wcu.edu\/hjhester1\/wp-content\/uploads\/sites\/1698\/2022\/11\/Screen-Shot-2022-11-03-at-7.42.48-PM-260x300.jpg\" alt=\"\" width=\"260\" height=\"300\" \/><\/p>\n<p><span style=\"font-weight: 400\">My Print Specifications<\/span><\/p>\n<ul>\n<li><span style=\"font-weight: 400\">Printer: Prusa MINI<\/span><\/li>\n<li><span style=\"font-weight: 400\">Materiel: PLA<\/span><\/li>\n<li><span style=\"font-weight: 400\">Slicer: 20% Infill<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-486\" src=\"https:\/\/portfolio.wcu.edu\/hjhester1\/wp-content\/uploads\/sites\/1698\/2022\/11\/Screen-Shot-2022-11-03-at-3.58.43-PM-300x195.jpg\" alt=\"\" width=\"300\" height=\"195\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Finished Product<\/strong><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-491\" src=\"https:\/\/portfolio.wcu.edu\/hjhester1\/wp-content\/uploads\/sites\/1698\/2022\/11\/IMG_4111-1-300x300.jpg\" alt=\"\" width=\"300\" height=\"300\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 \u00a0Importing an image to onShape while you are designing a part has many benefits. Specifications are easy to reference and you can align your sketch with the images\u2019 lines. In addition, overlaying the product specifications with your sketch makes it easier to position screw holes. I will be designing a &#8220;L&#8221; shaped stepper [&hellip;]<\/p>\n","protected":false},"author":1919,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[8],"tags":[],"class_list":["post-466","post","type-post","status-publish","format-standard","hentry","category-engr-199-fall-2022"],"_links":{"self":[{"href":"https:\/\/portfolio.wcu.edu\/hjhester1\/wp-json\/wp\/v2\/posts\/466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portfolio.wcu.edu\/hjhester1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/portfolio.wcu.edu\/hjhester1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/hjhester1\/wp-json\/wp\/v2\/users\/1919"}],"replies":[{"embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/hjhester1\/wp-json\/wp\/v2\/comments?post=466"}],"version-history":[{"count":12,"href":"https:\/\/portfolio.wcu.edu\/hjhester1\/wp-json\/wp\/v2\/posts\/466\/revisions"}],"predecessor-version":[{"id":494,"href":"https:\/\/portfolio.wcu.edu\/hjhester1\/wp-json\/wp\/v2\/posts\/466\/revisions\/494"}],"wp:attachment":[{"href":"https:\/\/portfolio.wcu.edu\/hjhester1\/wp-json\/wp\/v2\/media?parent=466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/hjhester1\/wp-json\/wp\/v2\/categories?post=466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/hjhester1\/wp-json\/wp\/v2\/tags?post=466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}