ThisApplication.OpenDocumentsDisplay

ThisApplication.OpenDocumentsDisplay

mikazakov
Advocate Advocate
435 Views
3 Replies
Message 1 of 4

ThisApplication.OpenDocumentsDisplay

mikazakov
Advocate
Advocate

 

Hi,

What does object ThisApplication.OpenDocumentsDisplay?

I did not see its effect.

0 Likes
Accepted solutions (1)
436 Views
3 Replies
Replies (3)
Message 2 of 4

Curtis_Waguespack
Consultant
Consultant
Accepted solution

Hi mikazakov,

 

As far as I can tell, it controls the recent documents list:

 

Autodesk Inventor Open Document Display.png

 

 

I used this code to toggle it (using iLogic):

 

If ThisApplication.OpenDocumentsDisplay = True Then
ThisApplication.OpenDocumentsDisplay = False
Else
ThisApplication.OpenDocumentsDisplay = True
End If

 

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

EESignature

0 Likes
Message 3 of 4

MechMachineMan
Advisor
Advisor

Just a quick little tidbit.

 

I'm reading a book called Becoming a better programmer, but am not a programmer. 

 

It suggests avoiding redundancy and keeping things simple and free of loops if possible, so to do a toggle for a boolean property, it suggests using:

 

ThisApplication.OpenDocumentsDisplay = Not ThisApplication.OpenDocumentsDisplay

It also creates less lines of code which means less to debug in the future!

 

Best of luck in your code escapades!

 


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
Message 4 of 4

Curtis_Waguespack
Consultant
Consultant

@MechMachineMan wrote:

Just a quick little tidbit.

 

I'm reading a book called Becoming a better programmer, but am not a programmer. 

 

It suggests avoiding redundancy and keeping things simple and free of loops if possible, so to do a toggle for a boolean property, it suggests using:

 

ThisApplication.OpenDocumentsDisplay = Not ThisApplication.OpenDocumentsDisplay

It also creates less lines of code which means less to debug in the future!

 

Best of luck in your code escapades!

 


Thanks for the tip, Justin!

I just ordered that book (based on your recommendation), so hopefully it'll help me break some bad habits, no promises though. Smiley Wink

EESignature

0 Likes