OK. I'm working on adding dimension lines to my little program and I'm having a couple of issues. I'm using VB 2010.
I add a dimension line (setting it's handle to lngHandle), then I add a text object with some simple settings (setting the text, etc.). I then do a MetaDraw.LinkLabel setting it equal to CType(lngHandle, ObjHandle).
It works exactly like it should, the text is above the dimension line and follows it around when it is moved or resized.
I have 2 problems though.
First, on page 118 of the manual, it states "After associating a text object as a LinkLabel, the text object will be automatically deleted if the associated Line, Link or Dimension Line is deleted." That's not happening. I don't know if I'm not setting the LinkLabel correctly or if there is another problem.
The second is partially related to the first. Once I have correctly set the LinkLabel, can I select the text object and figure out which Dimension Line it is linked to. And can I select the Dimension Line and figure out which text object is linked to it? I've been looking at the LinkObject property, but it looks more like it's used when you link 2 objects (which you can then assign a LinkLabel to), not what I'm looking to do. Am I wrong?
Any help would be appreciated.
James