Thread Previous • Date Previous • Date Next • Thread Next |
Hi Marcos, thank you for the feedback. The screenshot is very nice!1) For fusion object, it is strange, I don't have prob in conserving colors neither in FC015, nor in FC016 both in win and linux...
but I'm on ubuntu and I used the ubu repos 2) To scale a part there is already a small macro in the demo project; the file name is kicad_StepUp_vrml_export.FCMacro and there is also a bash file launch-kicad_StepUp-step-to-vrml-example.sh The script has to be cleaned up a bit...anyway it works... NB after exporting the VRML file, do not save the FC STEP file or you'll get it scaled too :)
3) I'm going to complete a new macro named 'move_rotate_scale' (which is not included at the moment), so it would be easier to manage manufacturer models to align and generate vrml scaled models.
When it si ready I will let you know 4) Please also have a look at: https://github.com/easyw/kicad-3d-models-in-freecad/tree/master/cadquery/FCAD_script_generatorthere are script to generate parametric STEP and scaled VRML for SOIC, DIP, QFP, Resistor chips and Capacitor chips there are some configuration files in which you only need to add dimensions as in the datasheet, then the model 3D will be generated.
There a re also some already generated examples at: https://github.com/easyw/kicad-3d-models-in-freecad/tree/master/cadquery/FCAD_script_generator/generated_cap https://github.com/easyw/kicad-3d-models-in-freecad/tree/master/cadquery/FCAD_script_generator/generated_gw https://github.com/easyw/kicad-3d-models-in-freecad/tree/master/cadquery/FCAD_script_generator/generated_dip https://github.com/easyw/kicad-3d-models-in-freecad/tree/master/cadquery/FCAD_script_generator/generated_res and a mini starter guide https://github.com/easyw/kicad-3d-models-in-freecad/raw/master/cadquery/FCAD_script_generator/FC-script-generator-starter-Guide.pdf I've added a colored pinmark and some more models. Could you please give me a feedback also on those scripts/models. Maurice On 23/08/2015 17.14, Marcos Chaparro wrote:
Hi Maurice, the issues were related to using freecad 0.16 and non compatible DXF files (Freecad 0.15 and 0.16 produced an incompatible dxf file that was fixed re-exporting it using librecad in R14 format, later you told me that R12 is better but I didn't try. The final woraround for fusing parts and maintaing the color correctly was to make the top level fused part 100% transparent It seems that when I export the fused part freecad exports all the parts inside the fusion too, and the object surfaces have all 2 faces, one from the fused and one from the original, and the colors get messed up. Forcing the fused part transparent it still exports duplicated faces but since one is transparent it doesn't bother me. Maybe it a dependency issue when compiling FC15 and this doesn't happen in a stable FC installation. BTW, now it is *much* easier to import 3D parts from the manufacturers 3D models http://www.paltatech.com/files/STEP_import.png I'll share the footprints when I get some free time, have to organize them and make a repo for it. Oh and I have to learn to scale the parts by 1/2.54. How do you scale them? it seems MCAD don't like to just shrink a part. There is an Draft.scale() function call in your script, does it work with raw STEP files? Regards Marcos On Sat, Aug 22, 2015 at 5:26 PM, easyw <easyw@xxxxxxxxxxxx> wrote:
Thread Previous • Date Previous • Date Next • Thread Next |