Jump to content

Calling a subroutine in a Loaded Project from a subroutine attached to a drawing


KaiBo

Recommended Posts

In VBA

I have a series of subroutines that I needed to attach to a specific Drawing, and some of these subroutines need to call on general subroutines I have stored in a project that loads at the start of AutoCAD.

I know how to call subroutines from one project to another, but I have not been able to call these general subroutines from a subroutine attached to this Drawing. Is this some thing that is not allowed or is there a way, and what is it?

The sub I’m trying to Call is : SearchPathUser

It’s in Module: SearchPathUser

In project: C:\TWvba\TWproject.dvb

Here are some of the failed attempts at calling the sub that I have tried.

 
Call SearchPathUser
Call SearchPathUser.SearchPathUser
Call TWproject.dvb!ProjectnameFiles.ProjectnameFiles
Call TWproject.dvb.ProjectnameFiles.ProjectnameFiles
run aplication ACADProject("C:\TWvba\TWproject.dvb!ProjectnameFiles.ProjectnameFiles")

 

Thanks for your time,

Kai

Link to comment
Share on other sites

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...