Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Feature Script: How to get the coordinates of a selected point for X and Y

So I just started working on featured script and was trying to get the X coordinate for a point that you select. However I have no idea how to do that can someone help?
Best Answer
-
jelte_steur814 Member Posts: 318 PRO
did you follow the course in the learning center?
fromt the standard library Documentation:
evVertexPoint (context is Context, arg is map) returns Vector
Vector type
A
Vector
is a non-empty array. It should contain numbers or lengths.Operators
+
,-
,*
, and/
are overloaded for vectors, and other operations such as dot product are available. If a vector does not contain numbers or lengths, operations that assume number-like properties may fail.vector (x, y, z) returns Vector
Construct a 3-dimensional vector.
reading through the documentation you should figure out that you need the first entry from the array returned by evVertexPoint.
1
Answers
did you follow the course in the learning center?
https://learn.onshape.com/learn/course/featurescript-fundamentals
fromt the standard library Documentation:
evVertexPoint (context is Context, arg is map) returns Vector
Vector type
A
Vector
is a non-empty array. It should contain numbers or lengths.Operators
+
,-
,*
, and/
are overloaded for vectors, and other operations such as dot product are available. If a vector does not contain numbers or lengths, operations that assume number-like properties may fail.vector (x, y, z) returns Vector
Construct a 3-dimensional vector.
reading through the documentation you should figure out that you need the first entry from the array returned by evVertexPoint.