Inventor Customization

Reply
Mentor
Posts: 288
Registered: ‎07-05-2005
Message 1 of 2 (176 Views)

Creating an add-in that disables editing of templates etc.

176 Views, 1 Replies
02-23-2011 08:42 AM

Hi all,

 

In the past 2 and a bit years I've written a couple of add-ins for Inventor and I feel I've learned a lot about how to control the interface etc.

 

One thing I'm particularly interested in implementing in the not-too-distant-future is an add-in that prevents users being able to modify/edit templates/styles without having the correct permissions and to notify me if/when they achieve this. Of course, the library can be locked down at the project level, but the ability to edit/fiddle with templates in newly created .idw files still remains despite this.

 

I also realise that add-ins can be disabled, so I am doubly curious as to whether that functionality can be "locked out" except for Inventor "administrators" or "superusers";

 

Would I simply need to capture the context menu event that starts the "Edit definition" command and then check whether the user has the appropriate permissions? (I have done some work that involved the UserInputEvents.OnContextMenu event so I am familiar with how to look for the event I need)

 

Thanks in advance,

 

Alex.

Valued Mentor
Posts: 431
Registered: ‎11-24-2003
Message 2 of 2 (124 Views)

Re: Creating an add-in that disables editing of templates etc.

03-14-2011 12:43 PM in reply to: AlexF1980

Writing an addin to control permissions seems like swatting a fly with a sledge hammer.

 

Network permission can be set one time and no one will be able to change styles or templates except for you wish to change them.

 

As far as locking down add_ins.  Unless you tell your users there is an add_in they generally will not know.  Especially if you name it something tame sounding.   "LockDown_Tool" would be a bad choice.  I have many seats of Networked Inventor Inventor that use a Dis-Allow Save or SaveAs Add_In I wrote.  Been there for a couple of years and no one knows that it is an Add_in.  I just tell them it is a different flavor of inventor.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube