how to affect the visiability of a assembly sketch in an assembly with iLogic

how to affect the visiability of a assembly sketch in an assembly with iLogic

chris
Advisor Advisor
299 Views
1 Reply
Message 1 of 2

how to affect the visiability of a assembly sketch in an assembly with iLogic

chris
Advisor
Advisor

Okay, I am setting up a assembly model of a field layout for a presentation. I know how to suppress parts of features of parts with iLogic, but I have a created a few "assembly" sketches that I would like to have check boxes for in my form... but I don't see any snippet that would let me "Make active" an assembly sketch? Is this possible?

0 Likes
300 Views
1 Reply
Reply (1)
Message 2 of 2

MechMachineMan
Advisor
Advisor

When you start delving beyond things that are easily done in the iLogic functionality, it usually means it's time to familiarize yourself with the programming help file.

 

http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-AA811AF0-2494-4574-8C43-4C22E608252F

 

Start at the top (application) and work your way down to the object you are looking for via guess and check.

 

You can use the object model as a 'cheat' to try and quickly find the relevant object.

https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/simplecontent/content/au...

 

ie; You know sketches are going to be in the document object, so check the document object first and look for any method/property that could be related to the sketch object in some way.

 

 

 

ThisDoc.Document.ComponentDefintion.Sketches.Item("SketchName").Visible = False

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