Search found 885 matches

Go to advanced search

by keithsloan52
Thu Mar 15, 2012 3:19 pm
Forum: Developers corner
Topic: Import CSG files from OpenSCAD.
Replies: 207
Views: 24290

Re: Import CSG files from OpenSCAD.

New Version of ImportCSG

New versions 0.2b of ImportCSG.py and tokrules.py uploaded to http://www.sloan-home.co.uk/ImportCSG/ImportCSG.html

Now uses Objects, so after importing CSG file into FreeCAD the objects can be edited in FreeCAD
by keithsloan52
Thu Mar 15, 2012 12:59 pm
Forum: Developers corner
Topic: Import CSG files from OpenSCAD.
Replies: 207
Views: 24290

Re: Import CSG files from OpenSCAD.

Getting there. Now need to deal with Multmatrix when I was dealing with shapes I successfully used the following code new_part = new_part.copy() new_part.transformShape(transform_matrix) Now I am dealing with Objects. shoogen has suggested obj.Placement=FreeCAD.Placement(matrix).multiply(obj.Placeme...
by keithsloan52
Wed Mar 14, 2012 10:28 am
Forum: Developers corner
Topic: Import CSG files from OpenSCAD.
Replies: 207
Views: 24290

Re: Import CSG files from OpenSCAD.

Thanks a lot clearer now.

I have quite a bit of work to do. Hopefully make a start tomorrow, bit busy today.

Anywhere I can find documentation on AddObject and what parameters each obj can have, ditto MultiFuse, MultiCut(?)
etc
by keithsloan52
Wed Mar 14, 2012 8:20 am
Forum: Developers corner
Topic: Import CSG files from OpenSCAD.
Replies: 207
Views: 24290

Re: Import CSG files from OpenSCAD.

App.activeDocument().addObject("Part::Fuse","Fusion") App.activeDocument().Fusion.Base = App.activeDocument().Box App.activeDocument().Fusion.Tool = App.activeDocument().Sphere Gui.activeDocument().hide("Box") Gui.activeDocument().hide("Sphere") Sorry this is where I get lost. What refers to the ac...
by keithsloan52
Tue Mar 13, 2012 11:31 pm
Forum: Developers corner
Topic: Import CSG files from OpenSCAD.
Replies: 207
Views: 24290

Re: Import CSG files from OpenSCAD.

At present I am using makeBox, makeSphere etc calls to create shapes and then adding to the current document with Part.show(shape). Seems to be able to make changes to objects one needs to be doing obj=doc.addObject('Part::Box',namel) obj.Length=x obj.Width=y obj.Height=z So I am trying to get my he...
by keithsloan52
Tue Mar 13, 2012 10:18 pm
Forum: Help on using FreeCAD
Topic: processing imported DXF
Replies: 14
Views: 1929

Re: processing imported DXF

Wow! Excellent results! As yorikvnhavre says Wow Excellent results, but where is all this headed are you going to rewrite your parser? Or use the parser I did on my version of ImportCSG.py Do you want me to update my code to parser for dxf import so that you can add your code to that? Just wondering.
by keithsloan52
Mon Mar 12, 2012 9:53 pm
Forum: Help on using FreeCAD
Topic: processing imported DXF
Replies: 14
Views: 1929

Re: processing imported DXF

Re: processing imported DXF

Postby shoogen » Mon Mar 12, 2012 11:26 am

keithsloan52 wrote:I am able to do this via the GUI, can it be done programatically.

If you can describe what you did this can be a good starting point.
All I did was bring in the DXF file.
Then Select all.
Then extrude
by keithsloan52
Sun Mar 11, 2012 9:46 pm
Forum: Help on using FreeCAD
Topic: processing imported DXF
Replies: 14
Views: 1929

Re: processing imported DXF

Okay if importers support import as well as open. Could one not just import a DXF file, then somehow select it all then extrude. I am able to do this via the GUI, can it be done programatically.
by keithsloan52
Sun Mar 11, 2012 8:33 pm
Forum: Developers corner
Topic: Import CSG files from OpenSCAD.
Replies: 207
Views: 24290

Re: Import CSG files from OpenSCAD.

Okay new version 0.1b uploaded to http://www.sloan-home.co.uk/ImportCSG/ImportCSG.html

Fixes reset globals on each invocation.
Correct use of transformShape on Multmatrix objects.
Code added for import ( Untested as I don't know how to test)
by keithsloan52
Sun Mar 11, 2012 7:59 pm
Forum: Developers corner
Topic: Import CSG files from OpenSCAD.
Replies: 207
Views: 24290

Re: Import CSG files from OpenSCAD.

Thanks the supplied transformShape worked. The transformGeometry did not.
I would attach screen shots but this forun does not seem to like my jpeg or png files.
Also does not like csg file with extension csg.

Need to do some tidying up and should have an update to ImportCSG.py available shortly.

Go to advanced search