×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

I need to print the minimum radius of a spline (SolidWorks 2007 API)

I need to print the minimum radius of a spline (SolidWorks 2007 API)

I need to print the minimum radius of a spline (SolidWorks 2007 API)

(OP)
I need to print the minimum radius  of a spline. I ran a macro so as the minimum radius of a spline to be shown but i want to print that value also. Has anybody any idea? Thanks!!
 

RE: I need to print the minimum radius of a spline (SolidWorks 2007 API)

If your macro has code, you might try to post it here.

RE: I need to print the minimum radius of a spline (SolidWorks 2007 API)

I'm surprised that a spline can have a minimum radius? Perhaps you are working with the maximum curvature? I would be interested to see how you capture that.

--
Hardie "Crashj" Johnson
SW 2008 SP4
Nvidia Quadro FX 1000
AMD Athalon 1.8 GHz 2 Gig RAM

 

RE: I need to print the minimum radius of a spline (SolidWorks 2007 API)

(OP)
Sketch a spline and exit the sketch.Then run the code:
Option Explicit
Dim swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Dim swSelMgr As SldWorks.SelectionMgr
Dim swModelDocExt As SldWorks.ModelDocExtension
Dim swSpline As SldWorks.SketchSpline
Dim boolstatus As Boolean

Sub main()
Set swApp = Application.SldWorks
Set swModel = swApp.ActiveDoc
Set swSelMgr = swModel.SelectionManager
boolstatus=swModel.Extension.SelectByID2("Spline1@Sketch1", "EXTSKETCHSEGMENT", 0, 0, 0, False, 0, Nothing, 0)
Set swSpline = swSelMgr.GetSelectedObject6(1, 0)
swSpline.ShowMinimumRadius = True
End Sub

The minimum radius is appeared ant I want to export that and save. Any idea? Thanks for your interesting!

RE: I need to print the minimum radius of a spline (SolidWorks 2007 API)

Seems you can't get curvature value of a spline, but you can get the minimum curvature of a body.

Perhaps using SketchSegment::CreateWireBody to convert the spline to a body will allow access to value via Body2::MinimumRadius.

batHonesty may be the best policy, but insanity is a better defense.bat
http://www.EsoxRepublic.com-SolidWorks API VB programming help

RE: I need to print the minimum radius of a spline (SolidWorks 2007 API)

(OP)
How?That would be nice too...!!!

RE: I need to print the minimum radius of a spline (SolidWorks 2007 API)

I have a similar question. Is it possible to control the minimum radius of a spline? It seems like the routing software must do this when it calculates a spline for a wire or wire bundle with a given minimum bend radius. We don't have routing and make chillers and have to route tubing/hoses that have minimum bend radii. Splines might be more friendly than using many arcs but we need to be sure we don't violate a minimum bend radius.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources