Search found 695 matches

by pperisin
Mon Jan 03, 2011 3:09 pm
Forum: Open discussion
Topic: STEP import/large model performance
Replies: 60
Views: 17112

Re: STEP import/large model performance

Hi, Thank you very much, wmayer, for this script. It is what I wanted. And if someone else wants this, all he has to do is copy files from the attachment. No "create-macro;customize-interface" this way. Thank you :D :D Just to add, I hope support for STEP AP214 (colored one) will find it's...
by pperisin
Mon Jan 03, 2011 2:50 pm
Forum: Open discussion
Topic: STEP import/large model performance
Replies: 60
Views: 17112

Re: STEP import/large model performance

Add: There is even better Script that exports STEP with colors using Utils.DataExchange package from pythonOCC. It goes (in pythonOCC): from OCC.Utils.DataExchange.STEP import StepOCAF_Export from OCC.BRepPrimAPI import * # First create a simple shape to export my_box_shape = BRepPrimAPI_MakeBox(50,...
by pperisin
Mon Jan 03, 2011 1:07 pm
Forum: Open discussion
Topic: STEP import/large model performance
Replies: 60
Views: 17112

Re: STEP import/large model performance

Hi wmayer No crash at all. Maybe you can post the code that makes you system crash so that I can check it out, but so far with botc codes you posted - no problems at all. I have not tested all you posted yet, and When I said that I would like to make toolbar icon, I was thinking about macros. I do n...
by pperisin
Mon Jan 03, 2011 11:13 am
Forum: Open discussion
Topic: STEP import/large model performance
Replies: 60
Views: 17112

Re: STEP import/large model performance

Hi

Last hint to add - After using this method to export STEP files - Importing the same STEPhas color information imported, and it is assigned to it during import. Cool!!! :D

Regards
Petar Perisin
by pperisin
Mon Jan 03, 2011 10:42 am
Forum: Open discussion
Topic: STEP import/large model performance
Replies: 60
Views: 17112

Re: STEP import/large model performance

Hi,

Two things to add:

1. I would like to have File Save dialog appear. How to do that in FreeCAD python console?
2. Is there a way to add new icons to custom toolbar functions? I would like to import my BitMaps for toolbar icons.

Regards
Petar Perisin
by pperisin
Mon Jan 03, 2011 9:40 am
Forum: Open discussion
Topic: STEP import/large model performance
Replies: 60
Views: 17112

Re: STEP import/large model performance

Hi, wmayer THANK YOU VERY MUCH. This works perfectly now. I guess the problem was with referencing objects into STEP (which I don't need anyway), so it is great. The final thing I would like to do is - I would like to make a function (toolbar button or menu item - based on macro) that would work jus...
by pperisin
Thu Dec 30, 2010 2:54 pm
Forum: Announcements & Features
Topic: Draft BSpline tool
Replies: 27
Views: 6776

Re: Draft BSpline tool

Hi, I have tested this, and I have tried to make someting similar to sine curve. I would simply add points on min and max values of the sine wave (aproximatley - just make stuff like this \/\/\/\/) It starts act very strange, and sometimes after some points it does not go through all of the control ...
by pperisin
Thu Dec 30, 2010 12:23 pm
Forum: Open discussion
Topic: STEP import/large model performance
Replies: 60
Views: 17112

Re: STEP import/large model performance

Yes, I figured it out. And I have tried, using python console and ONLY pythonOCC commands to create a cut between box and sphere (both of them created using pythonOCC commands), then color the cut and export it to STEP using StepCAFExport. It worked with Cube and sphere individually, but not with Cu...
by pperisin
Wed Dec 29, 2010 11:45 am
Forum: Open discussion
Topic: STEP import/large model performance
Replies: 60
Views: 17112

Re: STEP import/large model performance

Yes, I have tried that But then Export to step with colors does not work :-( But let me ask you something else: When I write: a = Part.makeBox(10,10,10) b = Part.makeSphere(5) How can I make cut of this two objects from python console Edit: I have figured it out. It is c = a.cut(b) But this STEP Exp...
by pperisin
Wed Dec 29, 2010 10:44 am
Forum: Open discussion
Topic: STEP import/large model performance
Replies: 60
Views: 17112

Re: STEP import/large model performance

Yippie I have managed to export STEP with colors using FreeCAD and PythonOCC together this is the code - i will divide them to segments because it is easier to figure it out: first I will import some stuff and create a box in freecad (in python console) import Part from OCC import TopoDS s=Part.make...