Given a bunch of 3d triangles defined either as raw vertices, or indicies to a master list of vertices, has anyone here managed to create a STEP 3d model file from this information using Delphi (or pascal)?

I can create VRML 2 (97) version 3d text files using some code I wrote, but I would like to create STEP 3d text ones now too, but STEP files are waaaaayyyyy complicated and I can't make heads nor tails of it

BTW, if it helps I want to create STEP AP214 format files (includes colour info) and not STEP AP203 (single colour only).

thanks in advance,
Cheers,
Paul.