Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello. I'm not sure of the correct syntax I need to get this to work. I'm trying to write a macro to load an exported ViemMill model as block.
FORM BLOCK
EDIT BLOCKTYPE TRIANGLES
// Open Import Browser
STRING $VarModel = ''
$VarModel = FILESELECT "Please select a exported ViewMill state file"
// Load exported ViewMill state model as new Block
GET BLOCK FILEOPEN $VarModel
EDIT BLOCK COORDINATE WORLD
DRAW BLOCK
BLOCK ACCEPT
I'm getting the following error: "Unable to open block definition file '$VarModel' from line 10.
What am I doing wrong?
Thank you,
Jason
Solved! Go to Solution.