This is an example iLogic rule:
Dim doc As AssemblyDocument = ThisDoc.Document Dim occurence As ComponentOccurrence = doc.ComponentDefinition.Occurrences.Item(1) occurence.Edit() MsgBox("The first occurence in your assmbly is now being edited." & " Click on 'ok' to return(exit) from part editing") occurence.ExitEdit(ExitTypeEnum.kExitToTop)
Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Blog: hjalte.nl - github.com
If you mean if its possible to do this from an PartDocument object, Then I don't think it's possible.
Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Blog: hjalte.nl - github.com
Find solution:
Dim aDoc As AssemblyDocument = ThisApplication.ActiveDocument oOcc = aDoc.ComponentDefinition.ActiveOccurrence oOcc.ExitEdit(ExitTypeEnum.kExitToTop)
Thanks for directions!