Jump to content

Recommended Posts

Posted

I am having a little difficulty doing this since I am completely new on 64bit acad and system. I am trying to find out what are the right functions to call. I have a modified VBA code that I use to copy UCS from one dwg to another. This code works flawless in a 32bit but once we installed 64bit acad 2009 the code does not run. All I get is this error:

(Compile error: Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic)

 

Here is where I get the error:

Public Function GetAcadHwnd() As Long

GetAcadHwnd = GetParent(GetParent(ThisDrawing.hwnd))

End Function

 

From what I have been re-searching the Hwnd is not the same in a 64bit system.

Any help is greatly appreciated.

thanks.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...