Export to fusion

n_brandao
Participant

Export to fusion

n_brandao
Participant
Participant

Hi guys, im having some dificult here.

 

i want run this macro,

 

but i want to input a name do export model in .smt extension and open in fusion.

 

if i dont strings it run, but i would like to put a name in C:\temp folder

 

DIALOGS MESSAGE OFF
DIALOGS ERROR OFF
GRAPHICS LOCK
STRING $nome = INPUT "Nome"
STRING $abrir = "C:\Temp" + $nome + ".smt"

FORM RIBBON TAB "Model"
EDIT MODEL ALL SELECT ALL
TRANSFORM RESET TRANSFORM TYPE WORLD TRANSFORM MODEL ALL SELECTED
EXPORT MODEL ALL FILESAVE
$abrir
PLUGIN CLEANUP
PLUGIN CLEANUP
PLUGIN CLEANUP
PLUGIN CLEANUP
TEXTINFO ACCEPT
TRANSFORM RESET TRANSFORM TYPE WORKPLANE TRANSFORM MODEL ALL SELECTED
FORM RIBBON TAB "Home"
OLE FILEACTION 'open' "$abrir"

 

 

what im missing here?

0 Likes
Reply
174 Views
1 Reply
Reply (1)

icse
Collaborator
Collaborator

maybe you missing a \

 

STRING $abrir = "C:\Temp\" + $nome + ".smt"

 

0 Likes