Search found 2764 matches

by keithsloan52
Wed Jan 24, 2024 7:05 pm
Forum: Path/CAM
Topic: Create GCode from DXF
Replies: 12
Views: 4815

Re: Create GCode from DXF

I am trying to follow this thread to import DXF file from inkscape for creating path (plasma cnc). I setup my DXF import pref as per screen shot above. I struggle with FreeCad, been using fusion360 mostly. I'm not finding "fusion" as referred too in this thread? I do get a bunch of shapes...
by keithsloan52
Fri Jan 19, 2024 10:39 pm
Forum: Announcements & Features
Topic: FreeCAD (& free CAE) Users Conference 2023 Announcement
Replies: 12
Views: 9888

Re: FreeCAD (& free CAE) Users Conference 2023 Announcement

Are we likely to see a repeat of this conference?

Is there any progress in the use of FreeCAD to encourage startups in the Townships?
by keithsloan52
Wed Jan 17, 2024 3:17 pm
Forum: Python scripting and macros
Topic: Get getGlobalPlacement for a Link.
Replies: 25
Views: 19986

Re: Get getGlobalPlacement for a Link.

Selection is NOT an option. This Macro is to eventually process a whole directory structure of files ( like nearly 10,000) so whilst the root directory will use a selection it is not an option to go into every file and select all objects. I need a function like def getGlobalPlacementFunction(self, o...
by keithsloan52
Tue Jan 16, 2024 9:38 pm
Forum: Python scripting and macros
Topic: Get getGlobalPlacement for a Link.
Replies: 25
Views: 19986

Re: Get getGlobalPlacement for a Link.

hasattr(obj,"parents") should be hasattr(obj,"Parents") [/code] shouldn't it? Thanks - but still not getting global placement for Links 21:30:12 List ===== inputList ===== 21:30:12 Level 2 : GDMLTube_TGeoTubeSeg0x5 21:30:12 Level 2 : GDMLTube_TGeoTubeSeg0x6 21:30:12 Level 2 : GD...
by keithsloan52
Tue Jan 16, 2024 7:06 pm
Forum: Python scripting and macros
Topic: Get getGlobalPlacement for a Link.
Replies: 25
Views: 19986

Re: Get getGlobalPlacement for a Link.

Okay I tried to create a general getGlobalPlacementFunction based on the post. As I am tying to do this for a passed obj rather than scan a whole document I have inserted a return before looking of App::Link's and as the code for links is more or less the same. def getGlobalPlacementFunction(self, o...
by keithsloan52
Tue Jan 16, 2024 4:59 pm
Forum: Python scripting and macros
Topic: Get getGlobalPlacement for a Link.
Replies: 25
Views: 19986

Re: Get getGlobalPlacement for a Link.

if obj.Parents: for parent, path in obj.Parents: sub = parent.getSubObject(path) globalPlacement = sub.Placement cpr(f'{parent.FullName}.{path} {globalPlacement}') Does this work for more than one level? I would have expected something more like globalPlacement = obj.Placement * sub.Placement
by keithsloan52
Tue Jan 16, 2024 1:01 pm
Forum: Python scripting and macros
Topic: Close : User Error Frustrum rather than Conic Frustrum
Replies: 1
Views: 513

Close : User Error Frustrum rather than Conic Frustrum

I have some code that creates a Conic Frustrum from wires shellperi = Part.makeLoft(wires) shell = Part.Shell(shellperi.Faces+faces) fp.Shape = Part.Solid(shell) How can a create a normal Frustrum from the same set of wires i.e. Not create a curved surface C39C51B0-9AB5-4DAB-985F-CDE82B53DD57.jpeg
by keithsloan52
Tue Jan 16, 2024 12:35 pm
Forum: Python scripting and macros
Topic: shp.BoundBox.isInside function call.
Replies: 26
Views: 42591

Re: shp.BoundBox.isInside function call.

What I need is a function to get the global Placement of an Object - NOT USING SELECTION My application has this code currenty for t in inputList: s = Part.getShape(t[1], mat=t[1].getGlobalPlacement().Matrix, transform=False) shapeNames[s] = t[1].Name shapes.append(s) where t is a list of tuples, th...
by keithsloan52
Sat Jan 13, 2024 9:24 pm
Forum: Python scripting and macros
Topic: Get getGlobalPlacement for a Link.
Replies: 25
Views: 19986

Get getGlobalPlacement for a Link.

Seems there is no support for getGlobalPlacement when an object is a link, posting here before raising as a bug/feature request To quote How do I get the Global Placement of linked Object? getGlobalPlacement() in realthunders's opinion should be deprecated - it doesn't work properly with links. by k...
by keithsloan52
Sat Jan 13, 2024 9:19 pm
Forum: Python scripting and macros
Topic: shp.BoundBox.isInside function call.
Replies: 26
Views: 42591

Re: shp.BoundBox.isInside function call.

Going to open a new thread as I think we really need a fix for getGlobalPlacement and Links and copy the info.