<p>I have an STL file and I would like to know how many grams would this print consume. Is there a software so I can get it or an online link that can say me  that?</p>

Some slicing programs will give this information. Here is the first comment at the end of the print, which gives volume and length of material used, from gcode generated by
Slic3r
:
```
```
; filament used = 388.6mm (0.9cm3)
```
```
According to
ToyBuilder Labs
, ABS is 1.04 g/cm
3
, so 0.9 * 1.04 =
0.936
, or just under one gram.
In the G-code file produced by the slicer, search for "filament" or "M30" - it's right after the M30. You might need to use the verbose G-code option.