Search found 12 matches

by ryn
Thu Jan 05, 2023 7:40 pm
Forum: Help on using FreeCAD
Topic: How do you set Material properties of a model?
Replies: 2
Views: 614

How do you set Material properties of a model?

Hello,

How do you set the material properties of a model?
material_properties.png
material_properties.png (5.94 KiB) Viewed 614 times
FreeCAD's Shape property of models shows that objects DO have material properties defined somewhere but how do I see what material a model is, and how would I set the model to have any particular material?
by ryn
Mon Dec 19, 2022 9:28 pm
Forum: Help on using FreeCAD
Topic: [Feature Request] FreeCAD exports models relative to wrong origin. Add an option to export model's relative to their own
Replies: 14
Views: 1537

Re: FreeCAD exports models relative to wrong origin

I found a solution that works well enough for me but will require you to make a macro open the python console, and then export your model(s), copy and paste the code into a .py file to use as a macro, and before the export function for your export type is called, add the following line above it. __o...
by ryn
Mon Dec 19, 2022 6:08 pm
Forum: Help on using FreeCAD
Topic: [Feature Request] FreeCAD exports models relative to wrong origin. Add an option to export model's relative to their own
Replies: 14
Views: 1537

Re: FreeCAD exports models relative to wrong origin

drmacro wrote: Sat Dec 17, 2022 11:23 am Why not Sverchok nodes in Blender. They can read (and write) the FreeCAD files. No conversion needed.
I used blender for my example for export since its available on linux and shows a model's origin clearly. I don't want to use another CAD to use this CAD >.>
by ryn
Fri Dec 16, 2022 7:42 pm
Forum: Help on using FreeCAD
Topic: [Feature Request] FreeCAD exports models relative to wrong origin. Add an option to export model's relative to their own
Replies: 14
Views: 1537

Re: FreeCAD exports models relative to wrong origin

Is there a setting I need to change to fix this or is this a bug? I am not aware of a setting, only of workarounds. It may in this case not be convenient for you, but I don't think it's a bug: If multiple separate objects are exported, they should keep their original places on import. I just tried ...
by ryn
Fri Dec 16, 2022 7:25 pm
Forum: Help on using FreeCAD
Topic: [Feature Request] FreeCAD exports models relative to wrong origin. Add an option to export model's relative to their own
Replies: 14
Views: 1537

[Feature Request] FreeCAD exports models relative to wrong origin. Add an option to export model's relative to their own

Hello, EDIT: model file it self urdfmodel.FCStd I'm trying to export the individual models below with their origins relative to their FreeCAD origins model.png ^- both models have their own origins, and the wheels are not children of the BodyBase model Exporting one of the attached wheels as an exam...
by ryn
Mon Dec 12, 2022 7:08 pm
Forum: Help on using FreeCAD
Topic: Sketchup to FreeCAD - pycollada not found... (Linux)
Replies: 14
Views: 5043

Re: Sketchup to FreeCAD - pycollada not found... (Linux)

I know that this have been a few years since originally posted. However I was having the same problem and solved it by copying the collada folder to $/home/snap/freecad/22/.FreeCAD/Macro and then running the import collada from the python terminal in FreeCAD. I hope this helps someone. EDIT: That s...
by ryn
Fri Jul 29, 2022 8:26 pm
Forum: Python scripting and macros
Topic: How to detect keypresses inside FreeCAD window without creating a qt widget
Replies: 3
Views: 582

How to detect keypresses inside FreeCAD window without creating a qt widget

I've seen that a lot of macros use pyside and I know Qt's "mainwindow" class has a key-press event handler inside it, is there a way to detect key-presses inside the FreeCAD window like you can with other apps that have without having to create a new qt widget?
by ryn
Thu Jun 30, 2022 6:13 pm
Forum: Python scripting and macros
Topic: Can't import FreeCAD in python. DLL load failed while importing FreeCAD: The parameter is incorrect.
Replies: 12
Views: 2510

Re: BUG: Can't import FreeCAD in python. DLL load failed while importing FreeCAD: The parameter is incorrect.

BUG: When attempting to import FreeCAD in python, I get the error, "ImportError: DLL load failed while importing FreeCAD: The parameter is incorrect." Do you encounter this issue only when creating a virtual environment or does it also happen otherwise? I think I only got that error when ...
by ryn
Mon Jun 20, 2022 8:14 pm
Forum: Python scripting and macros
Topic: Can't import FreeCAD in python. DLL load failed while importing FreeCAD: The parameter is incorrect.
Replies: 12
Views: 2510

Re: BUG: Can't import FreeCAD in python. DLL load failed while importing FreeCAD: The parameter is incorrect.

so, not on a quest to hack new interop ways for fc... but introspection of what is there. your choice if you want to travel a muddy road during rain season or the smooth paved path. recommendation is to go the paved path... hard to tell if you understand how these things work or not (i'm leaning to...
by ryn
Fri Jun 17, 2022 7:02 am
Forum: Python scripting and macros
Topic: Can't import FreeCAD in python. DLL load failed while importing FreeCAD: The parameter is incorrect.
Replies: 12
Views: 2510

Re: BUG: Can't import FreeCAD in python. DLL load failed while importing FreeCAD: The parameter is incorrect.

what are you trying to get done? (apart from the obvious...) just asking, since the approach of importing fc into a standalone std-python is more cumbersome than the other way around, i.e. install whatever you want in the bundled fc-python... (which knows fc by heart from the getgo) or use conda? I...