Files
create/src/Mod/PartDesign/App/Body.pyi

34 lines
1.1 KiB
Python

from Base.Metadata import export, constmethod
from Part.BodyBase import BodyBase
from typing import Final, overload
@export(
Include="Mod/PartDesign/App/Body.h",
FatherInclude="Mod/Part/App/BodyBasePy.h",
)
class Body(BodyBase):
"""
PartDesign body class
Author: Juergen Riegel (FreeCAD@juergen-riegel.net)
Licence: LGPL
"""
VisibleFeature: Final[object] = ...
"""Return the visible feature of this body"""
def insertObject(self, feature: object, target: object, after: bool = False) -> None:
"""
insertObject(feature, target, after=False)
Insert the feature into the body after the given feature.
@param feature The feature to insert into the body
@param target The feature relative which one should be inserted the given.
If target is NULL than insert into the end if where is InsertBefore
and into the begin if where is InsertAfter.
@param after if true insert the feature after the target. Default is false.
@note the method doesn't modify the Tip unlike addObject()
"""
...