Community
Topobase (Read Only)
Welcome to Autodesk’s Topobase Forums. Share your knowledge, ask questions, and explore popular Topobase topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Regenerating graphics in a new document

0 REPLIES 0
Reply
Message 1 of 1
thkoehler
312 Views, 0 Replies

Regenerating graphics in a new document

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?
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report