Hi,
I'm experiencing difficulties with trying to regenerate graphics by a document plugin in Topobase 2008 Client. The API help tells that both the MapLogic and the MapInterface classes contain methods for doing this. Here's what I tried out in the document plugin (VB.NET, obviously):
------------------------------------------------------------
Dim geomTablesAndClauses() As String = {"MYPOINT", "FID IN (1, 2, 3)"}
Me.Document.Map.GenerateGraphics(Me.Application, geomTablesAndClauses)
------------------------------------------------------------
As a result, the graphics get regenerated, but unfortunately the restrictions are ignored (i.e. everything is drawed). Going one step further, I want to regenerate some specific graphical elements in a new AutoCAD document. Here's what I tried:
------------------------------------------------------------
Dim myMapInterface As Topobase.Map.MapInterface = Me.Application.MapInterface
Dim geomTablesAndClauses() As String = {"MYPOINT", "FID IN (1, 2, 3)"}
Dim drawingHandle As Integer = myMapInterface.PrepareDrawing(True, False, False)
If drawingHandle -1 Then myMapInterface.Draw(drawingHandle, geomTablesAndClauses)
------------------------------------------------------------
This doesn't work either, because drawingHandle always equals -1. Does anybody have any working code for this problem or maybe any hints of what else I could try?