Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
 

Read a step file

Read a step file
Ear MongHeng 2012/11/21 20:06
Hi, all
i have a question to ask you?
when i open step file(screw.step) with notepad, i see like this

ISO-10303-21;
HEADER;
FILE_DESCRIPTION(('a Product shape'),'1');
FILE_NAME('Euclid Shape Model','1998-09-10T11:25:01',('Author Name'),(
'MATRA-DATAVISION'),'OL-2.0B','EUCLID','Authorisation status');
FILE_SCHEMA(('AUTOMOTIVE_DESIGN_CC1 { 1 2 10303 214 -1 1 3 2}'));
ENDSEC;
DATA;
#1 = PRODUCT_RELATED_PRODUCT_CATEGORY('Undefined Category','Undefined De
scription',(#2));
#2 = PRODUCT('the product name','the product name','void',(#3));
#3 = MECHANICAL_CONTEXT('Mechanical',#4,'Assembly');
#4 = APPLICATION_CONTEXT('EUCLID');
#5 = APPLICATION_PROTOCOL_DEFINITION('CommitteeDraft','automotive_design
',1997,#4);
#6 = SHAPE_DEFINITION_REPRESENTATION(#7,#11);
#7 = PRODUCT_DEFINITION_SHAPE('void','void',#8);
#8 = PRODUCT_DEFINITION('void','void',#9,#10);
#9 = PRODUCT_DEFINITION_FORMATION('ID','void',#2);
#10 = PRODUCT_DEFINITION_CONTEXT('as proposed',#4,'First_Design');
#11 = ADVANCED_BREP_SHAPE_REPRESENTATION('',(#12),#1236);
#12 = MANIFOLD_SOLID_BREP('',#13);
#13 = CLOSED_SHELL('',(#14,#257,#558,#709,#803,#874,#944,#1052,#1151,
#1232));
#14 = ADVANCED_FACE('',(#15),#49,.F.);
#15 = FACE_BOUND('',#16,.F.);
#16 = EDGE_LOOP('',(#17,#136,#186,#214));
#17 = ORIENTED_EDGE('',*,*,#18,.T.);
.............................
.............................
.............................

can any one explain me? and how can i read it in the console?

give me sample example.

thank in advance. from Cambodia student.
James D. 2012/11/21 23:56
OpenCASCADe/doc/STEP.pdf ;)

What's the problem? Would you like to read a step file or get informations?
Ear MongHeng 2012/11/22 07:06
Hi James D thank for reply,
i already read it but i don't how to display some data in the console and how to extract informations.

i have a step file and want to read it. then i want to display informations like:

#1 = PRODUCT_RELATED_PRODUCT_CATEGORY('Undefined Category','Undefined De
scription',(#2));
#2 = PRODUCT('the product name','the product name','void',(#3));
#3 = MECHANICAL_CONTEXT('Mechanical',#4,'Assembly');

show it in the console. After that i want to extract of this infomations.

hope you can help me.
thank in advance. from cambodia student.
James D. 2012/11/22 13:41
I think you must use the XDE-Modul
Ear MongHeng 2012/11/22 16:00
can you give me a simple code.
James D. 2012/11/23 17:36
here is it: http://www.pcpointer.de/forum/thread,67,1,open_cascade_igescontrol_reader_igescontrol_writer.html#p203
 
 
Latest news
  • OCCT Applications
  • Open CASCADE Technology 6.8.0 is available for download!
  • New features to enhance the development process

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map