Académique Documents
Professionnel Documents
Culture Documents
Conversion utilities
LECTRA
Z.I. de Marticot - BP 34 33611 CESTAS Cedex - FRANCE Tel : (33) 05 57 97 80 00 - Fax : (33) 05 57 97 82 07
COPYRIGHT Any copying, reproduction or translation of all or part of the contents of this document without the express written permission of LECTRA SYSTEMES is strictly forbidden by the provisions of the law of March 11th 1957. GUARANTEES LECTRA SYSTEMES reserves the right to modify, without prior notice, information relating to its products in order to improve their reliability or operating capacity. Publication does not imply that the contents are free of industrial patent rights and does not grant permission in any other respect to those rights. LECTRA SYSTEMES assumes no liability for the consequences of using this information in any way whatsoever
REGISTERED TRADE MARKS LS is a LECTRA SYSTEMES registered trade mark in France and in other countries. Solaris is a Sun Microsystems, Inc. registered trade mark UNIX is a UNIX System Laboratories, Inc. registered trade mark
The LECTRA documentation department is always available to give you any further information you may require and remains open to any suggestions you may wish to make.
XCHA NG C o n v e r s io n m o d u le
Update follow-up
Pages modified
Further information concerning the fomats : VAR-DXFIN, VAR-DXF-OUT, Change of software versions and operating systems
1, 2, 4, 5, 6, 8, 9, 10, 13
A vertical line in the margin points out any modification that has been made since the last edition.
XCHA NG C o n v e r s io n m o d u le
Preface
Purpose of the document
This document has been created to provide all the information required for the use of this XCHANG Conversion module. It is intended for the customer operator in charge of its running, as well as LECTRA technical and commercial staff.
There is an appendix at the end of the document which gives a list of error messages.
Reference documents
- Operating system and Utilities Customer's manual - Code 521252. - MasterFile V2.x Customer's manual- Code 521284.
vii
Contents
Update follow-up.......................................................................................................................iii Preface.........................................................................................................................................v 1 - Introduction to the software.................................................................................................1 1.1 1.2 1.3 1.4 1.5 General Description.....................................................................................................1 Required hardware and software configuration.............................................................2 Identification of the files and directories used..............................................................2 Launching the software................................................................................................2 Conversion principle....................................................................................................3
2 - Conversion of the different formats......................................................................................4 2.1 2.2 Choice of conversion format..........................................................................................4 Parameterisation of conversion files.............................................................................5 2.2.1 2.2.2 PAT-DXF-IN, PAT-DXF-OUT, VAR-DXF-IN and VAR-DXF-OUT formats .....5 MRK-ASCI-IN and MRK-ASCI-OUT formats................................................11
3 - Launching the conversion operation....................................................................................13 4 - Monitoring of the current operation....................................................................................13 5 - Exit from the software.......................................................................................................13 Appendix 1 : List of error messages according to the code................................................................1
521297
viii
521297
ix
Table of illustrations
Figure 1 Figure 2 Figure 3 Figure 4 MASTERFILE-ACTION window with conversion module .....................................3 Choice of conversion format...................................................................................4 Parameterisation for PAT-DXF-IN/OUT//VAR-DXF-IN/OUT format files..........6 Parameterisation for MRK-ASCI-IN/ MRK-ASCI-OUT format files...................11
521297
521297
XCHA NG C o n v e r s io n m o d u le
XCHANG-PAT-DXF-OUT
- For garments (VARIANT) : XCHANG-VAR-ASCI-IN XCHANG-VAR-ASCI-OUT is used for the conversion of Garment files in an ASCII format, into a Lectra format, which can be exploited by Lectra machines, (Import), is used for the conversion of Garment files in a Lectra format, into a ASCII format (Export),
- For markers (MARKER) : XCHANG-MRK-ASCI-IN is used for the conversion of Marker files in an ASCII format, into a Lectra format, which can be exploited by Lectra machines, (Import), XCHANG-MRK-ASCI-OUT is used for the conversion of marker files in a Lectra format, into an ASCII format (Export), VAR-DXF-IN is used for the conversion of geometric shape files in DXF AAMA, into a Lectra VET+XCH format with the associated Lectra IBA format. VAR-DXF-OUT is used for the conversion of files to the VET format associated with the geometric shape files of Lectra IBA format, to a DXF AAMA (Export) format.
521297
2 1.2
This software programme is destined to operate on a work station working under LS UX V 4.3, or LINUX V 2.9, or SOLARIS V 2.4, integrating the OpenPartner graphic desk. Each XCHANG module conversion task will be independent and can only be activated if the licence rights corresponding to this task have been granted. The conversion of files from one format to another will be launched from MASTERFILE-ACTION. Reading or writing files in DXF AAMA format from an application depends on the application (refer to the corresponding documentation, Diamino, VigiPrint, etc.). The installation of the conversion module, must be carried out following the procedure described in the document Administrator Utilities - Code 521230, (Chapter 9 - Package installation), integrated into the Operating systems and Utilities Desktop Customer's Manual.
1.3
The parameterisation files associated to conversion operations PAT-DXF-IN, PAT-DXF-OUT, VAR-DXF-IN and VAR-DXF-OUT are generated in the DXFCONFIG directory under the name of the operation followed by the suffix .CNF. If no operation name figures in the chosen field, the parameter file will be saved by default, under the name DXF.CNF for import and export. The parameterisation files associated to MRK-ASCI-IN or MRK-ASCI-OUT conversion operations are generated in the PLACONFIG directory followed by the suffix .CNF. If no operation name figures in the chosen field, the parameter files are saved by default, under the name ASCIMRK.CNF for import, and MRKASCI.CNF for export. The files resulting from this conversion operation are saved in the directory defined in the MASTERFILE-ACTION window, in the Library input field of the destination area.
1.4
The conversion software programme is launched from the MASTERFILE-ACTION window, if the XCHANG conversion module has been installed on a station equipped with the software MASTERFILE V2.3.
The installation, configuration and start-up procedures of the environment having been carried out, - Double-click on the icon representing MASTERFILE in the applications area of the OpenPartner graphic desk. At the end of the software loading time, the MASTERFILE main menu appears (refer to the document 521284 for the complete description of this software). - Click on the button
Action
521297
The conversion module appears in the graphic interface of MASTERFILE, with the MASTERFILEACTION window, with the presence of the additional button situated under the operation of the Complete Copy. Figure 1 MASTERFILE-ACTION window with conversion module
MASTERFILE - ACTION
List...
Action Simple
Age Open
9999 day(s)
0 day(s)
Today
Save as
Library
Creation
Destination
HOME
Library
/home/util
Close
Program
Parameters
Run
1.5
Conversion principle
The conversion principle depends on the type of files to be converted and the format. The different procedures are set out in 2. There is however a common sequence based on the following operations, from the MASTERFILEACTION window :
List... , following the procedure - Select a list of files by clicking on the button described in 3.2.2 of the MASTERFILE Customer's manual. - Click on the radio button corresponding to the conversion of files, - Click on the arrow adjacent to this button : A pull-down menu shows the list of different conversion options, The option which is active is displayed on the radio button after selection.
In certain cases, format conversions (specified later), require the definition of specific parameters. This operation is carried out in a dialogue box specific to the type of conversion to be realised, and is accessible by clicking on the button
Parameters
(see 2).
When all the parameters have been defined and validated, in this dialogue box, - Choose the destination of the converted files, indicating the access path, - Launch the conversion operation by clicking on the button
Run
A MONITORING window opens up, and gives details of the progress of the operation.
521297
------------------------------------ ACTIVATING THE FUNCTION-----------------------------------From the MASTERFILE-ACTION window, once a list has been selected, following 3.2.2 of the MASTERFILE customer's manual, - Click on the radio button corresponding to the Conversion operation to select the Conversion mode, Activating this button leads to the de-activation of the three other possible operations. - Click on the adjacent arrows to open the list of different possible conversion formats, and keep the mouse button pressed down. - Select the format and the direction of the conversion by releasing the mouse button, on one of the proposed options. is used for the conversion of geometric shape files in DXF AAMA format , into a Lectra IBA format , (Import), PAT-DXF-OUT is used for the conversion of geometric shape files in Lectra IBA format Lectra, into DXF AAMA format (Export), VAR-ASCI-IN is used for the conversion of Garment files in an ASCII format, into a Lectra format, (Import), VAR-ASCI-OUT is used for the conversion of Garment files in a Lectra format, into an ASCII format (Export), MRK-ASCI-IN is used for the conversion of Marker files in ASCII format, into a Lectra format, (Import), MRK-ASCI-OUT is used for the conversion of Marker files in a Lectra format, into a ASCII format (Export). VAR-DXF-IN is used for the conversion of geometric shape files in DXF AAMA, into a Lectra VET+XCH format with the associated Lectra IBA format. VAR-DXF-OUT is used for the conversion of files to the VET format associated with the geometric shape files of Lectra IBA format, to a DXF AAMA (Export) format. The chosen option is displayed on the button corresponding to the Conversion operation, when the mouse button is released, if not, the first choice of the list is displayed by default. PAT-DXF-IN
521297
Figure 2
List...
Action Simple
Age Open
9999 day(s)
0 day(s)
Today
Complete Copie option PAT-DXF-IN PAT-DXF-IN PAT-DXF-OUT VAR-ASCI-IN VAR-ASCI-OUT MRK-ASCI-IN MRK-ASCI-OUT VAR-DXF-IN VAR-DXF-OUT Destination HOME Original Erasure Insertion (R)
Save as
Save
Erase
Library
Creation
Library
/home/util
Close
Program
Parameters
Run
Certain types of conversion require a definition of parameters for files generated in Import or in Export. This parameterisation is described in 2.2. For formats that cannot be parameterised, just launch the selected conversion operation following the procedure described in 3.
2.2
2.2.1
of
the
MASTERFILE-ACTION
is
dimmed
if
The conversion of a list of files in DXF AAMA shape files into files in VET+XCH+IBA format corresponding to the task VAR-DXF-IN (File Import), The conversion of a list of files in VET+IBA format into files in DXF AAMA format corresponding to the task VAR-DXF-OUT (File Export). Once the PAT-DXF-IN or PAT-DXF-OUT, VAR-DXF-IN or VAR-DXF-OUT, formats have been selected, it is necessary to define certain parameters to manage the conversion correctly. This operation can be carried out from a new dialogue box. Click on the button access to it.
Parameters
521297
Figure 3
3 4
Variant File
11 Restore
Standard
OK
Information In the same way as for the MASTERFILE-ACTION window, as the conversion module is an independent software, the LECTRA logo is a push button used to open the Information dialogue box, in which information on the software name, the version number, and the copyright is displayed. The button
OK
DXF unit In the DXF files, there is no notion of unit on the geometric shapes. This input field is used to give a scale to the coordinates found in these files Example : for a size X = 25 displayed, if the Unit field DXF is entered by the unit : 0.1000 mm ==> X = 2.5 mm 1.0 mm ==> X = 25.0 mm 10.0 mm ==> X = 250.0 mm = 25 cm etc.
521297
Monitoring is made up of two input fields which can be modified by selecting from a list :
None Partial Total
: : :
indicates that no monitoring will be carried out during the conversion. Option selected by default. Parameterisation to be entered by a technician specialised in DXF format. Display specific information on the DXF file, except for geometry (list of layers, list of blocks...). Parameter to be entered by a technician specialised in DXF format. Displays a series of technical information recognising the DXF AAMA format, on the DXF file including a description of the geometry.
Screen File
Total
2nd field
This second field can only be edited for a partial or total monitoring. Screen : The information will be displayed on the OpenPartner error window, which will have been opened before MASTERFILE was launched. The information will be displayed in a file which will have the name of the file which is to be converted, followed by the suffix .DBG. These files are saved in the DXFCONFIG directory.
File
It is important not to leave this parameter active permanently so as not to saturate the disk too quickly. To be used selectively in the event of a conversion error. Grading is made up of two input fields which can be modified by selecting from a list :
None Nest Rule
: :
indicates that no gradation will figure in the file to be converted. Only Basic shape generated. Option selected by default. All information concerning the gradation will be in reading (Import) or in writing (Export), in the same DXF.AAMA file, in nest form (basic graded shape in all sizes). indicates that two files are in reading (Import) or in writing (Export) : The file .DXF contains only the basic size. The file .RUL contains the associated gradation rules can be edited if the Rule field is active. Used to input directory name. In this directory there is the file with the gradation rules for export, or a file is generated for import.
Nest
Rule
2nd field
521297
.DXF 3
.RUL
For a conversion of a DXF format file into IBA or VET+IBA (Import), there are several conversion possibilities for the gradations : - The conversion can generate only basic shape(s) 1 (None Option), - Or the conversion generates grading nests 2, with the basic shape(s) in all sizes, on the same nest, (Nest Option), - Or the conversion generates basic shapes on the one hand, and tables of rules, on the other hand (Rule Option). For a conversion of an IBA or VET+IBA format file to DXF (Export) : a rules file in the case of option 3 is associated to each basic shape file.
To remain faithful to the geometry level of the shape in all sizes, it is preferable to use solution 2 (Nest Option) which is the best. However, solution 3 (Rule Option) generating the basic shape + the tables of rules is more compact when it comes to storing on the disk.
521297
Import
is selected.
Filter
Smooth
AAMA strict
The selection of the button, characterised by a tick on the toggle button, engenders the application of an algorithm which filters too large a number of points defining a geometric shape, This field is only active if the filtering has been selected. Selecting this button, characterised by a tick on the toggle button, engenders the application of an algorithm which improves the quality of the curves resulting in definition points. The filtering is applied systematically after a smooth. Selecting this button, characterised by a tick on the toggle button, ensures that the file to be converted is in AAMA format, before carrying out the conversion. If this is not the case, an error is generated in the monitoring and the file is not converted (see error list in appendix). If the strict AAMA parameter has not been selected, the conversion is carried out with no check.
File AAMA Block
6 Naming
This input field is used when there is a PATDXF-IN or VAR-DXF-IN conversion. It makes it possible to give a name to the DXF files which have been converted to IBA format. The list offers three possible options : The generated file takes on the same name as the imported DXF file, with an index corresponding to the row of the base shape contained in the DXF file. The generated file takes on the AAMA name contained in the DXF file. The generated file takes on the name of the block contained in the DXF file. This input field is only used when there is a VAR-DXF-IN conversion. It makes it possible to give a name to the DXF files which have not been converted to VET format. The list offers two possible options : : : The file generated takes on the same name as the imported DXF file. The file generated takes on the name of the AAMA garment contained in the DXF file.
File AAMA
File
AAMA Block
: :
Naming Garment:
File AAMA
521297
10
interpretation type of the geometry in the DXF file. The list offers two possible options : Block ENTITIES : : Each block encountered inserted in the ENTITIES section, will generate a file of IBA format. A file of IBA format will be generated independently according to the number of blocks inserted in the ENTITIES section
Export
10
Shapes access paths This field is only used for a VAR-DXF-OUT conversion. It is used to indicate the library name containing the shapes of IBA format contained in the VET format file.
11
Validation area
Restore
Restores the initial values which figured when the dialogue box was opened, before any modifications were made. is used to find standard values defined by default. Validates the parameters defined in this dialogue box. These parameters are saved in a file, in the DXFCONFIG directory. By default these files take on the names DXF.CNF for Import and Export. If the parameterisation has been launched as from an operation, whose name is saved in the MASTERFILEACTION window, it takes the name of the operation .CNF. This validation closes the parameterisation dialogue box and returns to the MASTERFILE-ACTION window.
Standard
OK
It is then possible to launch the conversion of the list or file selected following 3.
521297
11
2.2.2
Figure 4
Abort
Restore
OK
This dialogue box is made up of: a push button which opens the Information dialogue box, in which information on the software name, the version number, and the copyright is displayed.
three input areas used to define the access paths giving access to Garment files, to Basic image files, to alphanumeric tables if they exist.
File Import To import marker files it is necessary to complete Garment, Basic image, Alphanumeric table fields,
521297
12
Inputting an access path Several solutions are put forward for the inputting of access paths : 1 Either double click on one of the areas to have access to the File selector dialogue box. The latter appears automatically with the filter predefined on the different types of files depending on the area which has been activated: .VET for garments files, .IBA for basic images, .ALF for Alphanumeric tables. Refer to the reference document 521237 (Lectra Systmes graphic environment- User's guide) for a detailed explanation of the File selector dialogue box. Having selected in the File selector dialogue box, the access path appears in the input area. 2 Or input the access path directly on the Alphanumeric keyboard.
Copying an access path, from the garment input area : , once the access path has been input in the input area next Clicking on the blue icon to it, copies the data input on the following lines. Checking sizes The button requests a check of the presence of the Size/Conformation/Stature in
the BI gradation nests, or a garment check. If one of these is absent, or if there is a problem in the composition of garment, an error will be detected and displayed in the MASTERFILE monitoring window. The button does not request a check, in which case there will be extrapolation of
the inexistent sizes, without warning. The button indicates that when a size check or garment check has been
programme has detected an error. The button indicates that when a size check or garment check has been
even if an error has been detected. For checks or cases of error on the garment (reading and garment composition), the green light of the icon indicates that the garment will not be found in the composition of the marker.
521297
13
, following
It is possible to read a clear error message, corresponding to the code indicated at the end of the line, in the MONITORING window, by clicking on the line in question. Refer to the document MASTERFILE Customer's manual, 4.2 of the MASTERFILE Customer's manual, which describes the error files dialogue box. A list of error messages according to the code is given in appendix 1.
521297
A.1
Appendix 1
List of error messages according to the code
Example :
Error 88/123.VAR-ASCI-OUT Garment conversion problem Low on memory
OK
Error in DXF file conversions Generic error: 87/1 87/2 87/3 87/4 87/5 87/6 87/7 85/1 85/2 DXF conversion problem Low on memory Invalid DXF file syntax Not an AAMA DXF file Invalid grading Invalid rule file Invalid nest Invalid basic DXF file generation Invalid Basic image generation Invalid Basic image interpretation
Error in garment file conversions 88/122 Garment conversion problem (export) Invalid garment file structure Garment conversion problem Low on memory Garment conversion problem (import) Invalid ASCII file structure
88/123
88/124
521297
A.2
Error in marker file conversions 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Reading problem of alpha. chart Size not found in the chart Size inexistant Problem reading garment filet Garment file incorrect Problem reading B.I. file Garment too recent No B.I in the fabric type The group numbers must begin by 1\n and be consecutive No B.I. in the marker No B.I. has the required conformation No B.I. has the required stature Problem constructing marker file Problem writing marker file Problem reading marker file Problem writing marker export file Problem reading marker import file Library creation impossible File save impossible
521297