Talk to us about your specific requirements, we develop the 3DViewStation for the customer’s needs - right from the start.The Kisters 3DViewStation WebViewer version is easy to use, without any training or familiarization period - just get started.Our Kisters 3DViewStation product family is suitable for small, medium and large companies - more than 3,000 companies trust us every day.We support all major data formats: native and neutral 3D CAD models, 2D CAD drawings, office documents and images - real MultiCAD viewing for your industry.For over 25 years, our passions have been: the development of our CAD Viewer and visualization for your business - we are your visualization experts.The resulting processed file will be created hereĬ:\Users\Me\Documents\Visual Studio 2015\Projects\HelperSuite\HelperSuite\bin\DeferredCascadedShadowMaps\GameThumbnail. I thought i was going crazy.Ĭ:\Users\Me\Documents\Visual Studio 2015\Projects\HelperSuite\HelperSuite\bin\Windows\x86\DebugĬ:\Users\Me\Documents\Visual Studio 2015\Projects\DeferredCascadedShadowMaps\GameThumbnail.png xnb file will be in some new folder which, and now comes the great part, will generate a new folder somewhere above the working directory with a relative path from the last path that working and source directory share. If the absolute path of the source is on the same partition the generated. If the absolute path of the source is on a different partition the generated. Read a file from an absolute path and output the processed files in a output folder. I’ve written about it here typical/working command line inputs for MGCB? If (disposableAssets.Contains((IDisposable)asset))ĭisposableAssets.Remove((IDisposable)asset) Public IDisposable UnloadAsset(string assetName) Void RecordDisposableAsset(IDisposable disposable) T asset = ReadAsset(assetPath, RecordDisposableAsset) įoreach (IDisposable disposable in disposableAssets) If(File.Exists(Path.Combine(callerLocation, RootDirectory, assetName) + ".xnb"))ĪssetPath = Path.Combine(callerLocation, RootDirectory, assetName) Įlse if (File.Exists(Path.Combine(currentLocation, RootDirectory, assetName) + ".xnb"))ĪssetPath = Path.Combine(currentLocation, RootDirectory, assetName) Įlse if (File.Exists(Path.Combine(projectLocation, RootDirectory, assetName) + ".xnb"))ĪssetPath = Path.Combine(projectLocation, RootDirectory, assetName) String assetPath = assetName //default value String projectLocation = _projectLocation
String currentLocation = Directory.GetCurrentDirectory() string hostLocation = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + "\\" String callerLocation = Path.GetDirectoryName(Assembly.GetCallingAssembly().Location) + "\\" Stream = File.OpenRead(assetPath + ".xnb") Var assetPath = Path.Combine(RootDirectory, assetName) Protected override Stream OpenStream(string assetName) Public ProjectContentManager(IServiceProvider serviceProvider): base(serviceProvider) Public ProjectContentManager(IServiceProvider serviceProvider, string rootDirectory): base(serviceProvider, rootDirectory)
Namespace Ĭlass ProjectContentManager: ContentManagerĭictionary loadedAssets = new Dictionary() and solved it with a custom ContentManager.