Topobase

Reply
Member
irene.rangel
Posts: 4
Registered: ‎04-11-2007
Message 1 of 3 (104 Views)

obtaining TopoBase user and making filter

104 Views, 2 Replies
04-16-2007 03:03 PM
hello forum! I have some specific questions about using the API for TopoBase:
- How can I obtain the user (created using the TopoBase Admin) currently logged with VB code? If possible, how to obtain the user id?
- How can I make a filter, using VB code, to obtain a subset of the information when loading the "show form" dialog?

Thanks for any help
Regards,
Irene Rangel
New Member
andreas.boos
Posts: 1
Registered: ‎05-07-2007
Message 2 of 3 (104 Views)

Re: obtaining TopoBase user and making filter

05-07-2007 07:40 AM in reply to: irene.rangel
Hi Irene

- How can I obtain the user (created using the TopoBase Admin) currently logged with VB code? If possible, how to obtain the user id?

You can use following code to get the user name and use id
(I suppose you are doing this in some plug-in, ‘Me’ here represents the plug-in instance)

Me.Application.UserName
Me.Application.UserId

- How can I make a filter, using VB code, to obtain a subset of the information when loading the "show form" dialog?

You can use following code to filter the data in the form:

Topobase.Forms.Dialog dialog = Me.Document.Dialog.Items(featureClass)

‘ Build a sql where clause formatted like: ‘fid in (1, 2, 3)’
‘ You can use it to filter the data

String whereClause = Topobase.Data.Provider.BuildInCondition(…)
dialog.Show(whereClause)

Hope this helps

Best regards
Andreas
Member
irene.rangel
Posts: 4
Registered: ‎04-11-2007
Message 3 of 3 (104 Views)

Re: obtaining TopoBase user and making filter

05-08-2007 08:56 AM in reply to: irene.rangel
Thanks for the responses. They helped a lot to solve my problems.

Regards,
Irene Rangel

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community