Share code for finding a body containing a feature
This commit is contained in:
committed by
Stefan Tröger
parent
16e4ce20f0
commit
ffc6cc2f23
@@ -56,8 +56,12 @@ namespace PartDesignGui {
|
||||
|
||||
/// Return active body or show a warning message
|
||||
PartDesign::Body *getBody(bool messageIfNot);
|
||||
PartDesign::Body *getBodyFor(App::DocumentObject*, bool messageIfNot);
|
||||
App::Part *getPartFor(App::DocumentObject*, bool messageIfNot);
|
||||
/**
|
||||
* Finds a body for the given feature. And shows a message if not found
|
||||
* Also unlike Body::findBodyFor it checks if the active body has the feature first.
|
||||
*/
|
||||
PartDesign::Body *getBodyFor(const App::DocumentObject*, bool messageIfNot);
|
||||
App::Part *getPartFor(const App::DocumentObject*, bool messageIfNot);
|
||||
|
||||
/**
|
||||
* @author Werner Mayer
|
||||
|
||||
Reference in New Issue
Block a user