Jump to content

wrangle - string reference in vex from spare parameter


hughspeers

Recommended Posts

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);
 

 

mystring_mylabel.JPG

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...