Measure sweep path (Inventor 2021)

Measure sweep path (Inventor 2021)

steveh5
Advisor Advisor
8,117 Views
10 Replies
Message 1 of 11

Measure sweep path (Inventor 2021)

steveh5
Advisor
Advisor

Gang...long time user of Inventor.

Why do I struggle with measuring a sweep length every time I attempt to to do this in 2021?

Used to be kind of straight forward in prior versions (at least way better than it is now).

 

So, how do I get this length of path?

measure sweep path.png

Best,

 

Steve H.

Steve Hilvers
Inventor Certified User / Vault Professional Influencer
0 Likes
Accepted solutions (1)
8,118 Views
10 Replies
Replies (10)
Message 2 of 11

JDMather
Consultant
Consultant

If you Include Geometry into a 3D Sketch does it give you the length.


-----------------------------------------------------------------------------------------
Autodesk Inventor 2019 Certified Professional
Autodesk AutoCAD 2013 Certified Professional
Certified SolidWorks Professional


0 Likes
Message 3 of 11

steveh5
Advisor
Advisor

@JDMather ..

Thanks JD for the quick response, but not sure what you mean.

I attached the file with the path.

 

Best,

 

Steve H.

Steve Hilvers
Inventor Certified User / Vault Professional Influencer
0 Likes
Message 4 of 11

JDMather
Consultant
Consultant

My memory was faulty...

JDMather_0-1637349782352.png

 

JDMather_0-1637349741335.png

Temporarily convert the construction line to object line.

Go to Region Properties and Calculate the Perimeter.

Subtract the 12".

 

Alternatively - 

close the sketch (construction to object line) and create a Patch.

Use the desired edges of the Patch as the Sweep Path.

Measure the Patch and subtract the 12" from the Perimeter...

JDMather_1-1637350118448.png

 

I might model the part a bit differently...

JDMather_1-1637351774359.png

 

 


-----------------------------------------------------------------------------------------
Autodesk Inventor 2019 Certified Professional
Autodesk AutoCAD 2013 Certified Professional
Certified SolidWorks Professional


0 Likes
Message 5 of 11

swalton
Mentor
Mentor

Some years ago a kind person provided the attached iLogic code.  As I recall, the name of the sweep feature or the sketch has to match the one referenced in the code.

 

'Set a reference to the active part document
Dim oDoc As PartDocument
oDoc = ThisApplication.ActiveDocument

Dim oDef As PartComponentDefinition
oDef = oDoc.ComponentDefinition

Dim opath As Path
opath = oDef.Features.SweepFeatures.Item("TheSweep").Path

Dim TotalLength As Double
TotalLength = 0

Dim oCurve As Object
Dim i As Integer

For i = 1 To opath.Count
oCurve = opath.Item(i).Curve

Dim oCurveEval As CurveEvaluator
oCurveEval = oCurve.Evaluator

Dim MinParam As Double
Dim MaxParam As Double
Dim length As Double

Call oCurveEval.GetParamExtents(MinParam, MaxParam)
Call oCurveEval.GetLengthAtParam(MinParam, MaxParam, length)

TotalLength = TotalLength + length
Next i

Dim oparams As Parameters
Dim oparam As Parameter
oparams = oDoc.ComponentDefinition.Parameters
Dim exists As Boolean
exists = False

'Find out if parameter exists
For Each oparam In oparams
If oparam.Name = "Sweeplength" Then exists = True
Next oparam

'Change the value if the parameter exists otherwise add the parameter
If exists Then
oparams.Item("Sweeplength").Value = TotalLength
Else
oparams.UserParameters.AddByValue( "Sweeplength", TotalLength, 11266)
End If
oDoc.Update

 

Here are some more ilogic methods:

https://forums.autodesk.com/t5/inventor-forum/sweep-length-measurement/m-p/9567405#M791937

Steve Walton
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Inventor 2025
Vault Professional 2025
Message 6 of 11

johnsonshiue
Community Manager
Community Manager

Hi Folks,

 

There is no need to use any workaround for this task. Start Measure tool. Right-click on the path -> Select Other -> Curve Loop. You will get the loop length. On 2017 or earlier, there was a dedicated Measure Loop command. On 2018 and later, it is combined in the same Measure command.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 7 of 11

JDMather
Consultant
Consultant

@johnsonshiue wrote:

On 2018 and later, it is combined in the same Measure command.


…it was hidden…

@johnsonshiue 

Perhaps return to (more) easily discoverable. As in, hard to miss it.


-----------------------------------------------------------------------------------------
Autodesk Inventor 2019 Certified Professional
Autodesk AutoCAD 2013 Certified Professional
Certified SolidWorks Professional


Message 8 of 11

steveh5
Advisor
Advisor
Accepted solution

So...this is how you do it in 2018 and beyond. Initiate the Measure Tool and hover over one of the segments to get the "Select Other" dialog to pop up and scroll till you see "Curve Loop".

 

And....a quick video...

https://autode.sk/3kY4eJ0

 

HTH,

 

Steve Hilvers

Steve Hilvers
Inventor Certified User / Vault Professional Influencer
Message 9 of 11

cadman777
Advisor
Advisor

If it isn't a spline and it is subject to change during the design cycle, I place driven dimensions on each segment and then add them up in the Parameters dialog. That way the result can update when the loop changes. That's how I typically established the lengths for the BOM with railing made from bent pipe.

 

Otherwise, wish I had @swalton's iLogic rule in the past when I needed to measure splines!

... Chris
Win 7 Pro 64 bit + IV 2010 Suite
ASUS X79 Deluxe
Intel i7 3820 4.4 O/C
64 Gig ADATA RAM
Nvidia Quadro M5000 8 Gig
3d Connexion Space Navigator
Message 10 of 11

Tom.DiGregorio2DPCZ6
Enthusiast
Enthusiast

I have a sweep comprised of multiple 2D sketches, Why wont inventor tell me the length the whole thing or of any one segment?

0 Likes
Message 11 of 11

johnsonshiue
Community Manager
Community Manager

Hi Tom,

 

You could measure the path (enable loop selection) individually and add them up. Or the quickest way is to find the volume from physical iProperty and the divide it by the sweep profile area. It should be the length of the entire path.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer