.NET

Reply
Distinguished Contributor
JeffatICS
Posts: 295
Registered: ‎04-06-2004
Message 1 of 5 (580 Views)
Accepted Solution

productkey replacement in dot net 4

580 Views, 4 Replies
07-10-2012 05:02 AM

Anyone know the replacement for the following property:

 

Autodesk.AutoCAD.Runtime.SystemObjects.DynamicLinker.ProductKey

 

 

Thanks

J.

 

Hi,

 

Have a look at the ObjectARX 2013\Docs\arxmgd.chm file: Migration Guide > .NET Migration Guide > Changed .NET API:

 

Autodesk.AutoCAD.DatabaseServices.HostApplicationServices.Current.UserRegistryProductRootKey

or 

Autodesk.AutoCAD.DatabaseServices.HostApplicationServices.Current.MachineRegistryProductRootKey

*Expert Elite*
_gile
Posts: 2,115
Registered: ‎04-29-2006
Message 2 of 5 (543 Views)

Re : productkey replacement in dot net 4

07-11-2012 10:35 AM in reply to: JeffatICS

Hi,

 

Have a look at the ObjectARX 2013\Docs\arxmgd.chm file: Migration Guide > .NET Migration Guide > Changed .NET API:

 

Autodesk.AutoCAD.DatabaseServices.HostApplicationServices.Current.UserRegistryProductRootKey

or 

Autodesk.AutoCAD.DatabaseServices.HostApplicationServices.Current.MachineRegistryProductRootKey

Gilles Chanteau
Active Contributor
CADbloke
Posts: 43
Registered: ‎08-12-2008
Message 3 of 5 (475 Views)

Re : productkey replacement in dot net 4

10-28-2012 09:00 PM in reply to: _gile

Really?

 

Because all I see in that section of the Docs is ...

 

Class
Declaration
Previous Declaration
AssocPersSubentityId
public static void CreateObjectAndDwgInFields(Database database, DwgFiler filer, ref AssocPersSubentityId createdPersSubentId);
static Acad::ErrorStatus createObjectAndDwgInFields(AcDbDwgFiler* pFiler, AcDbAssocPersSubentId*& pCreatedPersSubentId);
SymbolUtilityServices
public static string PreValidateSymbolName(string symbolName, [MarshalAs(UnmanagedType.U1)] bool preserveCase);
public static string PreValidateSymbolName([MarshalAs(UnmanagedType.U1)] bool preserveCase);
View
public Extents2d ViewportExtents;
public Extents2d ViewportD; 
Board Manager
StephenPreston
Posts: 419
Registered: ‎05-22-2006
Message 4 of 5 (442 Views)

Re: productkey replacement in dot net 4

10-31-2012 07:29 AM in reply to: JeffatICS

You're looking in the Changed function list. Look in the Removed function list (which documents the functions to use instead).

Cheers,

Stephen Preston
Autodesk Developer Network
Active Contributor
CADbloke
Posts: 43
Registered: ‎08-12-2008
Message 5 of 5 (428 Views)

Re: productkey replacement in dot net 4

10-31-2012 12:29 PM in reply to: JeffatICS

Ah, yes I did. I followed "Migration Guide > .NET Migration Guide > Changed .NET API:" from above. 

 

Thanks.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!