Delete a block in a drawing

Delete a block in a drawing

Anonymous
Not applicable
341 Views
5 Replies
Message 1 of 6

Delete a block in a drawing

Anonymous
Not applicable
Hello !

First Happy new year
Second Thanks for the answers on other topics

Third my today's problem

If I know the coordinate of the insertion point of a block How can I delete it ?

Regards
0 Likes
342 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
selectionset w/ 0 and 10 and "insert" and the blockref.insertionpoint
0 Likes
Message 3 of 6

fxcastil
Advocate
Advocate
Group codes by number
Group code Description
0 Text string indicating the entity type (fixed)
10 Primary point; this is the start point of a line or text entity, center of a circle, and so on
DXF: X value of the primary point (followed by Y and Z value codes 20 and 30)

20, 30 DXF™: Y and Z values of the primary point

To further exoand on Bryco 's response here are the dxf group codes for a creating a selection set with a block Reference (Insert) tyoe and the insertion point.

Fred Castillo
0 Likes
Message 4 of 6

Anonymous
Not applicable
Hello,
I am sorry but I undestood nothing.
Perhaps my first message wasn't clear enough.
So I repeat my question :

With a vba code, how can I delete a block used in a drawing if i know the coordinates of this block in my drawing ?
0 Likes
Message 5 of 6

Anonymous
Not applicable
You use a selection set (Do a search) to find an "Insert" which is the dxf reference name for a block reference (Which is the item you want, not a block). The search can use more than one criteria, so "10" is the dxf number for the insertionpoint
0 Likes
Message 6 of 6

Anonymous
Not applicable
I am not sure to understand every thing without a sample code.
I will try to find something in the VBA acad help file with informations you gave me.
0 Likes