I am currently in the process of finalizing the syllabus/examples for a course I'll be teaching with another forum member (Brent Klokis) taught at the New Jersey School of Architecture (NJIT) on just that topic. It is complicated and there are many different strategies so it really depends on what it is you actually want to accomplish with the system. PM me and we can discuss it further, hopefully I'll be able to give you some useful advice.