how to identify my Part::FeaturePython objects

Need help, or want to share a macro? Post here!
User avatar
bernd
Posts: 8997
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: how to identify my Part::FeaturePython objects

Post by bernd » Tue Dec 31, 2019 8:50 am

FEM does make heavy usage of all kind of type checking of Python and C++ classes. I have implemented some helper an all kind of unit tests. I am on the way and only have hands on a mobil. May be more information later on.

methods type_of_obj, is_of_type and is_derived_from in module https://github.com/FreeCAD/FreeCAD/blob ... emutils.py

unit tests in module https://github.com/FreeCAD/FreeCAD/blob ... _object.py
galou_breizh
Posts: 290
Joined: Wed Sep 15, 2010 9:38 am

Re: how to identify my Part::FeaturePython objects

Post by galou_breizh » Mon Jan 06, 2020 3:38 pm

This kind of methods is surely something that should belong to the FreeCAD core and always be available.

Gaël
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests