Topobase

Topobase

Reply
Member
4 Posts
0 Kudos
Registered: ‎04-11-2007
Post 1 of 3

obtaining TopoBase user and making filter

117 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
Employee
1 Posts
0 Kudos
Registered: ‎05-07-2007
Post 2 of 3

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
4 Posts
0 Kudos
Registered: ‎04-11-2007
Post 3 of 3

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
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!