« Oracle Data Import - Domains | Main | The age of your features »

June 23, 2009



Hi guys,
it`s possible to get the code?


Excellent! Love the video demonstrations. I would love to put our streetnames into topobase so we can search like you demonstrated. Any idea on how I should go about doing this? Currently our streetnames and parcel data are in a DWG which we currently have to XREF into Topobase.


Vanessa Rojas

Hi Andres

there is really not much code to share! I took the position finder control from the Topobase.PositionFinder.dll and embedded it into an AutoCAD tool palette. BTW, Mike Tuersley had a very good AU class about how to do this (http://au.autodesk.com/?nd=class&session_id=910).

Then I react on the Position Finder "Geometry Changed" event and zoom to the location.

Here is the code:

/// Gets fired when the user has selected a feature with a geometry.
private void pfControl_GeometryCanged(object sender, System.EventArgs e)
Geometry geometry = pfControl.SelectedGeometry;
if (geometry == null || Document == null) return;

Point centerPoint;
if (geometry is Point)
centerPoint = (Point)geometry;
Document.Map.ZoomGoTo(centerPoint, centerPoint);
BoundingCube cube = geometry.Bounds;
centerPoint = cube.CenterPoint;
Document.Map.ZoomGoTo(new Point(cube.MinX, cube.MinY), new Point(cube.MaxX, cube.MaxY));

Vanessa Rojas

Hi Heath

there are several ways to bring in DWG data into Topobase.

One approach which definitely works is using the bulk copy functionality of Map3D to load the data into Oracle (http://augiru.augi.com/content/library/au07/data/paper/GS204-3.pdf) and then use the Topobase Schema Conversion tool (in Topobase Administrator) to create a Topobase feature class out of the Oracle database table.


Hi Andreas,

That sounds great! I'm trying to access it, but am getting HTTP 408/409 Server Busy errors.


I have it now. The URL has a " ) " at the end of it.

Roman Janecek

I tried on TB09 and it works too. It´s fine.



Would you be able to provide steps to make an icon in the Ribbon?


Vanessa Rojas

Hi Heath


1) type in CUI in the AutoCAD command prompt, that should open the Customize User Interface dialog
2) in the Command List (on the left hand side of the dialog) press the "Create a new command" button
3) in the Properties window of the new command (right hand side) change the name of the command, for instance "Position Finder", change also the macro to "^C^CTBPF" and choose an image
4) after you have done that you can now add the command to the ribbon. Go to the tree on the top left and locate the desired ribbon panel. For instance: ACAD / Ribbon / Panels / Settings - Palettes / Row 1.
5) Now you can simply drag and drop the "Position Finder" command from the command list to the selected ribbon panel.
6) save the CUI file and close the dialog

That's it, please let me know if that helps!



This is a great functionality.

Just wondering, is the Position Finder a DocumentFlyIn? How did/do you load/display the a DocumentFlyIn through the ACAD command?


Vanessa Rojas

Hi HyVong

no, this Feature Search is not a DocumentFlyIn. It is an AutoCAD PaletteSet which is started and initialized by an AutoCAD command:

public static void Initialize()
{ ... }

Here you find the necessary classes:
using Autodesk.AutoCAD.Windows;
using Autodesk.AutoCAD.Runtime;

Within the code you can access the Application instance (and its document) through the singleton Application.Instance.

Hope this helps!


Thank you Andreas



I tried the installation as you describe, but it doesn't function. After writing "TBPF" in the command line there is a message with "Command unknown". Can you help me? Frank

Vanessa Rojas

Hi Frank

did NETLOAD work? What was the output on the command line after loading the Position Finder DLL?


The comments to this entry are closed.

The Topobase Insiders


  • Autodesk Blogs
  • Being Civil
  • Between the Lines
  • Between the Poles
  • Geospatial made in France
  • It's Alive in the Lab
  • The Geospatial Navigator
  • Through the Interface