
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've read in documentation that CUI managed API is possible to access and edit .cuix file from standalone .net application.
Following instructions from documentation (https://help.autodesk.com/view/OARX/2021/ENU/?guid=GUID-577EDC34-0A10-4D63-BED4-ECA4570355A3), I attempted to do some very simple thing: just to load .cuix file, and write number of Workspaces.
Here is the very simple method:
CustomizationSection customizationSection = new CustomizationSection("[path to .cuix file on disk]");
Console.WriteLine(customizationSection.Workspaces.Count);
Details of my app:
- It is very simple 64 bit console app in .NET 4.8.
- Added references to AcCui.dll, as noted in documentation.
If I set property for assembly "local copy" to "False", as instructed, then will get an error:
System.IO.FileNotFoundException: Could not load file or assembly 'AcCui, Version=24.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
If I set property for assembly "local copy" to "True", then will get an error:
System.InvalidProgramException: Common Language Runtime detected an invalid program.
Can you, please, help me and tell me what I did wrong here? Are documentation wrong, or incomplete, or i miss something important to perform such a simple operation?
Thanks.
Solved! Go to Solution.