Search found 817 matches

Go to advanced search

by chennes
Fri Apr 16, 2021 2:44 am
Forum: Developers corner
Topic: Metadata: One Standard to Rule Them All
Replies: 31
Views: 1239

Re: Metadata: One Standard to Rule Them All

Makes sense, thanks. I'm to the point where I am implementing "themes" in the Addon manager now, and I wanted to make sure I was following whatever the "standard" is. So it sounds like really "Mod" is the standard install location for everything, and Macro is a sort of "auxiliary" location. I am try...
by chennes
Thu Apr 15, 2021 9:50 pm
Forum: Developers corner
Topic: Metadata: One Standard to Rule Them All
Replies: 31
Views: 1239

Re: Metadata: One Standard to Rule Them All

mnesarco -- a question for you about how these "packages" work. The built-in Add-on manager really only supports installing into two relatively fixed locations: FreeCAD.getUserAppDataDir() + os.sep + "Mod" and FreeCAD.getUserAppDataDir() + os.sep + "Macro" Here there really isn't any notion that a p...
by chennes
Thu Apr 15, 2021 6:28 pm
Forum: Developers corner
Topic: Creating the Python wrapper for a new class
Replies: 11
Views: 354

Re: Creating the Python wrapper for a new class

Thanks -- I'm a bit unsure of the memory management in this code, so I really appreciate your help. I think I have a working solution for the multimap (as a dictionary of lists): here's actual full code for the getContent function right now: Py::Object MetadataPy::getContent(void) const { auto conte...
by chennes
Thu Apr 15, 2021 4:05 pm
Forum: Developers corner
Topic: Creating the Python wrapper for a new class
Replies: 11
Views: 354

Re: Creating the Python wrapper for a new class

I have the simple stuff working fine -- I based it on your comments and code in the discussion that you linked to above (so thanks for that!). But I presume that what this wrapper class is creating on the Python side is a Python object with the various attributes/functions that my C++ Metadata class...
by chennes
Thu Apr 15, 2021 3:25 pm
Forum: Developers corner
Topic: Creating the Python wrapper for a new class
Replies: 11
Views: 354

Re: Creating the Python wrapper for a new class

I almost have this wrapper working, but I'm missing a detail someplace, I think because I don't exactly understand what the class that is getting generated by the XML is. I have a complication in my C++ class: it's recursive. That is, a Metadata object can contain other Metadata objects. So for all ...
by chennes
Wed Apr 14, 2021 3:42 pm
Forum: Developers corner
Topic: Creating the Python wrapper for a new class
Replies: 11
Views: 354

Re: Creating the Python wrapper for a new class

Thanks to both of you for the links: I think I'm on the right track now. This seems like something that would be useful to document on the Wiki, so I am going to start writing stuff down. First, though: am I correct in saying that this is a custom-build wrapping mechanism? I know we use PyCXX for so...
by chennes
Tue Apr 13, 2021 6:59 pm
Forum: Open discussion
Topic: Opening an .scad file its parts are put to the wrong coordinates on screen
Replies: 15
Views: 472

Re: Opening an .scad file its parts are put to the wrong coordinates on screen

What do you think 0.20 will be out? Or what is your estimate for a fix for 0.19 ? 0.19 was just released a few weeks ago, so 0.20 is still a way off. Your best bet if you need this in the short term is to grab the two files I linked to and replace the files in your FreeCAD distribution with them. Y...
by chennes
Tue Apr 13, 2021 4:28 pm
Forum: Developers corner
Topic: Creating the Python wrapper for a new class
Replies: 11
Views: 354

Creating the Python wrapper for a new class

As discussed in this topic , I'm working on a package metadata format. So I've got a new class, MetadataReader, that does the ingest and parse of that file and provides access to the data in it. It's written in C++. Now I'd like to wrap it in Python so it's accessible from the add-on manager. Can so...
by chennes
Tue Apr 13, 2021 3:40 pm
Forum: Wiki
Topic: 0.19 Release notes refer to wrong new Dark Stylesheet
Replies: 3
Views: 144

Re: 0.19 Release notes refer to wrong new Dark Stylesheet

@turn211 you can get Wiki editing permissions by writing to @yorik, @jmaustpc, and @Kunda1 -- that should be an easy update.
by chennes
Tue Apr 13, 2021 2:21 pm
Forum: Open discussion
Topic: Opening an .scad file its parts are put to the wrong coordinates on screen
Replies: 15
Views: 472

Re: Opening an .scad file its parts are put to the wrong coordinates on screen

I should also add that, although the work I have been doing is destined for 0.20, since it's Python, users of 0.19 can download the two files involved and just replace their versions. https://raw.githubusercontent.com/FreeCAD/FreeCAD/master/src/Mod/OpenSCAD/importCSG.py https://raw.githubusercontent...

Go to advanced search