Create a new workplane object from this one. Overrides CQ.newObject, and should be used by extensions, plugins, and subclasses to create new objects. :param objlist: new objects to put on the stack :type objlist: a list of CAD primitives :return: a
(self: T, objlist: Iterable[CQObject])
| 1310 | return ns |
| 1311 | |
| 1312 | def newObject(self: T, objlist: Iterable[CQObject]) -> T: |
| 1313 | """ |
| 1314 | Create a new workplane object from this one. |
| 1315 | |
| 1316 | Overrides CQ.newObject, and should be used by extensions, plugins, and |
| 1317 | subclasses to create new objects. |
| 1318 | |
| 1319 | :param objlist: new objects to put on the stack |
| 1320 | :type objlist: a list of CAD primitives |
| 1321 | :return: a new Workplane object with the current workplane as a parent. |
| 1322 | """ |
| 1323 | |
| 1324 | # copy the current state to the new object |
| 1325 | ns = self.__class__() |
| 1326 | ns.plane = copy(self.plane) |
| 1327 | ns.parent = self |
| 1328 | ns.objects = list(objlist) |
| 1329 | ns.ctx = self.ctx |
| 1330 | return ns |
| 1331 | |
| 1332 | def _findFromPoint(self, useLocalCoords: bool = False) -> Vector: |
| 1333 | """ |
no outgoing calls