How to use ilogic to measure length of edge ?

How to use ilogic to measure length of edge ?

Anonymous
Not applicable
528 Views
2 Replies
Message 1 of 3

How to use ilogic to measure length of edge ?

Anonymous
Not applicable

Capture.PNG

The problem is: I have a curved object, to know the length of this object, I proceed to use ilogic to measure the sides and get the appropriate length. when i perform edge measurement with measure tool in ilogic, i get this problem. can you help me? use ilogic

This object is a block imported from the *sat file, it will not have the feature...

0 Likes
Accepted solutions (1)
529 Views
2 Replies
Replies (2)
Message 2 of 3

JhoelForshav
Mentor
Mentor
Accepted solution

Hi @Anonymous 

I usually use CurveEvaluator to get the length of an edge. Are you looking for something like this? 🙂

'Get length of edge
Dim oEdge As Edge = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kPartEdgeFilter, "Pick edge.")
Dim oEval As CurveEvaluator = oEdge.Evaluator
Dim oMin, oMax, oLength As Double
oEval.GetParamExtents(oMin, oMax)
oEval.GetLengthAtParam(oMin, oMax, oLength)
'Display length in documents length units
Dim UoM As UnitsOfMeasure = ThisDoc.Document.UnitsOfMeasure
MsgBox(UoM.GetStringFromValue(oLength, UoM.LengthUnits))
Message 3 of 3

Anonymous
Not applicable

Thanks you so much