sheetcam.com Forum Index sheetcam.com
SheetCam discussion board
 
 Forum SubscriptionsForum Subscriptions    FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

help with post.DefineCustomToolParam

 
Post new topic   Reply to topic    sheetcam.com Forum Index -> Yahoo posts (yahoo @forum.sheetcam.com)
View previous topic :: View next topic  
Author Message
rtavk311@yahoo.com [sh...
Guest





PostPosted: Sun Apr 26, 2015 5:02 pm    Post subject: help with post.DefineCustomToolParam Reply with quote

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
[img]http://geo.yahoo.com/serv?s=97476590/grpId=12675264/grpspId=1705007389/msgId=16734/stime=1430067723[/img]

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



__,_._,___
Back to top
Les Newell les.newell@...
Guest





PostPosted: Mon Apr 27, 2015 9:52 am    Post subject: help with post.DefineCustomToolParam Reply with quote

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:

Quote:
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>
[img]http://geo.yahoo.com/serv?s=97476590/grpId=12675264/grpspId=1705007389/msgId=16736/stime=1430128322[/img]

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



__,_._,___
Back to top
Display posts from previous:   
Post new topic   Reply to topic    sheetcam.com Forum Index -> Yahoo posts (yahoo @forum.sheetcam.com) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group