As i said:
[
INPUT FREE
//Give a name to your file
INPUT TEXT 'Insert file name' $name
LET $filename = %name
//Path of your file
LET $path = 'C:\Users\pcname\Desktop\'
//Select all solids on screen
QUICK QUICKSELECTSOLIDONLY
//Export selection
LET expCommand = concatenate('file export '; $path; $filename; '.x_t')
EXECUTE COMMAND $expCommand
//Clear the selection
SELECT CLEARLIST
]
There is many way to use this commands. You can add the "filename" by many ways, and there are other ways to select path of your files.
To try the other formats you should edit the line of export defenition:" LET expCommand = concatenate('file export '; $path; $filename; '.x_t') "
Like:
[
INPUT FREE
//Give a name to your file
INPUT TEXT 'Insert file name' $name
LET $filename = %name
//Path of your file
LET $path = 'C:\Users\pcname\Desktop\'
//Select all solids on screen
QUICK QUICKSELECTSOLIDONLY
//Export selection
LET expCommand = concatenate('file export '; $path; $filename; '.x_t')
EXECUTE COMMAND $expCommand
//Clear the selection
SELECT CLEARLIST
//End of parasolid------------------------------------------------------------------------------------------------
//Select all solids on screen
QUICK QUICKSELECTSOLIDONLY
//Export selection
LET expCommand = concatenate('file export '; $path; $filename; '.pdf')
EXECUTE COMMAND $expCommand
//Clear the selection
SELECT CLEARLIST
//End of pdf------------------------------------------------------------------------------------------------
//Select all solids on screen
QUICK QUICKSELECTSOLIDONLY
//Export selection
LET expCommand = concatenate('file export '; $path; $filename; '.dgk')
EXECUTE COMMAND $expCommand
//Clear the selection
SELECT CLEARLIST
//End of dgk------------------------------------------------------------------------------------------------
]
I wish that this can help you