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: 

Creating a Custom iLogic Trigger for Sheet Size Change

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
SIG2942141
696 Views, 3 Replies

Creating a Custom iLogic Trigger for Sheet Size Change

SIG2942141
Contributor
Contributor

Hello,

 

I have an Ilogic code that moves the revision block to the correct spot on our border.

Is it possible to trigger this rule when the drawing size has changed?

For example, if someone changes the drawing size from B to D I want to rule to be triggered.

 

Thanks!

Zach

0 Likes

Creating a Custom iLogic Trigger for Sheet Size Change

Hello,

 

I have an Ilogic code that moves the revision block to the correct spot on our border.

Is it possible to trigger this rule when the drawing size has changed?

For example, if someone changes the drawing size from B to D I want to rule to be triggered.

 

Thanks!

Zach

Labels (4)
3 REPLIES 3
Message 2 of 4
WCrihfield
in reply to: SIG2942141

WCrihfield
Mentor
Mentor
Accepted solution

Unfortunately the event triggers listed in the iLogic Event Triggers dialog box, are the only ones built-into the iLogic add-in right now, and although we can access these by code to add or remove a rule from an event, we don't currently have the ability to create and add new custom event triggers to the existing list.

To have something running in the background, listening for a specific event, then do something when that event happens, is most likely something that you would have to create an Inventor add-in for.

Working with some events using an iLogic rule is possible, but is much more limited.  For an iLogic rule to listen for and react to a document or application event, pretty much everything would have to happen while the rule is still running.  The event handler would have to be created within this rule. The event would have to be triggered while the rule was still running.  The rule would have to react to the event while the rule is still running.  And the event handler would likely need to be removed/destroyed again at the end of the same rule.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes

Unfortunately the event triggers listed in the iLogic Event Triggers dialog box, are the only ones built-into the iLogic add-in right now, and although we can access these by code to add or remove a rule from an event, we don't currently have the ability to create and add new custom event triggers to the existing list.

To have something running in the background, listening for a specific event, then do something when that event happens, is most likely something that you would have to create an Inventor add-in for.

Working with some events using an iLogic rule is possible, but is much more limited.  For an iLogic rule to listen for and react to a document or application event, pretty much everything would have to happen while the rule is still running.  The event handler would have to be created within this rule. The event would have to be triggered while the rule was still running.  The rule would have to react to the event while the rule is still running.  And the event handler would likely need to be removed/destroyed again at the end of the same rule.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 3 of 4
SIG2942141
in reply to: WCrihfield

SIG2942141
Contributor
Contributor

Yeah that's what I thought but was hoping there would be a way.

 

Thanks for the quick response!

Zach

0 Likes

Yeah that's what I thought but was hoping there would be a way.

 

Thanks for the quick response!

Zach

Message 4 of 4
A.Acheson
in reply to: SIG2942141

A.Acheson
Mentor
Mentor

@SIG2942141 

 

A workaround would be to change the sheet by ilogic and also move the revision sheet in the same rule, then they will always be in sync with each other, although you would need to change border and title block and any contents as well.

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes

@SIG2942141 

 

A workaround would be to change the sheet by ilogic and also move the revision sheet in the same rule, then they will always be in sync with each other, although you would need to change border and title block and any contents as well.

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan

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

Post to forums  

Autodesk Design & Make Report