![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
Topic Title: How to use addAnchor() Topic Summary: Created On: 22-Sep-2005 17:15 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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? |
|
![]() |
|
![]() |
|
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. |
|
![]() |
Telelogic Rhapsody
» Rhapsody Category » Rhapsody
»
How to use addAnchor()
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.