MCPcopy
hub / github.com/CadQuery/cadquery / add

Method add

cadquery/assembly.py:193–212  ·  view source on GitHub ↗

Add a subassembly to the current assembly. :param obj: subassembly to be added :param loc: location of the root object (default: None, resulting in the location stored in the subassembly being used) :param name: unique name of the root object (default: Non

(
        self,
        obj: "Assembly",
        loc: Optional[Location] = None,
        name: Optional[str] = None,
        color: Optional[Color] = None,
        material: Optional[Union[Material, str]] = None,
    )

Source from the content-addressed store, hash-verified

191
192 @overload
193 def add(
194 self,
195 obj: "Assembly",
196 loc: Optional[Location] = None,
197 name: Optional[str] = None,
198 color: Optional[Color] = None,
199 material: Optional[Union[Material, str]] = None,
200 ) -> Self:
201 """
202 Add a subassembly to the current assembly.
203
204 :param obj: subassembly to be added
205 :param loc: location of the root object (default: None, resulting in the location stored in
206 the subassembly being used)
207 :param name: unique name of the root object (default: None, resulting in the name stored in
208 the subassembly being used)
209 :param color: color of the added object (default: None, resulting in the color stored in the
210 subassembly being used)
211 """
212 ...
213
214 @overload
215 def add(

Callers 15

_to_assyFunction · 0.95
test_fused_assemblyFunction · 0.95
test_assy_vtk_rotationFunction · 0.95
simple_assyFunction · 0.95
nested_assyFunction · 0.95
nested_assy_sphereFunction · 0.95
empty_top_assyFunction · 0.95

Calls 4

_ensure_materialFunction · 0.85
_copyMethod · 0.80
appendMethod · 0.80
_flattenMethod · 0.80

Tested by 15

test_fused_assemblyFunction · 0.76
test_assy_vtk_rotationFunction · 0.76
simple_assyFunction · 0.76
nested_assyFunction · 0.76
nested_assy_sphereFunction · 0.76
empty_top_assyFunction · 0.76
box_and_vertexFunction · 0.76