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

Method tag

cadquery/cq.py:215–225  ·  view source on GitHub ↗

Tags the current CQ object for later reference. :param name: the name to tag this object with :returns: self, a CQ object with tag applied

(self: T, name: str)

Source from the content-addressed store, hash-verified

213 self._tag = None
214
215 def tag(self: T, name: str) -> T:
216 """
217 Tags the current CQ object for later reference.
218
219 :param name: the name to tag this object with
220 :returns: self, a CQ object with tag applied
221 """
222 self._tag = name
223 self.ctx.tags[name] = self
224
225 return self
226
227 def _collectProperty(self, propName: str) -> List[CQObject]:
228 """

Callers 10

test_selectorsFunction · 0.45
test_missing_selectionFunction · 0.45
testExtrudeUntilFaceMethod · 0.45
testTagMethod · 0.45
testTagSelectorsMethod · 0.45
test_MergeTagsMethod · 0.45
nested_assyFunction · 0.45
nested_assy_sphereFunction · 0.45
test_order_of_transformFunction · 0.45

Calls

no outgoing calls

Tested by 10

test_selectorsFunction · 0.36
test_missing_selectionFunction · 0.36
testExtrudeUntilFaceMethod · 0.36
testTagMethod · 0.36
testTagSelectorsMethod · 0.36
test_MergeTagsMethod · 0.36
nested_assyFunction · 0.36
nested_assy_sphereFunction · 0.36
test_order_of_transformFunction · 0.36