×
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

Function or Interface marked as restricted

Function or Interface marked as restricted

Function or Interface marked as restricted

(OP)
Hi All,

Using a VBA code, I am trying to create a "Text Stamp" on an annotated view and get an error message at "Add2DText" as seen below.



Do you know what it is?
How do I fix it?

I check the function "Add2DText" in Catia and it seems Add2DText is a valid property of Marker2D.

Thank you for your help in advance

Quin

RE: Function or Interface marked as restricted

Any time you send (or receive) an array from a CATIA API call, this error will be produced. In the case of VBA, you will need to declare the object calling the method (.Add2DRectangle in this case) as a variant (no explicit type declaration).

For your example:

Dim Marker2Ds as Marker2Ds should be changed to: Dim Marker2Ds

--Doug

RE: Function or Interface marked as restricted

(OP)
Thanks Doug. I changed to Dim Marker2Ds and the error message does not come up.

Quin

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