@@ -58,7 +58,7 @@ class IBody(ABC):
5858 """
5959 Abstract Body interface.
6060
61- Defines the common methods for a body. TemplateBody and Body both inherit from this.
61+ Defines the common methods for a body. MasterBody and Body both inherit from this.
6262 All child classes must implement all abstract methods.
6363 """
6464
@@ -443,7 +443,7 @@ def unite(self, other: "Body") -> None:
443443 return
444444
445445
446- class TemplateBody (IBody ):
446+ class MasterBody (IBody ):
447447 """
448448 Represents solids and surfaces organized within the design assembly.
449449
@@ -460,7 +460,7 @@ class TemplateBody(IBody):
460460 grpc_client : GrpcClient
461461 An active supporting geometry service instance for design modeling.
462462 is_surface : bool, default: False
463- Boolean indicating whether the ``TemplateBody `` is in fact a surface or an actual
463+ Boolean indicating whether the ``MasterBody `` is in fact a surface or an actual
464464 3D object (with volume).
465465 """
466466
@@ -471,7 +471,7 @@ def __init__(
471471 grpc_client : GrpcClient ,
472472 is_surface : bool = False ,
473473 ):
474- """Initialize ``TemplateBody `` class."""
474+ """Initialize ``MasterBody `` class."""
475475 check_type (id , str )
476476 check_type (name , str )
477477 check_type (grpc_client , GrpcClient )
@@ -489,7 +489,7 @@ def __init__(
489489 self ._tessellation = None
490490
491491 def reset_tessellation_cache (func ):
492- """Decorate ``TemplateBody `` methods that require a tessellation cache update.
492+ """Decorate ``MasterBody `` methods that require a tessellation cache update.
493493
494494 Parameters
495495 ----------
@@ -503,7 +503,7 @@ def reset_tessellation_cache(func):
503503 """
504504
505505 @wraps (func )
506- def wrapper (self : "TemplateBody " , * args , ** kwargs ):
506+ def wrapper (self : "MasterBody " , * args , ** kwargs ):
507507 self ._tessellation = None
508508 return func (self , * args , ** kwargs )
509509
@@ -614,7 +614,7 @@ def imprint_curves(
614614 ) -> Tuple [List [Edge ], List [Face ]]: # noqa: D102
615615 raise NotImplementedError (
616616 """
617- imprint_curves is not implemented at the TemplateBody level.
617+ imprint_curves is not implemented at the MasterBody level.
618618 Instead, call this method on a Body.
619619 """
620620 )
@@ -630,7 +630,7 @@ def project_curves(
630630 ) -> List [Face ]: # noqa: D102
631631 raise NotImplementedError (
632632 """
633- project_curves is not implemented at the TemplateBody level.
633+ project_curves is not implemented at the MasterBody level.
634634 Instead, call this method on a Body.
635635 """
636636 )
@@ -676,7 +676,7 @@ def copy(self, parent: "Component", name: str = None) -> "Body": # noqa: D102
676676 )
677677
678678 # Assign the new body to its specified parent (and return the new body)
679- tb = TemplateBody (
679+ tb = MasterBody (
680680 response .master_id , copy_name , self ._grpc_client , is_surface = self .is_surface
681681 )
682682 parent ._transformed_part .part .bodies .append (tb )
@@ -726,23 +726,23 @@ def plot(
726726
727727 def intersect (self , other : "Body" ) -> None : # noqa: D102
728728 raise NotImplementedError (
729- "TemplateBody does not implement boolean methods. Call this method on a Body instead."
729+ "MasterBody does not implement boolean methods. Call this method on a Body instead."
730730 )
731731
732732 def subtract (self , other : "Body" ) -> None : # noqa: D102
733733 raise NotImplementedError (
734- "TemplateBody does not implement boolean methods. Call this method on a Body instead."
734+ "MasterBody does not implement boolean methods. Call this method on a Body instead."
735735 )
736736
737737 def unite (self , other : "Body" ) -> None :
738738 # noqa: D102
739739 raise NotImplementedError (
740- "TemplateBody does not implement boolean methods. Call this method on a Body instead."
740+ "MasterBody does not implement boolean methods. Call this method on a Body instead."
741741 )
742742
743743 def __repr__ (self ) -> str :
744- """Represent the ``TemplateBody `` as a string."""
745- lines = [f"ansys.geometry.core.designer.TemplateBody { hex (id (self ))} " ]
744+ """Represent the ``MasterBody `` as a string."""
745+ lines = [f"ansys.geometry.core.designer.MasterBody { hex (id (self ))} " ]
746746 lines .append (f" Name : { self .name } " )
747747 lines .append (f" Exists : { self .is_alive } " )
748748 lines .append (f" Surface body : { self .is_surface } " )
@@ -767,11 +767,11 @@ class Body(IBody):
767767 User-defined label for the body.
768768 parent : Component
769769 Parent component to nest the new component under within the design assembly.
770- template : TemplateBody
770+ template : MasterBody
771771 The master body that this body is an occurrence of.
772772 """
773773
774- def __init__ (self , id , name , parent : "Component" , template : TemplateBody ) -> None :
774+ def __init__ (self , id , name , parent : "Component" , template : MasterBody ) -> None :
775775 """Initialize ``Body`` class."""
776776 self ._id = id
777777 self ._name = name
@@ -1016,7 +1016,7 @@ def __repr__(self) -> str:
10161016 lines .append (f" Name : { self .name } " )
10171017 lines .append (f" Exists : { self .is_alive } " )
10181018 lines .append (f" Parent component : { self ._parent .name } " )
1019- lines .append (f" TemplateBody : { self ._template .id } " )
1019+ lines .append (f" MasterBody : { self ._template .id } " )
10201020 lines .append (f" Surface body : { self .is_surface } " )
10211021 if self .is_surface :
10221022 lines .append (f" Surface thickness : { self .surface_thickness } " )
0 commit comments