Permlink Replies: 3 - Last Post: Nov 4, 2009 3:55 PM Last Post By: MjDeck Threads: [ Previous | Next ]
Chuck_B

Posts: 70
Registered: 08/19/07
Create iLogic parameter using VBA or iLogic functions
Posted: Nov 4, 2009 1:42 AM
  Click to reply to this thread Reply
Can you add a new iLogic parameter programatically? I know this more than a user question but I have been able to get a response from this thread right away.

Thanks,

Chuck
MjDeck

Posts: 82
Registered: 02/25/09
Re: Create iLogic parameter using VBA or iLogic functions
Posted: Nov 4, 2009 2:15 PM   in response to: Chuck_B in response to: Chuck_B
  Click to reply to this thread Reply
You can do it using XML, but there's a lot of hoops to jump through. How many parameters do you want to create? Are you also creating rules using the iLogic API?

Maybe you could use custom iProperties. You can create them using the Inventor API, and access them in iLogic rules. However they can't be used to trigger rules to run.

Mike Deck
Autodesk
Chuck_B

Posts: 70
Registered: 08/19/07
Re: Create iLogic parameter using VBA or iLogic functions
Posted: Nov 4, 2009 2:58 PM   in response to: MjDeck in response to: MjDeck
  Click to reply to this thread Reply
Thanks Mike! I didn't think of doing this via XML. I just used the export XML in iLogic and deleted all the extra parameters in XML except for the ones I want to bring into the other parts. I found a way to automate the process using that approach. We are changing most of are parts/assemblies to use iLogic and a lot of these will have the some of the same parameter names which I didn't want to type each one out manually. They do need to run a rule when values are changed.

I have a question that involves setting up 20 other users. Can the external rules be added to other machines automatically? Or do you have to add them manually for each new user's pc? I see there is a place to add external rule directories in the Advanced iLogic Directories but I was hoping it would also load the rules that exist in that directory.

Chuck
MjDeck

Posts: 82
Registered: 02/25/09
Re: Create iLogic parameter using VBA or iLogic functions
Posted: Nov 4, 2009 3:55 PM   in response to: Chuck_B in response to: Chuck_B
  Click to reply to this thread Reply
Chuck,

Glad you got it working. You could also put iLogic parameters in a template part or assembly. But that wouldn't help with changing existing models.

About the external rules directories: maybe we should change it to automatically load all rules in the directory. But you can multi-select files in the dialog and load the whole directory that way.

Mike