Пример #1
0
    def explode(self, target_layout: 'BaseLayout' = None) -> 'EntityQuery':
        """ Explode parts of LWPOLYLINE as LINE or ARC entities into target layout,
        if target layout is ``None``, the target layout is the layout of the
        LWPOLYLINE.

        Returns an :class:`~ezdxf.query.EntityQuery` container with all DXF parts.

        Args:
            target_layout: target layout for DXF parts, ``None`` for same layout
                as source entity.

        """
        return explode_entity(self, target_layout)
Пример #2
0
    def explode(self, target_layout: 'BaseLayout' = None) -> 'EntityQuery':
        """ Explode POLYLINE as DXF LINE, ARC or 3DFACE primitives into target
        layout, if the target layout is ``None``, the target layout is the
        layout of the POLYLINE entity .
        Returns an :class:`~ezdxf.query.EntityQuery` container including all
        DXF primitives.

        Args:
            target_layout: target layout for DXF primitives, ``None`` for same
            layout as source entity.

        """
        return explode_entity(self, target_layout)
Пример #3
0
    def explode(self, target_layout: "BaseLayout" = None) -> "EntityQuery":
        """Explode parts of MLINE as LINE, ARC and HATCH entities into target
        layout, if target layout is ``None``, the target layout is the layout
        of the MLINE.

        Returns an :class:`~ezdxf.query.EntityQuery` container with all DXF parts.

        Args:
            target_layout: target layout for DXF parts, ``None`` for same layout
                as source entity.
        """
        from ezdxf.explode import explode_entity

        return explode_entity(self, target_layout)
Пример #4
0
    def explode(self, target_layout: 'BaseLayout' = None) -> 'EntityQuery':
        """
        Explode parts of DIMENSION as basic DXF entities like LINE, ARC or TEXT into target layout,
        if target layout is ``None``, the target layout is the layout of the DIMENSION.

        Returns an :class:`~ezdxf.query.EntityQuery` container with all DXF parts.

        Args:
            target_layout: target layout for DXF parts, ``None`` for same layout as source entity.

        .. versionadded:: 0.12

        """
        return explode_entity(self, target_layout)
Пример #5
0
    def explode(self, target_layout: "BaseLayout" = None) -> "EntityQuery":
        """Explode the LWPOLYLINE entity as DXF primitives (LINE or ARC) into
        the target layout, if the target layout is ``None``, the target layout
        is the layout of the source entity.

        Returns an :class:`~ezdxf.query.EntityQuery` container of all DXF
        primitives.

        Args:
            target_layout: target layout for the DXF primitives, ``None`` for
                same layout as the source entity.

        """
        return explode_entity(self, target_layout)
Пример #6
0
    def explode(self, target_layout: 'BaseLayout' = None) -> 'EntityQuery':
        """
        Explode parts of LEADER as DXF primitives into target layout, if target layout is ``None``,
        the target layout is the layout of the LEADER.

        Returns an :class:`~ezdxf.query.EntityQuery` container with all DXF parts.

        Args:
            target_layout: target layout for DXF parts, ``None`` for same layout as source entity.

        .. versionadded:: 0.14

        """
        return explode_entity(self, target_layout)
Пример #7
0
def test_do_not_explode_point_entity():
    point = Point()
    with pytest.raises(TypeError):
        explode_entity(point)