Then its a good thing I'm using ArcObjects for the addin. I wrote code to add a new point fc, tables, and a function to add the relationships. I tried to keep the two systems apart, but they said it was ok to put them in the same place. This allowed me to be able to set def queries, relationships and change source csv files with radio buttons and check boxes.
The relationships were tricky to figure out.
Public Function createRelationsip(ByVal pTable As ITable, ByVal strJnFieldTbl As String, ByVal pLayer As IFeatureLayer, ByVal strJnFieldLyr As String, ByVal relName As String, ByVal fwdLabel As String, ByVal card As esriRelCardinality) As IRelationshipClass
Dim pMemRelFact As IMemoryRelationshipClassFactory = New MemoryRelationshipClassFactory()
Dim pTableOC As IObjectClass = pTable
Dim pLayerOC As IObjectClass = pLayer.FeatureClass
Dim pRelClass As IRelationshipClass = pMemRelFact.Open(relName, pTableOC, strJnFieldTbl, pLayerOC, strJnFieldLyr, fwdLabel, "backward", esriRelCardinality.esriRelCardinalityOneToMany)
Dim pRelClassCollEdit As IRelationshipClassCollectionEdit = CType(pLayer, IRelationshipClassCollectionEdit)
pRelClassCollEdit.AddRelationshipClass(pRelClass)
Return pRelClass
End Function
Public Sub removeRelationship(ByVal pLayer As IFeatureLayer, ByVal relClass As IRelationshipClass)
Dim pRelClassCollEdit As IRelationshipClassCollectionEdit = CType(pLayer, IRelationshipClassCollectionEdit)
pRelClassCollEdit.RemoveRelationshipClass(relClass)
End Sub