C# Class DynamoShapeManager.Utilities

Mostrar archivo Open project: DynamoDS/Dynamo

Public Properties

Property Type Description
GeometryFactoryAssembly string
PreloaderAssembly string
PreloaderClassName string
PreloaderMethodName string

Public Methods

Method Description
GetGeometryFactoryPath ( string rootFolder, LibraryVersion version ) : string

Call this method to resolve full path to GeometryFactoryAssembly assembly, given the root folder and the version. This method throws an exception if either of the folders/assembly cannot be found.

GetInstalledAsmVersion ( List versions, string &location, string rootFolder ) : LibraryVersion

Call this method to determine the version of ASM that is installed on the user machine. The method scans through a list of known Autodesk product folders for ASM binaries with the targeted version.

PreloadAsmFromPath ( string preloaderLocation, string asmLocation ) : void

Call this method to preload ASM binaries from a specific location. This method does not have a return value, any failures in loading ASM binaries will result in an exception being thrown.

Private Methods

Method Description
GetAsmInstallations ( string rootFolder ) : IEnumerable

Method Details

GetGeometryFactoryPath() public static method

Call this method to resolve full path to GeometryFactoryAssembly assembly, given the root folder and the version. This method throws an exception if either of the folders/assembly cannot be found.
public static GetGeometryFactoryPath ( string rootFolder, LibraryVersion version ) : string
rootFolder string Full path of the directory that contains /// LibG_xxx folder, where 'xxx' represents the library version. In a /// typical setup this would be the same directory that contains Dynamo /// core modules. This must represent a valid directory.
version LibraryVersion Version number of the targeted geometry library. /// If the resulting folder does not exist, this method throws an /// FileNotFoundException.
return string

GetInstalledAsmVersion() public static method

Call this method to determine the version of ASM that is installed on the user machine. The method scans through a list of known Autodesk product folders for ASM binaries with the targeted version.
public static GetInstalledAsmVersion ( List versions, string &location, string rootFolder ) : LibraryVersion
versions List A list of version numbers to check for in order /// of preference. This argument cannot be null or empty.
location string The full path of the directory in which targeted /// ASM binaries are found. This argument cannot be null.
rootFolder string This method makes use of DynamoInstallDetective /// to determine the installation location of various Autodesk products. This /// argument is not optional and must represent the full path to the folder /// which contains DynamoInstallDetective.dll. An exception is thrown if the /// assembly cannot be located.
return LibraryVersion

PreloadAsmFromPath() public static method

Call this method to preload ASM binaries from a specific location. This method does not have a return value, any failures in loading ASM binaries will result in an exception being thrown.
public static PreloadAsmFromPath ( string preloaderLocation, string asmLocation ) : void
preloaderLocation string Full path of the folder that contains /// PreloaderAssembly assembly. This argument must represent a valid path /// to the loader.
asmLocation string Full path of the folder that contains ASM /// binaries to load. This argument cannot be null or empty.
return void

Property Details

GeometryFactoryAssembly public_oe static_oe property

public static string GeometryFactoryAssembly
return string

PreloaderAssembly public_oe static_oe property

public static string PreloaderAssembly
return string

PreloaderClassName public_oe static_oe property

public static string PreloaderClassName
return string

PreloaderMethodName public_oe static_oe property

public static string PreloaderMethodName
return string