RoundParamsAbstract: Rounds all marked parameters on the selected objects to the nearset factor.Description: This tool rounds all marked parameters on the selected objects using a user-defined multiplier factor so for example if the factor is 0.5 then all parameters values will be rounded to powers of 0.5. Working Scenarios: This tool is usefull to force all objects to have a custom module of values which is a very common case when placing architectral objects. User Usage: Select all objects, mark any parameters and run the script. Developer Usage: You can call this tool from any other scripts using the following function call: RoundPar( aParams, oObjCollection, dFactor ) Where aParams is 1D-array that contains all parameters names’. If you leave this argument empty the script will search for any user marked parameters. oObjCollection is an XSI object collection that contains all objects you want to include in the process. dFactor is float number that specify the rounding multiplicity. This tool returns true if it succeeds and false if it failed for any reason. Nature: Script Applies To: XSI 3.5 on NT,Win2K,XP Languages: VBScript |