The problem with color is solved (feel stupid)
FRAGMENT2
FRAGMENT2 fragment_index, use_current_attributes_flag
The fragment with the given index is inserted into the 2D Full View with the current transformations. use_current_attributes_flag: defines whether or not the current attributes will be used
0: the fragment appears with the color, line type and fill type defined for it.
1: the current settings of the script are used instead of the color, line type and fill type of the fragment.
The problem with line is also solved! Different line types in different layers and 2D script like this:
if GLOB_SCALE<=50 then
fragment2 1,0
line_type ponteado
fragment2 11,0
endif
An entire afternoon digging this