ClassesClassesClassesClasses | | | | Operators

write_polygon_xld_dxfwrite_polygon_xld_dxfWritePolygonXldDxfwrite_polygon_xld_dxfWritePolygonXldDxfWritePolygonXldDxf (Operator)

Name

write_polygon_xld_dxfwrite_polygon_xld_dxfWritePolygonXldDxfwrite_polygon_xld_dxfWritePolygonXldDxfWritePolygonXldDxf — Write XLD polygons to a file in DXF format.

Signature

write_polygon_xld_dxf(Polygons : : FileName : )

Herror write_polygon_xld_dxf(const Hobject Polygons, const char* FileName)

Herror T_write_polygon_xld_dxf(const Hobject Polygons, const Htuple FileName)

Herror write_polygon_xld_dxf(Hobject Polygons, const HTuple& FileName)

void HXLDPoly::WritePolygonXldDxf(const HTuple& FileName) const

void HXLDPolyArray::WritePolygonXldDxf(const HTuple& FileName) const

void WritePolygonXldDxf(const HObject& Polygons, const HTuple& FileName)

void HXLDPoly::WritePolygonXldDxf(const HString& FileName) const

void HXLDPoly::WritePolygonXldDxf(const char* FileName) const

void HOperatorSetX.WritePolygonXldDxf(
[in] IHUntypedObjectX* Polygons, [in] VARIANT FileName)

void HXLDPolyX.WritePolygonXldDxf([in] BSTR FileName)

static void HOperatorSet.WritePolygonXldDxf(HObject polygons, HTuple fileName)

void HXLDPoly.WritePolygonXldDxf(string fileName)

Description

write_polygon_xld_dxfwrite_polygon_xld_dxfWritePolygonXldDxfwrite_polygon_xld_dxfWritePolygonXldDxfWritePolygonXldDxf writes the XLD polygons PolygonsPolygonsPolygonsPolygonsPolygonspolygons to the file FileNameFileNameFileNameFileNameFileNamefileName in DXF format. If no absolute path is given in FileNameFileNameFileNameFileNameFileNamefileName the output file is created in the current directory of the HALCON process.

write_polygon_xld_dxfwrite_polygon_xld_dxfWritePolygonXldDxfwrite_polygon_xld_dxfWritePolygonXldDxfWritePolygonXldDxf writes the file according to the DXF version AC1009 (AutoCAD Release 12). Each polygon is stored as a POLYLINE.

The operator read_polygon_xld_dxfread_polygon_xld_dxfReadPolygonXldDxfread_polygon_xld_dxfReadPolygonXldDxfReadPolygonXldDxf can be used to read the XLD polygon.

Attention

The XLD contours that are possibly referenced by PolygonsPolygonsPolygonsPolygonsPolygonspolygons are not stored in the DXF file. Therefore, when the polygons are read again using read_polygon_xld_dxfread_polygon_xld_dxfReadPolygonXldDxfread_polygon_xld_dxfReadPolygonXldDxfReadPolygonXldDxf, this information is lost, and no references to contours are generated for the polygons. Hence, operators that access the contours associated with a polygon, e.g., split_contours_xldsplit_contours_xldSplitContoursXldsplit_contours_xldSplitContoursXldSplitContoursXld will not work correctly.

Parallelization

Parameters

PolygonsPolygonsPolygonsPolygonsPolygonspolygons (input_object)  xld_poly(-array) objectHXLDPolyHXLDPolyHXLDPolyHXLDPolyXHobject

XLD polygons to be written.

FileNameFileNameFileNameFileNameFileNamefileName (input_control)  filename.write HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Name of the DXF file.

File extension: .dxf

Result

If the parameters are correct and the file could be written the operator write_polygon_xld_dxfwrite_polygon_xld_dxfWritePolygonXldDxfwrite_polygon_xld_dxfWritePolygonXldDxfWritePolygonXldDxf returns the value 2 (H_MSG_TRUE). Otherwise, an exception is raised.

Possible Predecessors

gen_polygons_xldgen_polygons_xldGenPolygonsXldgen_polygons_xldGenPolygonsXldGenPolygonsXld

See also

read_polygon_xld_dxfread_polygon_xld_dxfReadPolygonXldDxfread_polygon_xld_dxfReadPolygonXldDxfReadPolygonXldDxf, write_contour_xld_dxfwrite_contour_xld_dxfWriteContourXldDxfwrite_contour_xld_dxfWriteContourXldDxfWriteContourXldDxf

Module

Foundation


ClassesClassesClassesClasses | | | | Operators