Topobase

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

obtaining TopoBase user and making filter

111 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 (111 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 (111 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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.