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)
RE: I need to print the minimum radius of a spline (SolidWorks 2007 API)
--
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)
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)
Perhaps using SketchSegment::CreateWireBody to convert the spline to a body will allow access to value via Body2::MinimumRadius.
http://www.EsoxRepublic.com-SolidWorks API VB programming help
RE: I need to print the minimum radius of a spline (SolidWorks 2007 API)
RE: I need to print the minimum radius of a spline (SolidWorks 2007 API)