Is there a way to map "view reps" to "on/off (true/false) in iLogic?

Is there a way to map "view reps" to "on/off (true/false) in iLogic?

chris
Advisor Advisor
516 Views
4 Replies
Message 1 of 5

Is there a way to map "view reps" to "on/off (true/false) in iLogic?

chris
Advisor
Advisor

Is there a way to map "view reps" to "on/off (true/false) in iLogic? I need/want to add a series of view reps to my form and I can't see any snippet that allows this, and custom coding/VBA/VB is out of my intelligence range. Also, is there a way to map a form to show or not show from a "hotkey/shortcut" ect. (cntrl_alt_f) opens and closes a form?

 

My reason for this is I am running a presentation today and I am minimizing the browsers and tool bars to get more screen space on the TV.

0 Likes
517 Views
4 Replies
Replies (4)
Message 2 of 5

bradeneuropeArthur
Mentor
Mentor
Please explain a bit more in detail what you need or try to achieve.

Thank you

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

0 Likes
Message 3 of 5

MechMachineMan
Advisor
Advisor

@chris wrote:

and custom coding/VBA/VB is out of my intelligence range.


That is false. If you are intelligent enough to use 3D modelling software, you are intelligent enough to learn basic programming. It IS apparently beyond your effort level though.

 

To answer your questions:

 

Yes, you can launch a form. You probably need to use VBA to map a macro to a shortcut. That macro would then call an iLogic rule that simply shows the form.

See this link for instruction on how to do that: https://forums.autodesk.com/t5/inventor-customization/run-external-ilogic-rule-using-macro/m-p/78276...

 

You can also control what view rep is active using the API commands....

 

'View reps:
ThisDoc.Document.ComponentDefintion.RepresentationsManager.DesignViewRepresentations.Item("ViewRepName").activate

'Positional reps:
ThisDoc.Document.ComponentDefintion.RepresentationsManager.PositionalRepresentations.Item("PosRepName").activate

'LOD reps:
ThisDoc.Document.ComponentDefintion.RepresentationsManager.LevelOfDetailRepresentations.Item("PosRepName").activate

 


--------------------------------------
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 5

chris
Advisor
Advisor

well, that may be true, but I was 2 hours before the presentation... so "learning" something was the last thing on my mind. I misunderstood the forums, I thought it was to ask questions and get help, not just to get reminded that we should search the internet and "just learn it", lol

0 Likes
Message 5 of 5

MechMachineMan
Advisor
Advisor

Well, there is a difference between

1. Searching the forums/asking for help when you are stuck AND

2. Trying to get a bunch of work done for free.

 

Usually #1 is the most beneficial because everyone is learning, everyone gets things accomplished quick, and the real problems/tricky issues can get addressed... instead of beating the same question 30 times over because people post without searching the forums first.

 

**blah blah something about this being my own opinion and people definitely have their right to their own opinion and may disagree.


--------------------------------------
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
0 Likes