Message 1 of 3
Add atributte

Not applicable
06-20-2006
07:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello people:
The next code add attribute in a existing block, but anyone reason is not adhered :
Sub AddAttribute()
'the block identified
Set objBlock = ThisDrawing.HandleToObject(handleBlock)
'add new atributte
Set objAtributo = objBlock.AddAttribute(1#, acAttributeModeNormal, "New Prompt", insertPoint, "txtFe2", name(1))
End Sub
And change objBlock.AddAttribute for ThisDrawing.ModelSpace.AddAttribute either can't create this attribute. Thanx
The next code add attribute in a existing block, but anyone reason is not adhered :
Sub AddAttribute()
'the block identified
Set objBlock = ThisDrawing.HandleToObject(handleBlock)
'add new atributte
Set objAtributo = objBlock.AddAttribute(1#, acAttributeModeNormal, "New Prompt", insertPoint, "txtFe2", name(1))
End Sub
And change objBlock.AddAttribute for ThisDrawing.ModelSpace.AddAttribute either can't create this attribute. Thanx