FreeCAD: Fixing Imported SVG Point of Rotation / Transformation Point

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
So today we're going to be looking at svgs and fixing the point or origin of an SVG if we import an SVG into free CAD what will happen is that if I come up to file and import and pick my SVG I've got the free CAD logo that I've downloaded and we can find that with a simple Google search freecad logo SVG and we can get that from the Wikimedia and I've picked this one here so the one without all of this transparency so I've just pulled in this one let's click it and right click save as to import the logo file and import and you'll find this problem in most such as the ones that you design and it's all to do with the point of origin the x0 Y 0 Z 0 if you're in 3D space of where this is set up so if I come up to view and toggle access cross you can see that the point of origin ZX and Y at zero zero zero is here if I loaded this into say inkscape or a vet-based program so I'm in inkscape here file import and we'll pull in the freecad logo open that up okay if we save this point of origin will be here zero zero if I just go file open and load the SVG from here then you'll see that the file has loaded and our point of origin is here the only way we can change this in inscape is go to edit preferences and look down at the interface open that up and we'll see the origin at upper left with y-axis pointing down if this was unchecked then it'll be same as a graph so it'll be at the bottom left so we can't set that to the center unless we take the whole logo and move it to say this point here then our point of origin will be in the center of this circle so we have to fix that in freecad this is actually quite easy to do there are plugins that we can install to allow you to do this but I'm not going to use that I'm just going to use a simple drafting technique so at the moment if we take any of these paths or the rectangle that's been imported and go right click transform you notice that the transformation point is up here we want it to say here or later within this circle so what do we do well we come into the part and what we need to do is compound all of these together this means we can move these as one count to part compound and make compound we have one object now so we don't have to go through and fix the position for each pass these objects so we've got three parts in here now we've done that we need to move this to this point of origin and then fix the transformation point I'm going to come over to the Sketcher and I'm going to create a sketch along the X Y plane which is the same plane as the SVG and I'm going to create a single point I'm going to place it here the reason why I'm doing this is to give me something to snap to to the center of origin if I hit escape and click on that point and change this out of construction geometry to normal geometry it will become White so that's this tool here toggle construction geometry we then contain that point and make it coincident to that center with a coincident constraint let's close that what you'll see is a point there I'm going to click on the sketch and just so it makes it more obvious and come down to the view and up the point size to about eight so we can see that there I can use that as a snapping point now so if we come over to the draft workbench then we can move this 2D object over the center point quite easily first of all we must make sure that our working plane is on the same plane as our SVG which is basically Top Lane and that's there now so that's actually set if it wasn't what we'll do is come up to utilities and select plane we must make sure nothing's selected before we do this so select plane and then it's going to ask us what working playing cell we want so I can click top and I'll place it up on the top so our working plane is set to the top so before we move this we need to make sure our snapping is correctly set if we look to the top we have a number of snapping tools and these may be shrunk down under a drop down with this padlock here maybe over here somewhere I've got my icons larger than normal so we can see what's going on make sure the snapping is checked and set on this will mean that all these will be colored and become available I want stat and point the snap midpoint and the snap Center Point make sure these are checked and they have a gray background if I click the compound and come up to the modifications and move then I can select a point that I want to move this from and if I hover over this without clicking the mouse button you can see how I snap in to that geometry I can't snap to this Center Point at the moment of this circle because it's made up of a number or separate arcs we'll get to this in a moment so if I hover over the middle of this line here you can see that snap midpoint is showing and that's this one here stat midpoint and these are snap end points and we haven't got a center point at the moment so let's hover over and snap to the center of this line and click once so now if I move the mouse you can see we've picked that up at that point if I hover over this point here I can drop it and snap it to the center point so this point which is just a single sketch and this is the reason we created this sketch let's click once that's now moved but we haven't fixed the transformation Point yet going to compound right click transform you see it's still up here that's okay now I've got this moved we can fix that point click on the compound make sure it's selected come on to multiplications and downgrade this will downgrade the object the SVG into a number of edges why is this still selected if you click off then you can click one let's say I clicked off by accident we can click the top one come down to the last one and shift click the last one to let them all so we've got that selection back so why that selected we do the reverse modifications and upgrade we've downgraded it to edges and now we've upgraded it to wires this rebuilds the object so now if I click on say this wire which is the f and right click transform the point of origin or the transformation point is now at that Center there let's Okay that if we want to move these all as one then we can take all of them and create a compound again come up to part and create a compound and we click on it right click transform and we've got that there but let's say that we wanted to actually snap to this center point of this circle and you saw that we didn't have that Center Point constraint there because it's not a circus number of arcs how do we solve that one well we can full free CAD in thinking that we have a center point there with a sketch to do that I'm going to come over to the Sketcher again and I'm going to create a new sketch make sure nothing's selected this is important to create a new sketch along the X Y plane and okay that I'm going to import geometry from this circle so using the external geometry tool will import a number of vertices from this circle here so I'm just selecting three like so I've got an arc there that doesn't matter we just use one of those points on there I've got an arc here as well let's click on the circle and create a circle say here I'm now going to hit escape and select the circle and this point and this one and this one and use a point on object constraint so we selected them all those points and create a point and object constraint that's constrained this circle to here if this was in the circle this will become over constrained we'll have to delete it and think of a number way of doing this we can use any shape what we want from up top now we've got this sketch if I close that you see the sketch sits behind this circle we can use this to full free card in thinking this is part of the geometry for moving this SVG well I'll say full free CAD we're just snap into geometry so if we come back over to the draw for a bench and let's click on some space to make sure enough is selected and select the compound kind of modifications and come down to the move we now can hover over this circle this sketch and you notice now we've got a center point we're actually snapping to the sketch but we've chosen the SVG geometry to move so that means if I click now with that Center Point highlighted let's just try to hover over part that sketch there we go click once we move from that Center Point and we can place this upon the point of origin like so our sketch my error so this last sketch here my error we can just delete that because we don't need that now and now we've got this centered I can click on the compound and do the usual modifications downgrade look at the edges modifications upgrade to get the new geometry and if we click any one of these the wire right click transform the transformation point is at the center point of this circle and I've click the circle right click transform you can see that there we can then use this as we want so we can get rid of all the other geometry to leaving our wires and let's say we take all these and do a modifications upgrade so we upgraded this to faces now I can use Boolean against those faces over in the part so take in this face here the Cog and phase two which is the inside of the cork the one I want to keep the one I want to remove user cut yes and then I can take both of these control select both of those off around about five mil and okay so restrude it both of those so that's how to set the center point and fix that center point of svgs to make your life a lot easier when you're doing your modeling I hope you enjoyed that video and I hope to see you again soon if you like what you see and you want to donate to the channel then you can do so via Kofi or coffee at Ko hyphen fi.com forward slash m-a-n-g-0 or via Paypal at paypal.com forward slash PayPal me forward slash Darren b e Stone I also run a patreon where you can get Early Access and additional content and that's at patreon.com forward slash mango jelly Solutions links can be found in the channel header on the about page or in the descriptions of these videos I think everybody that's donated so far it really helps to keep the lights on so I can produce more content and also expand the channel thank you for liking commenting and subscribing to these videos and I hope to see you again in the next one
Info
Channel: MangoJelly Solutions for FreeCAD
Views: 4,591
Rating: undefined out of 5
Keywords: CAD, three, 3D, CNC, Printing, solidworks, autoCAD, freecad 0.19, freecad 19, freecad basics, basic course, fundamentals, learn freecad, freecad beginners, freeCAD 0.20
Id: GG0OB7taJUw
Channel Id: undefined
Length: 14min 17sec (857 seconds)
Published: Wed Jul 26 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.