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.
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
Wed, 09/05/2012 - 13:55
can anyone help me?
Fri, 09/07/2012 - 11:46
Dear WuXuan, Can u share the test Step file .. I do not have a STEP file of an assembly.
- PG
Fri, 09/07/2012 - 16:20
sure,can you give me your mailbox,i will send to you
Fri, 09/07/2012 - 16:36
pgocct@gmail.com
Wed, 09/12/2012 - 12:43
i have post the email to you, have you received?
Wed, 09/12/2012 - 13:05
yes recvd , but the dimensions are small. What units have u used?
Wed, 09/12/2012 - 13:26
yeah,because the that are electronic components,so the dimensions are small
Wed, 09/12/2012 - 13:20
Able to load the STEP file using instructions of Alexander.
Wed, 09/12/2012 - 13:27
can you give me the source code?
Wed, 09/05/2012 - 15:35
try Draw and the DATA EXCHANGE COMMANDS ("Test Harness User's Guide", thug.pdf)
pload ALL
ReadStep
Xdump [int deep {0|1}]
XShow [ … ]
Thu, 09/06/2012 - 16:58
i am sorry , i cant understand.
can you give me an example? i think it is more useful to me
Thu, 09/06/2012 - 21:02
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.
Wed, 09/12/2012 - 17:47
thnx,but how can i see the source code? i want to use this function in MFC