iLogic Rule to Measure Area of Two Faces
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, First off, I'm not an iLogic master. I typically find a script, copy and paste it, and hope for the best. Just want you to know my level of knowledge.
The part I created is a surface of a cylinder and I used 2d & 3d sketches, and "split" to create the shapes on the surface of the cylinder. I then gave the two faces, Entity names and surface finishes as you can see from the screen capture.
What I want do is measure the area of two faces, add the sum, and track the change of the surface area as I modify sketches. The change will be modifying an angle that will change the shape and size of the faces being measured. I was thinking of using POSITION for each angle and MODEL STATES to track the change in area (maybe with granularity of 1°/5). I'm sure there's a better way?
Here is something I grabbed from the community that looked promising for capturing the surface area of faces.
Dim iLogicAuto = iLogicVb.Automation Dim namedEntities = iLogicAuto.GetNamedEntities(ThisDoc.Document) Dim f As Face f = namedEntities.FindEntity(COLD_OPENING), (HOT_OPENING) Dim Eval As SurfaceEvaluator Dim area As Double Eval = f.Evaluator area = Eval.Area MsgBox("Face_Area : " & area)
I'm at the end of my day so I will check in tomorrow. Thank you for any help!