Search found 19 matches

by haonk
Wed Mar 18, 2020 7:44 am
Forum: Python scripting and macros
Topic: Hide an edge of Object
Replies: 1
Views: 294

Hide an edge of Object

I have an Cube object and i wanna hide any edge of this cube, can i do this with python console?
If it is possible, please help me python code to hide an edge of Cube!!

Image
by haonk
Fri Oct 25, 2019 7:00 am
Forum: Developers corner
Topic: Add a new property for all object
Replies: 0
Views: 1258

Add a new property for all object

Hi everyone! I wanna add a new Property for Object and and we can see, edit in property view look like Label I tried to add a new variable in App/DocumentObject.h and ADD_PROPERTY_TYPE() in DocumentObject.cpp but didn't work, i got some error when create object and FreeCAD will be crashes. How can i...
by haonk
Fri Oct 25, 2019 6:48 am
Forum: Developers corner
Topic: Import numpy error in FreeCAD_d
Replies: 4
Views: 1540

Re: Import numpy error in FreeCAD_d

apeltauer wrote: Wed Oct 23, 2019 5:00 am Ok, i see.
When creating the libpack, i was not able to have both (debug and release) packages for numpy in the libpack. Maybe you can try to replace the release numpy package with a debug package.
I will try, thanks for your help!!!
by haonk
Wed Oct 23, 2019 1:30 am
Forum: Developers corner
Topic: Import numpy error in FreeCAD_d
Replies: 4
Views: 1540

Re: Import numpy error in FreeCAD_d

apeltauer wrote: Fri Oct 18, 2019 4:36 am This is an known issue. Why do you need the debug version when using python?
Hi!
Because in debug version, report view will show some error, warning and exception that we did not see in release version.
And i could not use Draft workbench in debug version.
by haonk
Fri Oct 11, 2019 5:00 am
Forum: Developers corner
Topic: Import numpy error in FreeCAD_d
Replies: 4
Views: 1540

Import numpy error in FreeCAD_d

Hi everyone! I can not import numpy in Debug mode(FreeCADCmd_d), but i can do it in Release mode(FreeCADCmd) Please help me!!! OS: Windows 10 (10.0) Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.19.14555 (Git shallow) Build type: Release Hash: 7fe7be3b0cf32632df0d8df22e2595fb06000b...
by haonk
Thu Sep 05, 2019 2:38 am
Forum: Developers corner
Topic: FreeCAD build tool error
Replies: 0
Views: 412

FreeCAD build tool error

Hi!
I couldn't use command "CP" to create new Python Module. Does anyone have it?
I updated new source from git!
Image
by haonk
Wed Jul 31, 2019 1:30 am
Forum: Developers corner
Topic: What does FreeCAD use to embedded Python to C++
Replies: 5
Views: 986

Re: What does FreeCAD use to embedded Python to C++

The above mentioned libraries are used to write your own Python wrappers for C++ classes while PySide is an already 3rd party wrapper for Qt which we can use as is. Thanks!!! but i have an question! Just like Arch or Draft workbenches, Can I using only Python to create a new module? or i have to us...
by haonk
Mon Jul 22, 2019 6:39 am
Forum: Developers corner
Topic: What does FreeCAD use to embedded Python to C++
Replies: 5
Views: 986

Re: What does FreeCAD use to embedded Python to C++

We use several Python binding libraries. boost.python or alternatively pybind11 is used for the flatmesh and area modules. But for the vast majority we use our own wrapper. For a class to be wrapped an XML file must be provided and an *Imp.cpp file where the C++ <-> Python stuff is done. The framew...
by haonk
Fri Jul 19, 2019 4:54 am
Forum: Developers corner
Topic: What does FreeCAD use to embedded Python to C++
Replies: 5
Views: 986

What does FreeCAD use to embedded Python to C++

Hi!
i am new in Python and C++, i wanna improving FreeCAD source code. But i do not know how did it embedded Python into C++.
I am searching in Google and find something: pybind11, CPython and Boost.Python. So, what does we use for FreeCAD? i wanna know to learning, please help me!
by haonk
Mon Jun 17, 2019 1:14 am
Forum: Help on using FreeCAD
Topic: FreeCAD crash when import IFC file
Replies: 14
Views: 2060

Re: FreeCAD crash when import IFC file

Large IFC files can take a long time to import, depending on your IFC settings (using simple Part shapes or non-parametric Arch objects is significantly faster), there is unfortunately nothing else you can do at the moment... Yah!! i got it!! but when the import .ifc file process is complete, freeC...