Posts: 1,412
Registered: ‎04-09-2008
Message 11 of 12 (74 Views)

Re: PrinterConfigPath with two paths

04-03-2014 01:17 AM in reply to: Rob.O

Function acedGetEnv in ObjectARX 2015 has new signature:

int            acedGetEnv (const ACHAR *sym, ACHAR  *var, size_t nBufLen);

 instead of ObjectARX 2014 and early:

int            acedGetEnv (const ACHAR *sym, ACHAR  *var);

 So code have to look like this (not tested):

[DllImport("accore.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode, EntryPoint = "acedGetEnv")]
extern static private Int32 acedGetEnv15(string var, StringBuilder val, UIntPtr valLen);



Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

Posts: 259
Registered: ‎06-25-2007
Message 12 of 12 (61 Views)

Re: PrinterConfigPath with two paths

04-03-2014 07:49 AM in reply to: Alexander.Rivilis

Thank you Alexander!


I saw that the function changed when I was looking through the 2015 arxdoc.chm for info on it, but I kind of glazed over it!


Works perfectly!


Keep up the great work!



Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.