It is currently Tue, 07 Sep 2010 16:58:19 +0000

All times are UTC - 5 hours


And enter to win a 3DConnexion Space Naviagtor 3D Mouse




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: iLogic PanelBar
PostPosted: Wed, 28 Jul 2010 21:32:54 +0000 
Offline
MCAD Lurker

Joined: 22 Jul 2010
Posts: 3
Country: United States
State: Wisconsin
CAD System: Inventor
This is a add-in that allows for multiple buttons to act as iLogic Rule triggers. No need for a single trigger.

Creating command buttons can be done at any time and when an Inventor file is loaded two rules are automatically looked for and executed. AddButtons stored in the open file and an external rule named AddGlobalButtons.

After installation copy the file ilxPanelBar.vb from the installation directory to your iLogicAdd (or any directory you use to store external rules in.) Add the rule file to iLogics list of External Rules in Files.

To Use, add a rule to your document named 'AddButtons'. Below is sample text of a rule.

Code:
AddVbFile "ilxPanelBar.vb"

Sub Main
ilxPanelBar = ilxPanelBarVB.GetPanelBar(ThisDoc.Document, ThisApplication)
ixPanelBar.AddButton("buttonName", "Button Text", "RuleName", ThisDoc.Document, "", False)
End Sub


AddButton(buttonName, buttonText, RuleName, Document, [PanelGroup, IsExternalRule])

buttonName: Name of button. Must be unique in each group. No spaces or punctuation in name.

buttonText: Text label displayed on the button.

RuleName: Name of the rule to fire when button is pressed.

Document: ThisDoc.Document

PanelGroup: Optional. Group to place button in. If not supplied or empty then button is place in default document group.

ExternalRule: Optional. True or False value indicating if the rule is an external rule.



Sample with multiple groups:

Code:
AddVbFile "ilxPanelBar.vb"

Sub Main
ilxPanelBar = ilxPanelBarVB.GetPanelBar(ThisDoc.Document, ThisApplication)
ilxPanelBar.AddButtonGroup("groupName", "Group Title", ThisDoc.Document)
ilxPanelBar.AddButton("btnName", "New Button 1", "Rule01", ThisDoc.Document, "groupName")
End Sub


Adds a button to the group "Group Title" to the documents button panel.

Try out the iLogic PanelBar and leave comments, suggestions, requests.

Thanks


Attachments:
ilxpbsetup.zip [450.47 KiB]
Downloaded 15 times
Share on Facebook Share on Twitter
Top
 Profile  
 
 Post subject: Re: iLogic PanelBar
PostPosted: Sun, 22 Aug 2010 13:22:43 +0000 
Offline
MCAD Lurker

Joined: 19 Aug 2010
Posts: 1
Country: Germany
State: Non US/CAN Resident
CAD System: Inventor
Hallo,
looks good :thumbsup: . How I can create a button in the global group?
Is it possible to delete a button with a rule?

Stefan


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group