Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Delete Cells in v8 VBA

325 views
Skip to first unread message

Russ

unread,
Mar 31, 2003, 10:56:13 AM3/31/03
to
How do you scan a design file for a named cell and the delete/remove that
cell from the file?

Jon Summers

unread,
Mar 31, 2003, 2:20:58 PM3/31/03
to
Russ ...

> How do you scan a design file for a named cell and the delete/remove that
> cell from the file?

1 Use an ElementEnumerator to set scan criteria.

2 While looping through the elements returned by the ElementEnumerator,
check for cell elements. You can check for particular characteristics, such
as cell name, at this stage.

3 Use ActiveModelReference.RemoveElement on the cell element to delete it

Search on ElementEnumerator in the VBA help docs. There's an example for
Application Element Example that does nearly what you want.

If you have further questions about using VBA with MicroStation V8, this
newsgroup may also be useful:
Server: \\news.viecon.com
bentley.microstation.v8.vba

0 new messages