CoCreate User Forum  

Go Back   CoCreate User Forum > Support > Customization

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 11-18-2011, 07:15 AM
pcalonzi pcalonzi is offline
Registered User
 
Join Date: May 2011
Posts: 3
Loop Until Complete

Good Morning everyone,

I am working on a command to custom hatch a hole.
The process is as follows:

Click the Command
Change the Hatch Style to "DOWEL"
Select face and inside area
Continue selecting holes until finished.
Middle Mouse click or hit escape to finish command
Change the Hatch Style back to "MX-STANDARD"

My button works so far but I don't know how to wait until finished to change the style back to MX-Standard. Does anyone have any suggestions?

modify_default_setting ath "Annotation/Hatch/Appearance" :a_range :dowel
am_face_hatch
modify_default_setting ath "Annotation/Hatch/Appearance" :a_range :MX-STANDARD
Reply With Quote
  #2  
Old 12-07-2011, 01:26 PM
gmatelich's Avatar
gmatelich gmatelich is offline
Registered User
 
Join Date: Oct 2002
Location: Bellevue, WA, USA
Posts: 396
Re: Loop Until Complete

It's not the most intuitive solution, but I wonder if you could something like

Click the Command
Change the Hatch Style to "DOWEL"
Select face and inside area
enter loop
click N for next
Select face and inside area
continue clicking N and selecting face and area
Click Q to quit loop
Change the Hatch Style back to "MX-STANDARD"


I also wonder if it's possible to use TRAP_ERROR
Reply With Quote
Reply

Tags
dowel pin, hatch, loop, wait


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:02 AM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.