摘要:
In a method for analyzing a STEP formatted file of a measurement graphics using a computing device, one or more graphic keywords and graphics analysis modes are predefined in a storage device of the computing device. The method extracts a content keyword and a content character string from each line of the STEP formatted file, and analyzes the content keywords and the content character strings to obtain shell data of the graphic elements. The method further draws a geometrical shell of the measurement graphics according to the shell data using a curve meshing method, marks boundaries of the geometrical shell using an indication mark, and displays the measurement graphics with the indication mark on a display device of the computing device.
摘要:
A method for locating marked numbers in a two dimensional (2D) image of an object, a rectangular frame enclosing the 2D image is determined. The method divides a boundary of the rectangular frame into a plurality of segments, assigns an index number to each segment along a horizontal direction and a vertical direction of the rectangular frame. The method further obtains a marked number selected from a preset file, and locates a cursor on a first position of the marked number in the 2D image according to coordinates of the marked number, or locates the cursor on a second position of the marked number according to a horizontal index number and a vertical index number of the marked number.
摘要:
In a method for analyzing two-dimensional (2D) graphic files of a measurement product using a computing device, a 2D graphic file of the measurement product is obtained from a storage device. The method analyzes the geometrical data to generate the 2D graphic objects, sets characteristic values of the 2D graphic objects, and parses code values of the 2D graphic objects according to the characteristic codes. The method analyzes a coordinate value of each of the 2D graphic objects according to the geometrical data of the file array, and calculates a normal vector of each of the 2D graphic objects according to the characteristic code and the coordinate value of the 2D graphic object. A 2D drawing is displayed on a display device according to each of the 2D graphic objects and the corresponding normal vector.
摘要:
A method for creating measurement codes automatically using an electronic device. In the method, a directory tree is created to display a plurality of feature elements. A selected feature element in the directory tree is determined; and output axes of the selected feature element are determined, according to an attribute type and a measurement type of the selected feature element. A marked number of the selected feature element is received; and a reference value, an upper tolerance, and a lower tolerance of the selected feature element are obtained. Measurement codes of the selected feature element are created according to the above-described obtained information, and the measurement codes are stored in a storage device of the electronic device.
摘要:
In a method for extracting dimensions of a product using a computing device, an engineering drawing of the product is read from a storage system of the computing device. A first layer of the engineering drawing that includes identifiers and a second layer of the engineering drawing that includes the dimensions are acquired. The identifiers in the first layer are extracted and added into a dimension list. The dimensions corresponding to each identifier in the second layer are extracted and added into the dimension list. Content of the dimension list is inserted into a report file. The report file is displayed on the display device.
摘要:
A two-dimensional (2D) drawing and a three-dimensional (3D) drawing of a product are displayed in a 2D view space and a 3D view space of a 3D offline programming software on a display device. A 3D view matrix and a 2D view matrix are calculated. A compensation matrix is calculated. A current view matrix of the 3D view space and a current view matrix of the 2D view space are calculated. A first view space where displays a cursor is defined as a current view space, and a second view space is defined as a synchronous view space. A synchronous matrix of the current view space is calculated. An update matrix that updates the drawing displayed in the synchronous view space is calculated. The drawing displayed in the synchronous view space of the display device is updated by multiplying the update matrix and coordinates of the drawing.
摘要:
In a method for outputting dimension data using a computing device, a dimension file is read and searched for at least one dimension keyword. If there is the at least one dimension keyword in the dimension file, dimension data from the dimension file is extracted and stored as one or more structure variables into a structure array. Each of the one or more structure variables is added into a dimension field of a preset general list. Each dimension field in the preset general list is output into an output report according an output position of each dimension field, and the output report is displayed on a display screen.
摘要:
A method outputs measurement data automatically using an electronic device. The method obtains measurement data of feature elements from a two dimensional (2D) image of a measured object, determines a type of measurement applied to each feature element, obtains feature elements from planes of a three dimensional (3D) image of the measured object, and maps each of the obtained feature elements in the 3D image to the 2D image. The method further obtains sequential marked numbers from the 2D image, determines a feature element which is nearest to any marked number from the mapped feature elements, determines an output axis for each of the determined feature elements, and outputs measured results and measurement codes of the determined feature elements by reference to the measurement data, the type of measurement and the output axis of each determined feature element.
摘要:
In a programming method, a number of points measured on a product are roughly fitted into/matched with one or more geometrical elements, and a fitting value of the geometrical elements are output to a first data list. The method records the storing positions of the geometrical elements having fitting values that are within a predetermined tolerance value in a second data list, and obtains a best geometrical element type of the product by determining geometrical element types that correspond to each of the storing positions recorded in the second data list using a matching condition. After the best geometrical element type from the first data list is obtained, the method generates a measurement program and displays the measurement program on a display device.
摘要:
A curved surface importing device and method imports character strings of graphic parameters and graphic attributes of graphs from an initial graphic exchange specification (IGES) document, and analyzes the character strings of each of the graphs to generate a graphic model. The curved surface importing device converts the graphic model to a plurality of free-form curves and a free-form curved surface, connects each of the free-form curves to generate a closed boundary curve, and cuts out a contour surface from the free-form curved surface according to the closed boundary curve. The curved surface importing device further meshes the contour surface using a plurality of triangles, and determines an approximate poly-line of a boundary of the contour surface. The plurality of triangles and the approximate poly-line of a boundary of the contour surface are displayed on a display screen.