TextScr in 2016 reference has changed

TextScr in 2016 reference has changed

michael.mouzakitis
Explorer Explorer
914 Views
2 Replies
Message 1 of 3

TextScr in 2016 reference has changed

michael.mouzakitis
Explorer
Explorer

I have the following code that works in 2014,2015 but doesn't work in 2016:

Autodesk.AutoCAD.Internal.Utils.TextScr()

 

In 2016 I get the following error:

'TextScr' is not a member of 'Autodesk.AutoCAD.Internal.Utils'.

What dll reference would I have to add to my project to get this to work or which namespace would I find this method in.

 

Thank you in advance.

Michael

0 Likes
Accepted solutions (1)
915 Views
2 Replies
Replies (2)
Message 2 of 3

_gile
Consultant
Consultant
Accepted solution

Hi,

 

The TextScr() method (as the GraphScr() and WcMatch() ones) have been moved to the CoreUtils class defined in AcCoreMgd.dll.

 

Try like this:

 

Autodesk.AutoCAD.Internal.CoreUtils.TextScr();

 



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 3

michael.mouzakitis
Explorer
Explorer

Thank you, that worked.

0 Likes