CAD FORUM - TIPS & TRICKS | UTILITIES | DISCUSSION | BLOCKS | SUPPORT | HELP & ASSISTANCE
Over 1.124.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
The new Beam calculator, Spirograph generator and Regression curves in the Converters section.
New AutoCAD 2027 commands and sys.variables
CAD tip # 1214:
Question
A
Use the following VBA code (assuming a block named "TEST"):
Sub test()
Dim blkdef As AcadBlock
Dim elem As Object
Dim strPrompt As String
On Error Resume Next
Set blkdef = ThisDrawing.Blocks.Item("TEST")
For i = 0 To blkdef.Count
Set elem = blkdef.Item(i)
If StrComp(elem.EntityName, "AcDbAttributeDefinition", 1) = 0 Then
strPrompt = elem.PromptString
End If
Next i
End Sub
ACAD2000
4.4.2001
11317×
this tip shared by ARKANCE experts applies to: AutoCAD 2000 ·
![CAD Forum - ARKANCE Community - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](../common/arkance_186.png)

What is the ARKANCE Community?