New duplicate objects found in Object browser - typ: AcadMtext and IAcadMtext2

New duplicate objects found in Object browser - typ: AcadMtext and IAcadMtext2

Anonymous
Not applicable
198 Views
0 Replies
Message 1 of 1

New duplicate objects found in Object browser - typ: AcadMtext and IAcadMtext2

Anonymous
Not applicable
Prompted by Robert Bell (thanks): I never thought to scroll beyound AcadMtext in the objectbrower to the bottom where you find IAcadMtext2. There are some other IAcad.... objects, like IAcadBlock2 which allows you to add a table object. So it appears that VBA uses the intellisense from the first object it finds and not the "I" version. That's a new twist. - Ted "R. Robert Bell" wrote in message news:41642401_1@newsprd01... > Use the object browser on that interface class. Unhappily, AFAIK the > background color is not exposed via ActiveX. > > -- > R. Robert Bell > > > "xxxTed Schaefer" wrote in > message news:41641e01$1_3@newsprd01... > Robert, > > Sure enough that works. I can't get intellisense to work for that property > and > it doesn't show up in the object explorer. Does it for you? Maybe I have > an older version of AutoCAD conflicting with object description. > > However, when I type in "backgroundfill" in lower case, it knows the proper > capitalization. > > How did you find this keyword? How would you change the color? > > I guessed that mytext.setBackGroundFillColor = ?? would work, since this is > typical of the ARX format. But I am left scratching my head. > > - Ted > > "R. Robert Bell" wrote in message > news:41617153_2@newsprd01... > > Ted, > > > > The MText object implements that class. No tricky work is required. To see > > what that class exposes you need to browse that class object, but that's > > about it. > > > > Sub Test() > > Dim pt0(0 To 2) As Double > > Dim myText As AcadMText > > Set myText = ThisDrawing.ModelSpace.AddMText(pt0, 0, "123") > > myText.BackgroundFill = True > > End Sub
0 Likes
199 Views
0 Replies
Replies (0)