I’m looking for some help if possible
i have just started to use illogic, what i want to do is measure the length of a loop in a sketch and then use this measurement as a parameter.
I have found this rule that will measure the loop length and dispaly it in a message box
Dim se As SketchEntity = ThisDoc.Document.ComponentDefinition.Sketches(1).SketchLines(1)
MsgBox(ThisApplication.MeasureTools.GetLoopLength(se)*10 & " mm")
but i do not know how to capture the measurement as a parameter
Thanks in advance
Steve
Solved! Go to Solution.
Solved by eljoseppo. Go to Solution.
there is a way around to do this:
Parameter("Length")= ThisDoc.Document.ComponentDefinition.Sketches.Item(1).Profiles.Item(1).RegionProperties.Perimeter * 10
But to make a region you have to extrude your first sketch. Then you will have acces to this parameter (perimeter 😉 )