Posted By

barigazy on 07/17/12


Tagged

Assembly


Versions (?)

Load Assembly


 / Published in: Maxscript
 

Load assembly from maxroot directory.

  1. fn LoadAssembly AssemblyName =
  2. (
  3. clearListener() ; dnLA = dotnet.loadAssembly AssemblyName
  4. if dnLA != undefined then
  5. (
  6. assemblyArr = dnLA.GetExportedTypes()
  7. dnObjA = sort (for a in assemblyArr collect a.FullName) ; print dnObjA
  8.  
  9. ) else format "%\n" "Undefined Assembly"
  10. )
  11. actionMan.executeAction 0 "40472"--Open MAXScript Listener
  12. --Example>>>
  13. --LoadAssembly "DevExpress.Utils"
  14. --LoadAssembly "DevExpress.XtraEditors"
  15. --LoadAssembly "system.xml.dll"
  16. --LoadAssembly "System"
  17. --LoadAssembly "System.Data"
  18. --LoadAssembly "System.Drawing"
  19. --LoadAssembly "System.Management"
  20. --LoadAssembly "System.Windows.Forms"

Report this snippet  

You need to login to post a comment.