Avoid line breaks when writing STEP-files

Hi everyone,

I wonder how to avoid line breaks when writing STEP ASCII file using STEPControl_Writer.

For example #232 and #240 are written with line breaks and I would like to have them in a single line:

#231 = DIRECTION('',(0.,0.,1.));
#232 = ADVANCED_FACE(
  'Long_file_name_Long_file_name_Long_file_name',(#233),#567,
  .F.);
#233 = FACE_BOUND('',#234,.F.);
#234 = EDGE_LOOP('',(#235,#236,#246,#262,#323,#435,#466));
#235 = ORIENTED_EDGE('',*,*,#21,.T.);
#236 = ORIENTED_EDGE('',*,*,#237,.T.);
#237 = EDGE_CURVE('',#24,#238,#240,.T.);
#238 = VERTEX_POINT('',#239);
#239 = CARTESIAN_POINT('',(0.,0.,8.));
#240 = B_SPLINE_CURVE_WITH_KNOTS('',3,(#241,#242,#243,#244,#245),
  .UNSPECIFIED.,.F.,.F.,(4,1,4),(0.,0.522495070157,1.),.UNSPECIFIED.);
#241 = CARTESIAN_POINT('',(0.,-0.,-1.915));

Thank you!

Kirill Gavrilov's picture

I guess that line limit is set by macros StepLong within StepData_StepWriter.cxx, hence it is not configurable at this moment:

#define StepLong 72
// StepLong : longueur maxi d une ligne de fichier Step
Matthias K.'s picture

Thank you, Kirill!