iLogic script to show Master view of the assembly

iLogic script to show Master view of the assembly

Anonymous
Not applicable
664 Views
5 Replies
Message 1 of 6

iLogic script to show Master view of the assembly

Anonymous
Not applicable

Hi, I`m pretty sure most of the guys had same problem, when open an assembly not all parts are shown. To be able to see entire assymbly need to change View representation to Master manually.

Does anyone know how to achieve this in Ilogic?

 

Thanks in advance.

0 Likes
Accepted solutions (1)
665 Views
5 Replies
Replies (5)
Message 2 of 6

jletcher
Advisor
Advisor

When you open the assembly 1st goto options and select master before you open it.

0 Likes
Message 3 of 6

Anonymous
Not applicable

yes, thank you. I knew about this option. Would like to have an iLogic code if such exists to perform this operation automatically.

 

0 Likes
Message 4 of 6

jdkriek
Advisor
Advisor
Accepted solution

Here's the solution in iLogic as requested 😉

 

oApp = ThisApplication
If oApp.ActiveDocument.DocumentType = kAssemblyDocumentObject Then
	oAsmCompDef = oApp.ActiveDocument.ComponentDefinition
		For Each oViewRep In oAsmCompDef.RepresentationsManager.DesignViewRepresentations
			If oViewRep.Name = "Master"  Then
				oViewRep.Activate
				On Error Resume Next
			Else 
			End If
		Next
Else
	MsgBox("Assembly Document Is Not Open")
End If
Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


Message 5 of 6

Anonymous
Not applicable

Awesome! Thanks a lot!!!!

0 Likes
Message 6 of 6

jdkriek
Advisor
Advisor

You're quite welcome!

Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


0 Likes