29 lines
1.0 KiB
Python
29 lines
1.0 KiB
Python
from Base.Metadata import export
|
|
from Part.PartFeature import PartFeature
|
|
from typing import Optional, overload
|
|
|
|
@export(
|
|
Include="Mod/PartDesign/App/Feature.h",
|
|
FatherInclude="Mod/Part/App/PartFeaturePy.h",
|
|
)
|
|
class Feature(PartFeature):
|
|
"""
|
|
This is the father of all PartDesign object classes
|
|
|
|
Author: Juergen Riegel (FreeCAD@juergen-riegel.net)
|
|
Licence: LGPL
|
|
"""
|
|
|
|
@overload
|
|
def getBaseObject(self) -> Optional[object]:
|
|
"""
|
|
getBaseObject: returns feature this one fuses itself to, or None. Normally, this should be the same as BaseFeature property, except for legacy workflow. In legacy workflow, it will look up the support of referenced sketch.
|
|
"""
|
|
...
|
|
|
|
def getBaseObject(self) -> Optional[object]:
|
|
"""
|
|
getBaseObject: returns feature this one fuses itself to, or None. Normally, this should be the same as BaseFeature property, except for legacy workflow. In legacy workflow, it will look up the support of referenced sketch.
|
|
"""
|
|
...
|