Origin folder always expanded

Origin folder always expanded

admaiora
Mentor Mentor
930 Views
6 Replies
Message 1 of 7

Origin folder always expanded

admaiora
Mentor
Mentor

Hi,

 

is there  a way a trick  to create  a part and have already expanded the Origin Folder?

 

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

_____________________________________________________________________________
Facebook | Twitter | Youtube

0 Likes
Accepted solutions (2)
931 Views
6 Replies
Replies (6)
Message 2 of 7

mcgyvr
Consultant
Consultant
Accepted solution

Open your part template.

Create a new design view rep.

Activate that design view rep.

Expand the origin folder.

Save the template 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
Message 3 of 7

Curtis_Waguespack
Consultant
Consultant
Accepted solution

Hi @admaiora 

 

I think I'd go with mcgyvr 's suggestion, but the other way to do this would be to place this ilogic rule in your template, and then set an event trigger "New Document" event trigger so that the rule runs when a new file is created from the template file.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

Dim oDoc As Document
oDoc = ThisApplication.ActiveEditDocument

Dim oPane As BrowserPane
oPane = oDoc.BrowserPanes.ActivePane

Dim oDocNode As BrowserNode
oDocNode = oPane.TopNode

Dim oNode As BrowserNode
For Each oNode In oDocNode.BrowserNodes	
	If oNode.FullPath.Contains("Origin") Then
	oNode.Expanded = True
	End If
Next

EESignature

Message 4 of 7

admaiora
Mentor
Mentor

You epic! You genius!

 

Thanks @mcgyvr !!!

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

_____________________________________________________________________________
Facebook | Twitter | Youtube

0 Likes
Message 5 of 7

admaiora
Mentor
Mentor

Thank you @Curtis_Waguespack !

 

You epic and genius too!

 

 

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

_____________________________________________________________________________
Facebook | Twitter | Youtube

0 Likes
Message 6 of 7

leonque
Enthusiast
Enthusiast

Looking on the forum on how to expand origin folder in a selected component in an assembly, I found your interesting code solution addressed to a part template. 

Since my case has to do with large assemblies I would like to know if it would be possible to adapt it for this purpose:

At the time to repetitively place and constraint components at one of their origin planes (against a face, edge or the like from other parts), it is quite annoying to search and expand once and again the origin folder in the browser pane and find the right plane to work with. 

Although is true that once the component is just placed in the assembly, its location in the browser it is always at the lower position, but in large assemblies, it happens quite often that the other half to constraint to, might be a mile away in the browser but on the very nearby at the screen area. 

In this scenario, a rule that would expand the origin folder from the selected component  (usually the one that has more depths/parents on the browser), before launching the constraint menu/options dialogue,  would be a great time saver. 

Since the recently placed component will always be found at the bottom of the pane,  expanding the origin folder of the more hidden component and look there for the right plane, before the constraint menu call, it would save a lot of mouse clicks,  since at the time to make the first selection you would already be placed at the right spot in the plane browser.

 

Thanks in advance.  

 

 

 

0 Likes
Message 7 of 7

Hochenauer
Autodesk
Autodesk

Hi, if you repeatedly constrain components using their origin planes, or specific planar faces to specific origin planes, you could write your own alignment tool using the API. 

Somehing like: first pick a planar face on one component, then pick anything on the second component and align the face to the XY plane of Component2.

 

 



Gerald Hochenauer
Senior Principal Engineer, Inventor
Autodesk, Inc.