Closed eak24 closed 6 years ago
So far we store all the measurements into a "measurements" context variable.
@ethan92429 Would this be a suitable featurescript to use? https://cad.onshape.com/documents/e048d057f445affb6a3af03a
Hi @morganb21! I can't seem to access the document you linked... This is one that I've worked on and now works with onshapepy. It could use improvements, but it works alright for now.
Actually, I think the one I linked is good enough to close this!
@ethan92429 Sorry, i forgot to make it public :smile: It should work now. It has length, angle, distance, diameter, radius, and it is in the format of the default variable feature
@morganb21 this is great! Thanks! We'll definitely use this one.
@ethan92429
It can put this into a variable called #m that is a map
This issue is for further collaboration on the Measure FeatureScript Studio. The goal is to develop a feature that can take complex measurements depending on the entities being selected, much like the way the "measurement tool" on the lower right of the UI dynamically reports relevant measurements. To see the discussion that spawned this, go here.
Next step: merge "Measure Distance" and "Measure Area" into one "Measure" function that dynamically decides whether to measure distance or area based on the selected elements.