Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
How to hide the first part in an assembly with VBA?Hide the part pointed by the arrow in the picture。
Solved! Go to Solution.
How to hide the first part in an assembly with VBA?Hide the part pointed by the arrow in the picture。
Solved! Go to Solution.
Public Sub main() Dim a As AssemblyDocument Set a = ThisApplication.ActiveDocument Dim b As AssemblyComponentDefinition Set b = a.ComponentDefinition b.Occurrences.Item(1).Visible = False End Sub
for ilogic
Public Sub main() Dim a As AssemblyDocument a = ThisApplication.ActiveDocument Dim b As AssemblyComponentDefinition b = a.ComponentDefinition 'Dim c As Occurrence b.Occurrences.Item(1).Visible = False End Sub
Regards,
Arthur Knoors
Autodesk Affiliations & Links:
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 !
beware,
if that part is not first placement 😄 (user have edit with Ground command)