AnsweredAssumed Answered

STEP file formatting

Question asked by Mark Woodward on Jan 5, 2019
Latest reply on Jan 5, 2019 by Anna Wood

We're trying to convert OpenGL based models to STEP files so Solidworks can import them. We already have the option to save these OpenGL models as IGES and 2D DXF files. The documentation is tough going, we have some results but Solidworks is giving errors.

 

Here is a sample made with the translator tool, a simple square panel and a plane.

 

ISO-10303-21;

HEADER;

FILE_DESCRIPTION (('SYNOPSYS lens drawing'),'2';1);

FILE_NAME (TEST.STEP,'',(),(),SwSTEP 2.0','SYNOPSYS','' );

FILE_SCHEMA (( 'CONFIG_CONTROL_DESIGN' ));

ENDSEC;

DATA;

#1 = CARTESIAN_POINT ( 'NONE',  ( -10, 10, 0 ) ) ;

#2 = CARTESIAN_POINT ( 'NONE',  ( 10, 10, 0 ) ) ;

#3 = CARTESIAN_POINT ( 'NONE',  ( 10, -10, 0 ) ) ;

#4 = CARTESIAN_POINT ( 'NONE',  ( -10, -10, 0 ) ) ;

#5 = VERTEX_POINT ( '', #1 );

#6 = VERTEX_POINT ( '', #2 );

#7 = VERTEX_POINT ( '', #3 );

#8 = VERTEX_POINT ( '', #4 );

#10 = POLYLINE( '', #5, #6, #7, #8, #5 );

 

#16 = PLANE( '', #15 );

#15 = AXIS2_PLACEMENT ( '', #12, #13, #14 ) ;

#12 = CARTESIAN_POINT ( '',  ( 0, 0, 0 ) ) ;

#13 = DIRECTION ( '',  ( 1, 0, 0 ) ) ;

#14 = DIRECTION ( '',  ( 0, 1, 0 ) ) ;

#20 = FACE_BOUND( '', #21, .T. );

#21 = EDGE_LOOP( '', #22 );

#22 = ORIENTED_EDGE( '', #23 );

#23 = EDGE_CURVE( '', #5, #6, #24 );

#24 = LINE( '', #1, #25 );

#25 = VECTOR( '', #14, .77 );

 

#30 = SHAPE_REPRESENTATION('',(#10, #16);

 

ENDSEC;

END-ISO-10303-21;

 

This file will open in eDrawings but only display the square panel. Solidworks won't open it at all and gives the following error -

 

Error: Incomplete file.

STEP-in did not complete successfully.

Context: Record ending on line number 1

          OR one of its fields.

 

Error: Error during parsing the file.

STEP-in did not complete successfully.

 

Error: Error during parsing the file.

STEP-in did not complete successfully.

 

Error: Entity type not supported.

STEP-in did not complete successfully.

 

Error: No solid data in file.

STEP-in did not complete successfully.

 

Obviously something is still missing, any help is greatly appreciated.

Outcomes