Message 1 of 4
VB.NET accessing property set data

Not applicable
11-14-2007
11:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I wish to migrate my VBA code into VB.NET.
Here is a snippet of the code i use in VBA. From the research i have done i believe the below is possible in VB.NET too, with the addition of some libaries.
Could someone please provide the libaries required and/or sample code of how to achieve the below in VB.NET
Dim Sched As New AecScheduleApplication
Dim PropSets As AecSchedulePropertySets
Dim propSet As AecSchedulePropertySet
Dim Prop As AecScheduleProperty
Set PropSets = Sched.PropertySets(vDoor)
For i = 0 To PropSets.Count - 1
Set propSet = PropSets.Item(i)
If propSet.name = vpropSet Then
ansi = i
Exit For
End If
Next i
Regards
Chris
Here is a snippet of the code i use in VBA. From the research i have done i believe the below is possible in VB.NET too, with the addition of some libaries.
Could someone please provide the libaries required and/or sample code of how to achieve the below in VB.NET
Dim Sched As New AecScheduleApplication
Dim PropSets As AecSchedulePropertySets
Dim propSet As AecSchedulePropertySet
Dim Prop As AecScheduleProperty
Set PropSets = Sched.PropertySets(vDoor)
For i = 0 To PropSets.Count - 1
Set propSet = PropSets.Item(i)
If propSet.name = vpropSet Then
ansi = i
Exit For
End If
Next i
Regards
Chris