×
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

CurveByTable.Add Method Arguments

CurveByTable.Add Method Arguments

CurveByTable.Add Method Arguments

(OP)
Does anyone have experience using CurveByTable in conjunction with VB?  If so, could you please briefly explain the proper use of the "Add" method for this object?
I have experimented with various choices for the arguments "Closure", "ClosureType", "UnitType", and "dTolerance" without finding a successful combination.  Every time I've run the "Add" method I've received an "Invalid Procedure Call or Argument" error.

A sample line of code would be great, too.

Thanks,
-Jon

RE: CurveByTable.Add Method Arguments

I'm having this same problem. Any help would be appriciated.

Thanks,
Josh

RE: CurveByTable.Add Method Arguments

Here is a sample I got from Kash J. Rangan at Solid Edge Support. I hope it helps.

Option Explicit

Dim objApp As SolidEdgeFramework.Application
Dim objDoc As SolidEdgePart.PartDocument
Dim objCurveByTable As SolidEdgePart.CurveByTable
Dim objRefPln As RefPlane

Private Sub Form_Load()


Set objApp = GetObject(, "SolidEdge.Application")
Set objDoc = objApp.ActiveDocument

'CurveType = only igDirectFit and igLeastSquareFit will work
'Closure = igNormal, igClosed
'ClosureType = igNatural, igPeriodic
'UnitType = Null, Character string

Set objCurveByTable =
objDoc.Constructions.CurvesByTables.Add(filepath:="c:\Vb
Examples\CurveByTable\CurveByTable.xls", _
    CurveType:=igLeastSquareFit, _
    dtolerance:=0.0001, _
    ClosureType:=igPeriodic)

objCurveByTable.Visible = True

End
End Sub

RE: CurveByTable.Add Method Arguments

(OP)
Thanks for digging this up, Josh.  I'm going to give it a try and see if I can get my code working now.

Thanks again,
Jon

RE: CurveByTable.Add Method Arguments

Does anyone have experience using Threads in conjunction with VB?  If so, could you please briefly explain the proper use of the "Add" method for this object?

A sample line of code would be great, too.

Thanks,
Mlody

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