Page 1 of 1

help with post.DefineCustomToolParam

Posted: Sun Apr 26, 2015 5:02 pm
by rtavk311@yahoo.com [sh...
I have this line in my post:
post.DefineCustomToolParam("PlasmaTool", "Preset volts", "presetVolts", sc.unit0DECPLACE, 49, 0, 200)


which seems to work correctly in that the param shows up in the tool table.
but when I run the post it is nil no matter what.. i.e. the line

post.Text (" #<arcVoltage> = ", presetVolts, "")

returns #<arcVoltage> = nil

I have the most recent version of sheetcam, I tried other posts that use DefineCustomToolParam and they also return nils, I am using a VM so maybe that is causeing an issue. Any ideas?




__._,_.___
Posted by: rtavk311@yahoo.com
Image

Visit Your Group
Unsubscribe ([email]sheetcam-unsubscribe@yahoogroups.com?subject=Unsubscribe[/email]) &bull; Terms of Use



__,_._,___

help with post.DefineCustomToolParam

Posted: Mon Apr 27, 2015 9:52 am
by Les Newell les.newell@...
Where is this line in your post:
post.Text (" #<arcVoltage> = ", presetVolts, "")

presetVolts will only be available after OnToolChange().

Les



On 26/04/2015 18:02, rtavk311@yahoo.com (rtavk311@yahoo.com) [sheetcam] wrote:
I have this line in my post:
post.DefineCustomToolParam("PlasmaTool", "Preset volts", "presetVolts", sc.unit0DECPLACE, 49, 0, 200)


which seems to work correctly in that the param shows up in the tool table.
but when I run the post it is nil no matter what.. i.e. the line

   post.Text (" #<arcVoltage> = ", presetVolts, "")

returns #<arcVoltage> = nil

I have the most recent version of sheetcam, I tried other posts that use DefineCustomToolParam and they also return nils, I am using a VM so maybe that is causeing an issue. Any ideas?



__._,_.___
Posted by: Les Newell <les.newell@fastmail.co.uk>
Image

Visit Your Group
Unsubscribe ([email]sheetcam-unsubscribe@yahoogroups.com?subject=Unsubscribe[/email]) &bull; Terms of Use



__,_._,___