Author Topic: Help needed with modeless dialog/palette  (Read 1428 times)

0 Members and 1 Guest are viewing this topic.

ReneRam

  • Guest
Help needed with modeless dialog/palette
« on: September 26, 2011, 10:18:04 AM »
Hello to everyone,
I have a little problem...
I searchred for the solution here in the Swamp, but it looks like I can't solve the issue  :?

Simply... in AutoCAD 2012 with VS2010 I'm trying to use "Autodesk.AutoCAD.Internal.Utils.SetFocusToDwgView()" that is called in problems like mine, set focus to the active document, in order not to click the drawing editor are before selecting ents or points.

It looks like my Autocad doesn't have this function. I have read in a post, can't find it again that now the "Autodesk.AutoCAD.Internal.Utils" are integrated in the "acmgd" or "acdbmgd", but still can't find it.

Can anyone please point me out the reference or have I understood wrong...

Thanks
René

kaefer

  • Guest
Re: Help needed with modeless dialog/palette
« Reply #1 on: September 26, 2011, 10:53:29 AM »
I can't imagine why you should be experiencing any trouble locating SetFocusToDwgView() in the Visual Studio object browser. Here's VS 2011, and after adding AcMgd.dll from either ObjectARX inc folder or (not recommended -) program path and entering SetFocusToDwgView into the object browser search it is correctly located:
Quote
public static void SetFocusToDwgView()
    Member of Autodesk.AutoCAD.Internal.Utils

ReneRam

  • Guest
Re: Help needed with modeless dialog/palette
« Reply #2 on: September 26, 2011, 11:15:36 AM »
 :oops: Shame in myself!!!  :pissed:

Found out whats wrong!!! Since I picked up my old code that has been modified by a colleague that upgraded it to 2011, I supposed he had changed the references ...
All the computers in the company have both AutoCAD 2008 and 2012, but our proprietary software was linked to the 2008 references. And the object browser just shows the dll name.

I should have checked before asking for help.

René