Message 1 of 3
InsertBlock Method
Not applicable
04-19-2004
03:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Group,
VB6. I am using AutoCAD's Getpoint method to obtain a user selected point
and then the InsertBlock method to insert a block into my drawing. If the
block has attributes, I would like to display the Edit Attributes dialog
box.
Here is the problem that I am facing. For one thing, the only way I see to
display AutoCAD's Edit Attributes dialog is via a SendCommand "DDATTE" to
the ActiveDocument. This in itself is not a problem but DDATTE command
expects the user to pick an attributed block from the screen (similar to
lisp entsel). DDATTE accepts "last" as a valid choice and this works
reliably most of the time. Note however that it can be unreliable since it
is possible that the resulting block geometry may be outside the drawing
display. In this case, the "last" object is not the object that I am
interested in.
I half expect a blockref object to have a method like say, Blockref.Attedit
with an argument which would serve to signify whether a dialog box or
command line interface is desired. Since I don't see this, my alternative
is to create my own "Edit Attributes" dialog. Am I missing something?
Regards,
Ken Hutson
San Antonio, TX