Hi,
I´m new to AutoCAD VBA and I am having trouble getting the name of an element's group.
I tried the code below (partial), but it didn't work.
ElseIf MyObject.ObjectName = "AcDbHatch" Then
Dim objGroup As AcadGroup
Dim strGroupList As String
Set objGroup = MyObject.groups.Item
strGroupList = objGroup.Name
MsgBox strGroupList, vbOKOnly, "List of Groups"
Endif
Thanks in Advance,
Bernardo from Brazil