how to calculate the length of a 3D sketch using the ilogic rule

how to calculate the length of a 3D sketch using the ilogic rule

Anonymous
Not applicable
714 Views
1 Reply
Message 1 of 2

how to calculate the length of a 3D sketch using the ilogic rule

Anonymous
Not applicable
I have modeled 3D sketch and I want to calculate its length the rule I have does not count please help oDoc=ThisApplication.ActiveEditDocument oCompDef=oDoc.ComponentDefinition Szkic3D=oCompDef.Sketches3D.Item("Szkic 3D1”) For Each Element In Szkic3D.SketchEntities3D If Element.Type<>83937792 Then Dlugosc=Dlugosc+Element.Length End If Next MessageBox.Show(Round(Dlugosc*10,2), "Długosc szkicu 3D")
0 Likes
715 Views
1 Reply
Reply (1)
Message 2 of 2

johnsonshiue
Community Manager
Community Manager

Hi! I am not an API expert. But, I think the following call would be useful to you.

 

MeasureTools.GetLoopLength Method MeasureTools.GetLoopLength( Curves As Object ) As Double

 

Many thanks!

 



Johnson Shiue ([email protected])
Software Test Engineer
0 Likes