SnakeGrid Transformer OFIX Test Script
This test script is based on problem files from the Support And Mantainance of SnakeGrid Transformer.
The problem files all had some sort of "out of range" error where an element origin was outside the
design files displayed range.
It is important that the origins are within the visible area being transformed otherwise because some
elements can only be transformed with this point and the transformations only work in certain areas.
The purpose of OFIX is to process the bad elements (specifially CELLS, SHARED CELLS, TEXT and TEXT NODES
and try to fix them. If they can't be fixed (in the case of phantom elements, i.e. elements that are in the design file
but don't appear for some reason), the element is deleted.
NOTE: Always take a backup of the file you are using OFIX with.
This is the test data
http://www.dhp11.com/site04/product/snakegrid_transformer/testdata/ofixtestdata/, it contains a directory called originals. Copy these files to someplace to work on them.
The design files have been named after the support number from snakegrid.
Support02 (cell range errors)
- Open the file
- Set the LSG grid
- Try SGRD transformer (LSG to OSGB) (should fail with locked elements)
- Unlock the elements
- Try SGRD transformer (LSG to OSGB) (should fail with an out of range cell error)
- Draw a line from problem cell to analyze origin of element. (should be far away)
- Close SGRD
- Open OFIX
- Press the check button. (should be 600+ of errors - cell out of range)
- Press the process button (all errors should be fixed)
- Press the check button again (should be no errors)
- Close OFIX
- Open SGRD
- Try SGRD transformer again, should run through ok.
Support07 (text out of range)
- Open the file
- Try SGRD transformer (grid LSG to OSGB) (Should fail with TEXT out of range) (zooms to a blank area because text is corrupt or doesnt exist)
- Open OFIX
- Press the check. (31 errors)
- Press the process (31 fixed)
- Press the check (no errors - the bad text invisible has been deleted)
- Process with SGRD again (should work ok)
Support30
- Run SGRD - SNAKE to OSGB
- Should fail with TEXT out of range (BL is out of visible design file range)
- Run OFIX
- Press the check (1 error)
- Press the process (1 fixed)
- Press the check (0 errors)
- Run SGRD (Fails, becasuse couldnt find the snake dat file)
- Delete water mark and re add as SNAKE
- Process SNAKE to OSGB
Support35
- Open the file
- Set the grid to LSG
- Process with SGRD, LSG to OSGB
- Should fail with a TEXT out of range (zooms to phantom text)
- Close SGRD
- Open OFIX
- Press the check (313 errors)
- Press the process (313 fixed)
- Press the check (0 errors)
- Run SGRD
- Pressed with SGRD, LSG to OSGB
- Should process ok
Support12
- Process with SGRD (LSG to OSGB)
- Should fail with TEXT out of range error (zooms to phantom text)
- Open OFIX
- Press the check (223 errors)
- Press the Process (223 fixed)
- Press the check (0 errors)
- Process with SGRD (Still fails - new check for solids inside of cells - NOT ALLOWED)
Support11
- Set grid to READING
- Process with SGRD - READING to OSGB
- Should fail with SHARED CELL out of range
- Open OFIX
- Press the check (1)
- Press the fix (1)
- Press the check (1)
- Process with SGRD again
- Should fail with BSpline element not allowed
- Delete/remove BSpline element (should just be 1)
- Process with SGRD again
- Should transform ok