Possible to hook iLogic trigger to Title Block variables?

Possible to hook iLogic trigger to Title Block variables?

Anonymous
Not applicable
579 Views
8 Replies
Message 1 of 9

Possible to hook iLogic trigger to Title Block variables?

Anonymous
Not applicable

Greetings,

 

I am currently working on updating various (2017) .idw templates and one of the things I'm trying to add is a dynamic border that adapts to the sheet size.

 

That in itself isn't a problem - the script works as intended - but I would also like it to update whenever one of my students changes the current sheet size. But from digging through the available information and various forum posts, that does not seem to be directly possible. One would always need to either trigger the script manually or hook it to saving the document or some such, which seems less than ideal.

 

Then I realized there is a sheet size variable you can use in title blocks that automatically updates itself, so there is clearly already a variable built into the program that can be used.

 

So my question is this: Is there a way for me to use this title block variable to hook up an iLogic trigger? There already is an "iProperty Change" trigger, but that by itself doesn't seem to be enough.

 

Thanks in advance.

0 Likes
580 Views
8 Replies
Replies (8)
Message 2 of 9

bradeneuropeArthur
Mentor
Mentor

Why don't you use sheet-sets?

Regards,

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

Message 3 of 9

Anonymous
Not applicable

You mean just setting up a set of blank sheets of different sizes in the template?

 

That is indeed something I could do. However, if there is ever a need for an additional (differently-sized) sheet, it would not have the correct associated border; you'd have to create an entirely new drawing. This isn't that big of a problem, but it *is* less than ideal.

 

On top of that I personally prefer as little clutter as possible, so if it is at all possible to just automate the process that would be great.

0 Likes
Message 4 of 9

bradeneuropeArthur
Mentor
Mentor

No, is not.

you have a drawing resource wizard that can do that.

found under:

C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Autodesk Inventor ####\Tools\Drawing Resource Transfer Wizard ####.lnk

this wil allow you to update all drawings to a new definition.

 

Regards,

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

Message 5 of 9

Anonymous
Not applicable

That works, sure, but that still means extra steps even though that should not be necessary. All the pieces are already in place for this process to be fully automatic, all I would like is a way to be able to connect them all up.

 

If that is not possible, then so be it. Your other suggestions will work just fine then for which I am grateful. Just wondering if there isn't a way to streamline the process even more.

0 Likes
Message 6 of 9

bradeneuropeArthur
Mentor
Mentor

Hi,

 

So resume:

  • you need code that changes the titleblock if the border size changes!
  • So border x size A1 has titleblock a
  • So border y size A2 has titleblock b

Correct?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

Message 7 of 9

Anonymous
Not applicable

Indeed. My apologies if my explanation wasn't clear enough, I'll rephrase it slightly below:

 

I have unique borders/title blocks for all conventional paper sizes (A0-A4, both portrait and landscape). I also already have a working iLogic script that automatically matches the correct sheet and border/title block.

 

So currently, whenever someone changes a sheet from, say, A4 portrait to A3 landscape, all they have to do is hit the "Regenerate all rules" button and everything works as intended.

 

However, being the doofus that I am, I would like to cut out this last step if at all possible by triggering the iLogic script as soon as the paper size changes, fully automating the process. Since there is already a variable for paper sizes that can be used in Title Blocks I figured it would be possible to use that particular variable to trigger the script, but so far I have not found a way to do so yet.

 

Hopefully this clears up my question a little, and thanks again.

0 Likes
Message 8 of 9

bradeneuropeArthur
Mentor
Mentor

so basically your code is ready, but you are searching for an event that triggers the "Change Size of the sheet", correct?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

Message 9 of 9

Anonymous
Not applicable

Specifically, I am looking for a way to update the borders (in order words, run my script) as soon as the current sheet size gets changed.

 

I figured the "iProperty Change" trigger would do the trick, but it seems that only works for .ipt or .iam files.

0 Likes