![]() ![]() #get the vector of the two line and angleīut i need to make some improovement i have to solve the problem of the jonction between two line of a wire (angle), i used the revolve bus it is not always a good solution. Exist a guide for use pythonOCC under FreeCAD, or can anyone help me Thx. Now for import PythonOCC in freecad I wrote 'import OCC', but i cant use any function. Is there a function for this or i have to create some macro or tool with python In the second case cane anybody give me an idea Thanks in advance. But at that point you’re moreso using a master sketch or. Post here for help on using FreeCADs graphical user interface (GUI). 1 2 3 Next CIAO Extrude along a path by CIAO Thu 1:12 pm Hi i'm working with FreeCAD 0.10, I need to extrude some section along a path. 'Extrude a selected sketch' and make sure 'X' and 'Y' are set to '0.00' and the 'Z' should be set to '1.00', and then set the Length to '8.00' (mm) and click 'OK'. Open FreeCAD In the python console, paste the script In the python console, type in a call to extrudeSVG () with your SVG file and thickness, something like: extrudeSVG (u'/path/to/file/design.svg', 4) Edit the resulting objects as required. Create a new document and then create a new sketch. P.S.Selection = ()į("you have to select 2 object, a face and a wire") In the main branch of FreeCAD the only way this can be replicated is by creating a separate sketch and using external geometry tool to bring vertexes or geometry in, then resketch the geometry of interest, then use constraints to position it in the same place as sketch 1. First open up FreeCAD and switch to the 'Part Design' workbench so that we create a simple box. Resuming, pythonOCC is a direct and faithful 1-to-1 translation of the C++ OCC library. TypeError: argument 1 must be Part.TopoShape, not Noneīut I have checked.my section is a toposhape. This curve is used as pathway of extruding. Following shapes can be created by this method. Section = section.rotate((0,0,0),(0,1,0),ang)įile "/home/filippo/extPath.py", line 18, in extPath Update: ApFreeCAD 0.19 In this example, we explain how to create a solid by extruding a cross-sectional shape along the curve. So I have tried to make a macro and this the code I have thought (I know that the result aren't right but I'll adjust it time after time): I have try makePipe again, and it doesn't orient the section always normal to the path, and I like tha it be. Extruded aluminium with several hollow cavities T slots allow bars to be joined with special connectors. The Part Sweep tool is used to create a face, a shell, or a solid shape from one or more profiles (cross-sections) projected along a path. So I have thought for solve this problems, ad I think that the macro should check the orientation vector of the wire for each edge, and orienting the section normal to this vector.įor do this I have found somethig like Part.rotate or something like that, but I can't obtain automatically the orietation vector. the final object is put in the position of the section and not in the position of the path (It wold be good to choose this feature). the section isn't normal to the path, but it rest with the same orientation ![]() Selection = ()į("you have to select 2 object, a section and a wire") ![]() ![]() I create a section (rectangular face) and a wire fro the extrusion along himself, then the code is: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |