Hi!
I found something strange using pattern, when I combine filled polylines and polylines with patterns.
In this sample, I create one polyline filled, and inside this polyline, one other polyline for the pattern. When the script run and create the first pattern (pattern inside the left rectangle), it created perfect, but when the script create the second pattern (pattern inside the right rectangle), doesn't do it correctly, and erase the fill.
This the script:
!-------------Rectangle left
GOSUB "rectangle"
!-------------Rectangle right
TRANS2 REF_X , 0
GOSUB "rectangle"
RESTORE 1
END
"rectangle":
Fill 28
PUT REF_X / 2 , 0 , 15 ,
0 , 0 , 15 ,
0 , REF_Y , 15 ,
REF_X / 2 , REF_Y , 15
POLY2_ NUM_SP / 3 , 1 + 2 + 4 , GET ( NUM_SP ) !---polylines
DEFINE PATTERN "pattern_1" fill_patt , 1 , 0 , 0.02 , 0.02 , REF_X / 2 , 0.25 , 2
PATTERN "pattern_1"
PUT REF_X / 2 , 0.25 , 15 ,
0.12 , 0.25 , 15 ,
0.12 , REF_Y - 0.12 , 15 ,
REF_X / 2 , REF_Y - 0.12 , 15
POLY2_ NUM_SP / 3 , 1 + 2 + 4 , GET ( NUM_SP ) !---Pattern
RETURN
Thanks!
Xavier Coll • Architect, Project Manager I+D, BIM Manager, BIM Auditor
EiPM • http://www.eipm.es/en/