help with post.DefineCustomToolParam

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 (" # = ", presetVolts, “”)

returns # = 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

Visit Your Group

Unsubscribe (<sheetcam-unsubscribe@yahoogroups.com>?subject=Unsubscribe) • Terms of Use



,.,_

Where is this line in your post:
post.Text (" # = ", 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 (" # = ", presetVolts, “”)

returns # = 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>

Visit Your Group

Unsubscribe (<sheetcam-unsubscribe@yahoogroups.com>?subject=Unsubscribe) • Terms of Use



,.,_