Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Block user access to custom in iProperty

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
amitnkukanur
1079 Views, 4 Replies

Block user access to custom in iProperty

Hello,

 

we are doing a customization in inventor 2012 using vb.net as development language. The app is deployed in customer place and is working fine as programmed.

 

However the correct usage of application is dependent on custom tab in iProperty. If user manually makes changes in iproperty then application will work incorrectly; if managed through application application works fine. 

 

This typical customer makes change in Custom tab in iproperty and works in through addin application which will definitely produce improper result.

 

My question is, Is it possible to restrict user from going to custom tab in iproperties.

 

Any help would be greatly appreciated 

 

 

regards

Amit

 

Senior Software Engineer
4 REPLIES 4
Message 2 of 5
Boorda
in reply to: amitnkukanur

You could possibly save your important property as an actual setting in your addin or save the setting as an Attribute in an AttributeSet in the part itself, then parse it to an iproperty for viewing purposes only. If the user changes it you could regenerate your script on a document save event over writing user input.


Automation is key!
Message 3 of 5
alewer
in reply to: amitnkukanur

In addition to Boorda's suggestions (application setting or attributes), you can also create additional property sets that don't appear to users on the iProperty dialog/custom tab:

 

Dim secretPropSet As Inventor.PropertySet = mDocument.PropertySets.Add("Secret Property Set")
Dim secretProp As Inventor.Property = secretPropSet.Add("ABC-XYZ", "Secret Property")

 

This property set and property will not be visible to the average user. However, it can still be discovered and editied by VBA/ilogic/API. The same is true for attributes.

Message 4 of 5
adam.nagy
in reply to: amitnkukanur

Hi Amit,

 

If the suggestions helped then please mark them as solution.

I think it's also possible to mark multiple answers as solution if you wish.

 

Thank you,



Adam Nagy
Autodesk Platform Services
Message 5 of 5
ndevries117
in reply to: alewer

If possible, can anyone provide a more detailed procedure for setting up custom iProperties that can be kep hidden/block user access using the code listed above?

 

Thanks for you help!

 

"Another frusterated instructor..."

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report