hughspeers Posted February 21, 2020 Share Posted February 21, 2020 Hi there, this is probably way simple and a dumb question but.... I'm trying to make a tool that will use a string from a spare parameter and use it to reference geometry on a drive. The point() function works if I type in the value - check . I can make a new attribute and reference the spare parameter- check. But when I use the string attribute or directly reference using ch('myparameter') from within the point() function I draw a blank. I suspect its changing the string to float or something in the point() function. Any help much appreciated Thanks John //mycode s@mystring = chs(“geo”); v@Cd = point("mystring",“Cd”,@ptnum); v@P = point(“mystring”,“P”,@ptnum); Quote Link to comment Share on other sites More sharing options...
ThomasPara Posted February 21, 2020 Share Posted February 21, 2020 Your attribute is already a string, so dont use the quotation marks. point(s@mystring,"Cd",@ptnum); 1 Quote Link to comment Share on other sites More sharing options...
hughspeers Posted February 21, 2020 Author Share Posted February 21, 2020 That works a treat Thomas Thankyou very much Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.