Autodesk Inventor Customization
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Editing a component in an assembly.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I'm working on an iLogic application for an assembly. I need some code to edit a particular component occurrence and then open one of that component's iLogic forms.
Basically automating the keystrokes that I'm doing manually (Select, right-click and edit, then open the iLogic formfor that part).
Do I have to scroll thru all occurrences in the browser or is there a way to call that component by name?
Solved! Go to Solution.
Re: Editing a component in an assembly.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Re: Editing a component in an assembly.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
DocOpen = ThisApplication.Documents.Open("Component Name Here", True)
The true at the end sets this document as the active one
Cheers
Mitch
Re: Editing a component in an assembly.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
DocOpen = ThisApplication.Documents.Open("Component Path and File Name Here", True)
Re: Editing a component in an assembly.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Wont that code just open the part file in a new window?
I want to edit the component from with in the assembly file.
(Select component , right click and select edit)
Re: Editing a component in an assembly.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Ok sorry, I did not realize you wanted to edit within the assembly. I only assumed you wanted to edit the part. In that case I am unsure
Mitch
Re: Editing a component in an assembly.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Figured it out
DimoAssyDocAsAssemblyDocument=ThisApplication.ActiveDocument DimoAssyCompDefAsComponentDefinition=oAssyDoc.ComponentDefinition DimoCompOccAsComponentOccurrence=oAssyCompDef.Occurrences.ItemByName("V-BLOCK:1") oCompOcc.Edit
