Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: How to use addAnchor()
Topic Summary:
Created On: 22-Sep-2005 17:15
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 22-Sep-2005 17:15
User is offline View Users Profile Print this message


Richard Amenta

Posts: 5
Joined: 23-May-2005

Please help ...
Withing VBA I'm trying to anchor a model element to a comment.
According to the COM documentation it appears that you need something like this:

dim me as rhapsody.RPModelElement
dim cmt as rhapsody.RPAnnotation
.... ' set me and cmt
cmt.addAnchor(me) ' this line fails

When I hit the last line, VBA complains that 'addAnchor' is not a property or method of the object. However, it is smart enought to show me the methods and autocomplete the addAnchor method when I type in 'cmt.'.

Anyone out there had any luck at this?
Report this to a Moderator Report this to a Moderator
 24-Sep-2005 01:42
User is offline View Users Profile Print this message


Richard Amenta

Posts: 5
Joined: 23-May-2005

I guess my lack of VBA knowledge bit me in the @$$ on this one.
You must use the VB 'Call' keyword, as in:
Call myannotation.addAnchor(some_modelelement).
The documentation doesn't hint at this anywhere ... maybe I just should have known it.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.