Message 1 of 4
Rule to measure an edge and asign to a parameter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So I set up a rule to select a face of an object and export the area of the face to a parameter. I would like to do something similar except I want to measure an edge of a part, and export that selected length as a parameter. I am unable to figure out what code I need to export the measured distance of an edge select.
I figured this was the code I needed to select the edge but I don't know how to get that to a parameter:
ThisApplication.CommandManager.Pick(SelectionfilterEnum.kPartEdgeFilter, "Length_1")
I am extremely novice when it come to writing ilogic rules and code. I can take something someone else has wrote and manipulate it to do what I want closely but I fail often writing from scratch. Any pointers or well written guides you can direct me to with common code templates etc.?
Thank you.