CSharp Snippets


Getting all passes in the active project

CXSIApplication app = new CXSIApplicationClass();
XSIProject project = app.ActiveProject2 as XSIProject;
PassCollection passes = project.ActiveScene.Passes;

credits: kaipirinha (http://www.xsibase.com/forum/index.php?board=14;action=display;threadid=35171;start=3#msg226955)


Adding a combo box to a PPG

oLayout.AddEnumControl("City", aComboItems, "City", StringModule.siControlCombo);

credits: ChrisAtSilentOrb (http://www.xsibase.com/forum/index.php?board=14;action=display;threadid=31203)

This page was last modified 18:53, 2 Nov 2010.
This page has been accessed 6485 times.

© Copyright 2009 Autodesk Inc. All Rights Reserved. Privacy Policy | Legal Notices and Trademarks | Report Piracy