import the step file(assembly) and display

i want to import the step file(assembly) to opencascade and display all parts of the assembly.
i use the samples(import export) of the occ,but when i import an assembly,it become a part.

WuXuan's picture

can anyone help me?

P G's picture

Dear WuXuan, Can u share the test Step file .. I do not have a STEP file of an assembly.
- PG

WuXuan's picture

sure,can you give me your mailbox,i will send to you

P G's picture
WuXuan's picture

i have post the email to you, have you received?

P G's picture

yes recvd , but the dimensions are small. What units have u used?

WuXuan's picture

yeah,because the that are electronic components,so the dimensions are small

P G's picture

Able to load the STEP file using instructions of Alexander.

WuXuan's picture

can you give me the source code?

Alexander Schneller's picture

try Draw and the DATA EXCHANGE COMMANDS ("Test Harness User's Guide", thug.pdf)

pload ALL
ReadStep
Xdump [int deep {0|1}]
XShow [ … ]

WuXuan's picture

i am sorry , i cant understand.
can you give me an example? i think it is more useful to me

Alexander Schneller's picture

Draw commands:
------------
pload ALL
# pload ALL load all plugins
ReadStep D thefile.stp
# ReadStep read the STEP-File in the document D
XGetOneShape aShape D
# XGetOneShape make one Shape of the whole document
vinit
#init the viewer
vdisplay aShape
# display the shape
vfit
------------
Select the view window and press 5 (to select shells, enter "vhelp" to see help and filter options).
If you move the cursor over a shell (normaly an assembly) it will be highlighted.

If you want to display only one assembly you can use the following Draw commands:
------------
Xdump D
# Xdump display the assembly structure on the Command line window
# use one of the labels for XGetShape
XGetShape aShape2 D 0:1:1:3
vdisplay aShape2
------------

for more commands look at "8.7 XDE general commands" of the thug.pdf

Or try http://cadexchanger.com/ if you only want to view the STEP-File.

WuXuan's picture

thnx,but how can i see the source code? i want to use this function in MFC