MEIYARASU19 0 Report post Posted February 28 I would like to make a script loop script for Yes or no to repeat the action. Please help me out Quote Share this post Link to post Share on other sites
tinh 739 Report post Posted February 28 Could you describe namely? Quote Share this post Link to post Share on other sites
MEIYARASU19 0 Report post Posted March 1 if i hit the yes button the process could be done and it should ask again for yes or no.. Quote Share this post Link to post Share on other sites
tinh 739 Report post Posted March 1 What is it used for? Quote Share this post Link to post Share on other sites
MEIYARASU19 0 Report post Posted March 3 its for previewing an empty entity and to delete it Quote Share this post Link to post Share on other sites
tinh 739 Report post Posted March 3 Why dont shift F2 to preview emptied and delete? Quote Share this post Link to post Share on other sites
MEIYARASU19 0 Report post Posted March 6 ya you are right, but i am planning to create a script for delete them all in on shot with empty sub assemblies Quote Share this post Link to post Share on other sites
tinh 739 Report post Posted March 7 Try while {[eval *EntityPreviewEmpty assems 1; hm_marklength assems 1]} {*deletemark assems 1} Quote Share this post Link to post Share on other sites
MEIYARASU19 0 Report post Posted April 17 On 3/7/2019 at 7:21 AM, tinh said: Try while {[eval *EntityPreviewEmpty assems 1; hm_marklength assems 1]} {*deletemark assems 1} hi friend, i have done my script with my knowledge to delete the empty assemblies with sub assems proc empty_assembly {} { while 1 { *EntityPreviewEmpty assemblies 1 set emptyassems [hm_getmark assemblies 1] if {[llength $emptyassems] ==0} {tk_messageBox message "empty assems are deleted" return } *deletemark assemblies 1 } } empty_assembly thanks for your guidance, MEIYARASU19 Quote Share this post Link to post Share on other sites