Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
in reply to: Anonymous

Could you not add the running total in each try/catch block?  

 

You wouldn't need the really long statement at the end...

 

 

	Try
		SAW_labour_set = (iProperties.Value("Custom", "SAW_SET")/60)*SAW_labour_rate
		SAW_labour_run = (iProperties.Value("Custom", "SAW_RUN")/60)*SAW_labour_rate
		' SAW_labour = SAW_labour_set + SAW_labour_run
		labour_total += SAW_labout_set + SAW_labour_run  
	Catch
	End Try
	
	Try
		CNCF_labour_set = (iProperties.Value("Custom", "CNCF_SET")/60)*CNCF_labour_rate
		CNCF_labour_run = (iProperties.Value("Custom", "CNCF_RUN")/60)*CNCF_labour_rate
		' CNCF_labour = CNCF_labour_set + CNCF_labour_run
		labour_total += CNCF_labour_set + CNCF_labour_run
	Catch
	End Try

Also, found this link..

 

http://forums.autodesk.com/t5/inventor-customization/ilogic-create-custom-ipropertie/m-p/3654258/hig...

  

See post #5, interesting approach to keeping track of multiple custom iProperties.

 

Yet another approach, setup a custom class for your labor, erh... labour costs with a module in the class to add all of values the in the custom class.

 

http://blogs.rand.com/manufacturing/2011/12/if-this-then-ilogic.html

 

Good luck and let us know how your final project turns out.