help with post.DefineCustomToolParam

Posts redirected from the Yahoo mailing list
Post Reply
rtavk311@yahoo.com [sh...

help with post.DefineCustomToolParam

Post by rtavk311@yahoo.com [sh... » Sun Apr 26, 2015 5:02 pm

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



__,_._,___

Les Newell les.newell@...

help with post.DefineCustomToolParam

Post by Les Newell les.newell@... » Mon Apr 27, 2015 9:52 am

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



__,_._,___

Post Reply