.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to find class "LongTransactionManager" in Autocad 2010 API

11 REPLIES 11
Reply
Message 1 of 12
wrenchinternal
670 Views, 11 Replies

Unable to find class "LongTransactionManager" in Autocad 2010 API

I have referenced acdbmgd and acmgd dlls from AutoCAD to my project(int C# .NET 3.5 platform) but i am unable find the LongTransactionManager class in the same.

 

I get an error like 

 

 The type or namespace name 'LongTransactionManager' could not be found (are you missing a using directive or an assembly reference?

 

I request a little help from the community

 

11 REPLIES 11
Message 2 of 12
mzakiralam
in reply to: wrenchinternal

Autodesk.AutoCAD.ApplicationServices.LongTransactionManager
Message 3 of 12
wrenchinternal
in reply to: mzakiralam

I am sorry. My previous post had a typo. What i meant was i could not find the solution

 

I did try that. It is working perfectly for AutoCAD 2012. But in the case of AutoCAD 2010 API I just could not find the same.

 

Please help me out here.

 

Thanks

Message 4 of 12
_gile
in reply to: wrenchinternal

The LongTransactionManager class have been added with the AutoCAD 2011 API. It doesn't exist in prior versions.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 5 of 12
wrenchinternal
in reply to: _gile

Is there any way implement this class? I need to use the events in that class such as "Check in","Check out"..etc.

Any work around for this problem?

Message 6 of 12

Any help will be much appreciated

Message 7 of 12
arcticad
in reply to: wrenchinternal

My Google searches have not found a good explanation of what this does. Can someone point me to some documentation and explanation of what this is used for?

---------------------------



(defun botsbuildbots() (botsbuildbots))
Message 8 of 12
jeff
in reply to: arcticad

If I remember correctly it is used for checking in out objects and for example refedit uses it. Last time I looked at it, it was implemented incorrectly and unusable for .NET API.

You can also find your answers @ TheSwamp
Message 9 of 12
jeff
in reply to: jeff

If your trying to subscribe to events then check out

 

http://spiderinnet1.typepad.com/blog/2012/01/autocad-net-longtransactionmanager-events-check-in-and-...

 

You can also find your answers @ TheSwamp
Message 10 of 12

Thank you very much for the replies. As Jeff mentioned, it is used for checking in out objects.

 

I did try that link that Jeff has provided. But when i tried to register to the events. I am getting an error :

 

"Autodesk.AutoCAD.ApplicationServices.Application' does not contain a definition for 'LongTransactionManager'"

 

This is what i have been trying to say.

 

I am using AutoCAD 2010 API. Not AutoCAD 2012.

 

In AutoCAD 2012 API I am able to register to those evnts but not in AutoCAD 2010 API.

Message 11 of 12
jeff
in reply to: _gile

Must of missed gile's post


@_gile wrote:

The LongTransactionManager class have been added with the AutoCAD 2011 API. It doesn't exist in prior versions.



You can also find your answers @ TheSwamp
Message 12 of 12
jeff
in reply to: _gile

Must of missed gile's post


@_gile wrote:

The LongTransactionManager class have been added with the AutoCAD 2011 API. It doesn't exist in prior versions.


 

You can also find your answers @ TheSwamp

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost