
Re: Equation to measure length of a 3D Sketch
Martin MacDonald Aug 14, 2015 7:12 AM (in response to Rafael Cervantes) 
Re: Equation to measure length of a 3D Sketch
Jamil Snead Aug 14, 2015 11:44 PM (in response to Rafael Cervantes)If the chain consists of lines and arcs only then you could create a driven dimension for the length of each entity individually. Then in an equation you could add them all up.

Re: Equation to measure length of a 3D Sketch
Kevin Chandler Aug 15, 2015 8:38 AM (in response to Rafael Cervantes)
Hello,If the sketch entity is one contiguous being, like a spline, you can add a path length dim in the sketch and then create a global var to reference it in Manage Equations.
If the sketch contains multiple entities, then dim each and create a global that adds each of these dims.
Kind of a pain, plus it's not automatic for added/deleted sketch entities. Also, be sure to dim arcs for length.
I've attached a part that has both of these (no arcs) and then multiplies the lengths by 2.
Not the best solution, but...
Cheers,
Kevin

Part1.SLDPRT.zip 31.4 KB


Re: Equation to measure length of a 3D Sketch
Dennis Bacon Aug 15, 2015 10:16 AM (in response to Rafael Cervantes)Rafael,, I'm not sure what (feature) you want to use your 3D sketch for but if you convert it to a "fit spline" (with high tolerance) you can then use that in an equation and with "measure" (not the tool) get the total length. In the picture below I began a global variable "B" only to show the Measure from the drop down. This actually places a dimension (total length) on the fit spline. It is not exactly the same as adding up the length of the 3d sketches (lines and arcs) but is really close. Within .002" in my case.

Re: Equation to measure length of a 3D Sketch
Kevin Chandler Aug 15, 2015 2:01 PM (in response to Dennis Bacon)Hello,
Good call on "Fit spline".
I forgot about that for combining multiple entities for one length dim.
Cheers,
Kevin


Re: Equation to measure length of a 3D Sketch
Rafael Cervantes Aug 17, 2015 4:04 AM (in response to Rafael Cervantes)Hello and thanks for these answers.
Up to now I use the method Kevin explained but the sketch is kind of complex and has many entities which makes that a little bit painful and easy to make mistakes. Anyhow that works for my purpose.
Thanks Dennis, I didn’t know the "fit spline" feature, I tried and that could be another good solution. However, after I used that some other issues raised which I’m still trying to fix. Thanks anyway.
Following this discussion my real purpose is very simple but I found very difficult to implement in solid. I'm trying to place a cable which length is predefined. This cable must be placed from point ‘A’ passing through a cable tie and finishes in the air. (Additionally, I need to measure how much of the cable is hanging after the "internal routing")
I tried the electric routing feature many times and sorry, but it is really a pain, I think this is something solid must still work on. Not easy to use and not easy to make modifications. That's why I found much easier to draw a raw 3D sketch. I can control the last portion of the cable, which is in the air, with a simple equation, making the overall length static. This equation would be even easier if I had a length() function of my sketch, which is how this discussion started.
Thanks
Rafa

Re: Equation to measure length of a 3D Sketch
Kevin Chandler Aug 22, 2015 9:13 AM (in response to Rafael Cervantes)Hello,
I haven't tested this, but I had another thought on this: use Composite Curve to combine multiple entities for one path length dimension.
Unlike Fit Spline, I don't believe Composite Curve will create an approximation. I think it just connects things up into one curve.
Cheers,
Kevin

Re: Equation to measure length of a 3D Sketch
Rafael Cervantes Sep 8, 2015 3:30 AM (in response to Kevin Chandler)Hello Kevin, thanks for the new approach
I tried the composite curve but I had the same problems as before. Maybe I did wrong but I couldn't measure it whole with a simple ecuation nor using the masure option, I had to measure each small part.
Thank you @
