×
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

GetAngleBetween Object doesn't support this property or method

GetAngleBetween Object doesn't support this property or method

GetAngleBetween Object doesn't support this property or method

(OP)

Hello,

We are creating a macro to get the angle between 2 lines.
We are using the GetAngleBetween Method, but we get the following error:
Object doesn't support this property or method (Error 438)

We are using the example from the CATIA help below.

Please let us know if you have run into this and know of a fix.

Thanks,

Joseph






This example retrieves the angle between the reference1 and reference2.
Dim reference1 As Reference
Set reference1 = part1.CreateReferenceFromObject(object1) Dim reference2 As Reference
Set reference2 = part1.CreateReferenceFromObject(object1) Dim TheSPAWorkbench As Workbench
Set TheSPAWorkbench = CATIA.ActiveDocument.GetWorkbench ( "SPAWorkbench" )
Dim TheMeasurable As Measurable
Set TheMeasurable = TheSPAWorkbench.Measurable(reference1) Dim MinimumDistance As double
MinimumDistance = TheMeasurable.GetAngleBetween(reference2)

RE: GetAngleBetween Object doesn't support this property or method

(OP)

Hello,

Figured out the problem, the documentation is not correct the following line:

Set TheMeasurable = TheSPAWorkbench.Measurable(reference1)

Should read "GetMeasurable" not "Measurable"

Thank you,

Joseph

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