string path0 = replace($project_pathname(0), "/", "\") string pathimage = $path0 + "test.png" form tool; WAIT FORM form raise toolasspreviewform ; WAIT FORM //export toolassemblypreview $pathsave EXPORT TOOLASSEMBLYPREVIEW $pathimage YES FORM CANCEL TOOLASSPREVIEWFORM tool accept