Project reference problem

A

Anders

I am trying to run my macroes from a custom menu. The macroes are in a
separate file macro.vsd that I need to reference from the current document.
When macro.vsd is placed in a read-only folder I can't create the reference.
But when it is in a write enabled folder everything works fine.

Is there no way to reference a read-only vsd file?

Anders
www.ramboll.com
 
D

David Parker

It is more normal to put macros in stencils (.vss), not drawings (.vsd),
then the stencil can be opened with a workspace.
 
A

Anders

I moved my macros to a stencil, but it did not change anything.
Maybe I don't quite understand workspaces.
But in order to have the AddOnName="myproject.module.macro" setting work in
my custom menu I need to have a reference to <myproject> in the current
drawing.
If the vss/vsd file containing the project is read-only I get an Automation
Error when trying to reference it.
What am I missing?
 
D

David Parker

I assume that the stencil is open?
What does your macro do? Does it attempt to write something?
You should be able to get the code in the stencil to create/destroy your
menu.
The code shouldn't be in your drawing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top