Search found 227 matches

by qingfeng.xia
Thu Mar 26, 2020 11:00 pm
Forum: Install / Compile
Topic: index.html lost content for doxygen generated html documentation
Replies: 2
Views: 580

Re: index.html lost content for doxygen generated html documentation

I tried USE_MDMAINPAGE_FILE of doxygen 1.8. it does not work. I will try again if I have more time later. thank you ... I know doxygen has an option to use one Markdown page as the index.html. For FreeCAD it seems is [src/Doc/BuildDocDoxy.cfg.in] That one is the main configuration file for the entir...
by qingfeng.xia
Thu Mar 26, 2020 4:00 pm
Forum: Install / Compile
Topic: index.html lost content for doxygen generated html documentation
Replies: 2
Views: 580

index.html lost content for doxygen generated html documentation

https://iesensor.com/FreeCADDoc/0.19/index.html Screenshot from 2020-03-26 15-48-19.png however, 0.16 has a pretty picture, and some other useful stuff. see https://iesensor.com/FreeCADDoc/0.16-dev/index.html Is that a bug? or other reason? I know doxygen has an option to use one Markdown page as t...
by qingfeng.xia
Fri Mar 13, 2020 11:59 am
Forum: Developers corner
Topic: How to register a new quantity unit? (where is unitDictionary)
Replies: 2
Views: 423

Re: How to register a new quantity unit? (where is unitDictionary)

thank you very much, that is exactly what I need, very good example to follow, although, lots of work
by qingfeng.xia
Thu Mar 12, 2020 1:03 pm
Forum: Developers corner
Topic: How to register a new quantity unit? (where is unitDictionary)
Replies: 2
Views: 423

How to register a new quantity unit? (where is unitDictionary)

When I tried to fix some bugs in fluid material, https://forum.freecadweb.org/viewtopic.php?f=18&t=42718&p=363109#p363109 I found the root of the bug is "unit not registered". according to wiki, I should add something to unitDictionary, where is it? I think it is because the unit o...
by qingfeng.xia
Thu Mar 12, 2020 12:31 pm
Forum: Python scripting and macros
Topic: a python3 script to detect and append FreeCAD lib to sys.path
Replies: 2
Views: 757

Re: a python3 script to detect and append FreeCAD lib to sys.path

this script does not detect pure pythom modules, `Mod`, for python3 daily build libFreeCADApp.so => /usr/lib/freecad-daily-python3/lib/libFreeCADApp.so (0x00007effa6620000) libFreeCADBase.so => /usr/lib/freecad-daily-python3/lib/libFreeCADBase.so (0x00007effa6294000) while pure python module like Sp...
by qingfeng.xia
Wed Mar 11, 2020 10:51 pm
Forum: FEM
Topic: feature: general initial value and body source, to be tested
Replies: 54
Views: 9243

Re: feature: general initial value and body source, to be tested

add those 2 dumb functions to viewprovider class, in addition to _FemConstraintGeneric.py class. It fixed json error for me. This solution is aslo form FreeCAD forum. https://forum.freecadweb.org/viewtopic.php?f=22&t=40812&p=373094#p373094 src/Mod/Fem/femguiobjects/_ViewProviderFemGenericCon...
by qingfeng.xia
Wed Mar 04, 2020 10:34 pm
Forum: Python scripting and macros
Topic: a python3 script to detect and append FreeCAD lib to sys.path
Replies: 2
Views: 757

a python3 script to detect and append FreeCAD lib to sys.path

this python3 only script works for all platforms if freecad is on command line PATH on windows, if freecad is not on PATH , nor uninstall record found in registry then PYTHONPATH must be set usage: from detectFreeCAD import append_freecad_mod_path append_freecad_mod_path() try: import FreeCAD except...
by qingfeng.xia
Sat Feb 29, 2020 9:46 pm
Forum: FEM
Topic: feature: general initial value and body source, to be tested
Replies: 54
Views: 9243

Re: feature: general initial value and body source, to be tested

bernd wrote: Mon Feb 24, 2020 8:55 pm IMHO it shoudl be named FemConstraintGeneric instead FemGenericConstraint

A new PR has been sent to your fembodyconstraint branch. I pull your branch on Tuesday, it still show merge conflict, not sure why.

1. Class rename
2. Json serializable error fixed
by qingfeng.xia
Sat Feb 29, 2020 9:36 pm
Forum: Python scripting and macros
Topic: not json serializable [solved]
Replies: 9
Views: 5646

Re: not json serializable

I also runs into this problem, and I found the ViewProvider derived class also needs adds those 2 methods, in addition to DocumentObject ... well, it's quite difficult to explain all that. See how to store attributes with getstate/setstate here: Creating_a_FeaturePython_Box,_Part_II class ViewProvid...
by qingfeng.xia
Mon Feb 24, 2020 11:18 pm
Forum: FEM
Topic: feature: general initial value and body source, to be tested
Replies: 54
Views: 9243

Re: feature: general initial value and body source, to be tested

bernd wrote: Mon Feb 24, 2020 8:55 pm IMHO it shoudl be named FemConstraintGeneric instead FemGenericConstraint

It should be easy to just do find and replacement. I will do it later.
I am stuck on the json serialization error.