xyz points (not curve)
xyz points (not curve)
(OP)
Hi, how do I insert just points into SW. I'm not looking for curve though points. See attatched.
Colin Fitzpatrick (aka Macduff)
Mechanical Designer
Solidworks 2010 SP 5.0
Dell T5500 Windows 7 Pro (64-bit)
Xeon CPU 2.53 GHz 6.00 GB of RAM
nVida Quadro 4000 2 GB
3D Connexion-SpaceExplorer






RE: xyz points (not curve)
Colin Fitzpatrick (aka Macduff)
Mechanical Designer
Solidworks 2010 SP 5.0
Dell T5500 Windows 7 Pro (64-bit)
Xeon CPU 2.53 GHz 6.00 GB of RAM
nVida Quadro 4000 2 GB
3D Connexion-SpaceExplorer
RE: xyz points (not curve)
Jeff Mirisola
My Blog
RE: xyz points (not curve)
Colin Fitzpatrick (aka Macduff)
Mechanical Designer
Solidworks 2010 SP 5.0
Dell T5500 Windows 7 Pro (64-bit)
Xeon CPU 2.53 GHz 6.00 GB of RAM
nVida Quadro 4000 2 GB
3D Connexion-SpaceExplorer
RE: xyz points (not curve)
Jeff Mirisola
My Blog
RE: xyz points (not curve)
RE: xyz points (not curve)
Option Explicit
Dim swApp As Object
Dim Part As Object
Dim boolstatus As Boolean
Dim longstatus As Long, longwarnings As Long
Dim FeatureData As Object
Dim Feature As Object
Dim Component As Object
Dim RowNum As Integer
Dim XCoord As Double
Dim YCoord As Double
Dim ZCoord As Double
Private Sub cmdExportPoints_Click()
Set swApp = CreateObject("SldWorks.Application")
Set Part = swApp.ActiveDoc
'Part.Insert3DSketch
RowNum = ActiveCell.Row
XCoord = (Range("B" & RowNum) - Range("J2")) * 0.0254
YCoord = Range("C" & RowNum) * 0.0254
ZCoord = Range("D" & RowNum) * 0.0254
Part.CreatePoint2 XCoord, YCoord, ZCoord
If chkFixPt = True Then
Part.SketchAddConstraints "sgFIXED"
End If
Part.ClearSelection2 True
'Part.InsertSketch2 True
End Sub
Private Sub cmdMirrorPoint_Click()
Set swApp = CreateObject("SldWorks.Application")
Set Part = swApp.ActiveDoc
'Part.Insert3DSketch
RowNum = ActiveCell.Row
XCoord = ((Range("B" & RowNum) - Range("J2")) * (-1)) * 0.0254
YCoord = Range("C" & RowNum) * 0.0254
ZCoord = Range("D" & RowNum) * 0.0254
Part.CreatePoint2 XCoord, YCoord, ZCoord
If chkFixPt = True Then
Part.SketchAddConstraints "sgFIXED"
End If
Part.ClearSelection2 True
'Part.InsertSketch2 True
End Sub
Private Sub Create3dSketch_Click()
Set swApp = CreateObject("SldWorks.Application")
Set Part = swApp.ActiveDoc
Part.Insert3DSketch
End Sub
Private Sub optFixPt_Click()
End Sub
RE: xyz points (not curve)
http://swtools.cad.de/cgi-bin/topdl/download.pl?fi...
Could you use a Table Driven Pattern?
RE: xyz points (not curve)
Grubs, let me try your code. Never did this before.
Thanks all!
Colin Fitzpatrick (aka Macduff)
Mechanical Designer
Solidworks 2010 SP 5.0
Dell T5500 Windows 7 Pro (64-bit)
Xeon CPU 2.53 GHz 6.00 GB of RAM
nVida Quadro 4000 2 GB
3D Connexion-SpaceExplorer
RE: xyz points (not curve)
You are not going to be interested in all of the code, just the stuff like: Part.CreatePoint2 XCoord, YCoord, ZCoord . You can start a 3d sketch with: Part.Insert3DSketch .
RE: xyz points (not curve)
Colin Fitzpatrick (aka Macduff)
Mechanical Designer
Solidworks 2010 SP 5.0
Dell T5500 Windows 7 Pro (64-bit)
Xeon CPU 2.53 GHz 6.00 GB of RAM
nVida Quadro 4000 2 GB
3D Connexion-SpaceExplorer