yes, revisiting ug2iv might be the right thing. it might be as simple as calling the traditional ug parser (not the special-purpose version), reading everything into a ug data structure in memory, then writing an inventor output method that produces a compact ascii output of the geometry.