Search found 6 matches

by jcdmelo
Wed Jan 22, 2020 5:32 pm
Forum: Python scripting and macros
Topic: Applying a transformation to a copy of a sketch, not to the original sketch
Replies: 7
Views: 755

Re: Applying a transformation to a copy of a sketch, not to the original sketch

Thanks, Chris and vocx, That solved my question. I don't know if it is a version issue or just a different syntax, but the actual statement is slightly different from what you suggested. I have yet to grasp a lot of FreeCAD concepts, and Python, and OOP, ... I used: Copy.Placement = Sketch.Placement...
by jcdmelo
Sun Jan 19, 2020 8:13 pm
Forum: Python scripting and macros
Topic: Applying a transformation to a copy of a sketch, not to the original sketch
Replies: 7
Views: 755

Re: Applying a transformation to a copy of a sketch, not to the original sketch

Hi, vocx, Thanks for your hint, but I think you did not understand my question. I read through the Placement docs, and I think the problem is not related to it, but rather to copying objects. As you can see in the code sent before, what I want is to apply a transformation to a copy (Sketch2) of a ba...
by jcdmelo
Wed Jan 15, 2020 4:55 pm
Forum: Python scripting and macros
Topic: Applying a transformation to a copy of a sketch, not to the original sketch
Replies: 7
Views: 755

Re: Applying a transformation to a copy of a sketch, not to the original sketch

Hi, vocx, Sorry for omitting information about my FreeCAD installation (I went through the important information, and I hope this was my only fault. Please, let me know of any others.) Here it is: OS: Windows 10 Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.18.16117 (Git) Build typ...
by jcdmelo
Tue Jan 14, 2020 6:55 pm
Forum: Python scripting and macros
Topic: Applying a transformation to a copy of a sketch, not to the original sketch
Replies: 7
Views: 755

Applying a transformation to a copy of a sketch, not to the original sketch

Hi, everyone, I've got one more question: I am trying to make a vertical mirror of a sketch, and then apply a rotation to the copy. My code read as follows: ... (stuff) # Create a base sketch on plane (X,Y) Sketch1 = CreateSketch1(Vertices) # No problem # Create a copy of the base sketch, mirroring ...
by jcdmelo
Mon Jan 13, 2020 2:52 pm
Forum: Python scripting and macros
Topic: Making reference to an array of objects
Replies: 4
Views: 390

Re: Making reference to an array of objects

Thanks to both microelly2 and openBrain, Following your hints, I was able to solve MYPROBLEM (not a problem at all, really!) My code now reads: ... (sketchs creation and stuff) for i in range (0, NumExtrusions): Body = App.activeDocument().addObject('PartDesign::Body', SketchNameArray[i]) App.active...
by jcdmelo
Mon Jan 13, 2020 2:04 pm
Forum: Python scripting and macros
Topic: Making reference to an array of objects
Replies: 4
Views: 390

Making reference to an array of objects

Hi, everyone, Thanks for an amazing piece of software! And to the many people who contributed to it! I am a sort of novice in both FreeCAD and Python, but I have been able to solve my programming chores by experimenting and consulting on this Forum. Thanks again! But now I am stuck in a situation fo...