AutoCAD Inventor :: How To Sort Parts Inside Browser Folder
Nov 17, 2012Alpha sort in assembly bonus tool sorts outside browser folder. Is there any method (API) to sort inside browser folder?
View 3 RepliesAlpha sort in assembly bonus tool sorts outside browser folder. Is there any method (API) to sort inside browser folder?
View 3 RepliesI am trying to use the Browsernode.addchild method to add an occurence to an empty browser folder. The code fails at this point and I gett an error pointing to the line "Call oTargetNode.AddChild(oSourceNodeDef)". I can add the occurence with the browserpanes.Reorder method without issue if the folder is not empty. The code is pasted Below.
Format:HTML Format Version:1.0 StartHTML: 165 EndHTML: 29338 StartFragment: 314 EndFragment: 29306 StartSelection: 314 EndSelection: 314
SyntaxEditor Code Snippet
DimPrcsTpAsStringPrcsTp=InputListBox("Process Type?", MultiValue.List("ProcessType"), Parameter("ProcessType"), Title :="Select Process Type", ListName :="Process Type")DimRtgNameAsStringRtgName=PrcsTp&"-"&Parameter("NoRtgsInc")+1MessageBox.Show(RtgName, "Title",MessageBoxButtons.OKCancel)DimoAsmAsAssemblyDocument=ThisDoc.DocumentDimoMatrixAsMatrix=ThisApplication.TransientGeometry.CreateMatrixDimoOccAsComponentOccurrenceoOcc=oAsm.ComponentDefinition.Occurrences.AddVirtual(RtgName, oMatrix)DimoCompDefVirtualAsVirtualComponentDefinition=oOcc.Definition'CREATE AND SET THE
[code]....
Im working on something just now but ran into a problem when a new sheet is added after one that is excluded from count.
What i need is to re sort the sheets in the browser so the excluded ones go to the end. Im thinking i would need to loop through the browser nodes somehow but the skills elude me.
Is the alpha sort function available trough API ? It's located in Assembly tab, Productivity tools. I'd like to use it in a custom program instead of asking my customer to click on the button.
View 2 Replies View RelatedI have got some ilogic code that i have patched together to sort my parts list in inventor which works great but it will not update all sheets at the same time as when we design we have multiple sheets with parts list on and the odd one without.
add to this code to update all sheets partlists and also recognise that some sheets will not have partslists on so this will need to skip.
below is code that is used to sort
Format:HTML Format Version:1.0 StartHTML: 165 EndHTML: 4558 StartFragment: 314 EndFragment: 4526 StartSelection: 314 EndSelection: 314
SyntaxEditor Code Snippet
Format:HTML Format Version:1.0 StartHTML: 165 EndHTML: 4558 StartFragment: 314 EndFragment: 4526 StartSelection: 314 EndSelection: 314
[Code] ...........
I need to sort the BOM (structured) while avoiding three parts. So I attempted manually locking the three parts in the BOM through the user interface and then running the following code
' Set a reference to the assembly document. ' This assumes an assembly document is active. Dim oDoc As AssemblyDocument oDoc = ThisApplication.ActiveDocument
' Set a reference to the BOM Dim oBOM As BOM oBOM = oDoc.ComponentDefinition.BOM
' Make sure that the structured view is enabled. 'Set a reference to the "Structured" BOMView Dim oBOMView As BOMView oBOMView = oBOM.BOMViews.Item("Structured")
'The following line works correctly Call oBOMView.Sort("Part Number",True) 'Re-Number the BOM Call oBOMView.Renumber(3, 1) 'Re-Sort Items 'Call oBOMView.Sort("Item",True)
The above code is bits and pieces that I have combined from the internet. The only problem with it is that sort works fine on some files while on others it skips a few e.g. 1,2,5,6,7......
Is there any way we can sort the BOM while avoiding all the locked parts.
I've created a new library, in the appearance browser and then a category inside called mesh. Somehow I cannot edit the appearance of what I've called Flatex338... I can add it to the current document and then edit it, but cannot edit the original or 'master' appearance.
I'm struggling with the changeover to 2013 with this appearance and materials. Downloaded a document on it from Autodesk but it's only about 30% useful.
I am trying to suppress browser folders per the API with no luck is this even possible. I would also like to control its BOM Structure.
View 1 Replies View Relatedhow can I make a folder in the browser in the part modeling and put something like extrude,revolve & ... in the folder? (not in the assembly)
View 1 Replies View Relatedis it possible to change browser folder icon?
View 7 Replies View RelatedI'm using the following sample code to add files to a browser folder
Public Sub AddOccurrencesToFolder()
Dim oDoc As AssemblyDocument Set oDoc = ThisApplication.ActiveDocument
Dim oDef As AssemblyComponentDefinition Set oDef = oDoc.ComponentDefinition
Dim oPane As BrowserPane Set oPane = oDoc.BrowserPanes.ActivePane
[Code]....
How do I get the files added to an existing " My Occurrence Folder" rather than creating a new one. Every time I run the code a new folder is created, it does not use the exisitng one
how to turn this feature on? We recently upgraded from Inventor 2011 to 2014 and now this feature has been disabled. The attachment shows that visibility has been greyed out.
View 2 Replies View RelatedIn Inventor 2012 I could grab any part (except patterns of course) and move it anywhere into folders, out of folder, up down, wherever, till my hearts content. But in 2013 sometimes it lets me, sometimes it does not. Sometimes I select a group of parts and when I try to put them into a new folder it will place most of them in it tell me the others are not allowed to be moved? I must stress that these are NOT patterned parts, but stuff I have moved around for at least the last 2 versions of the software. Why in 2013 can I not do this as easily or at all in some cases? Is there a new check box checked by default I can't find? I have tried switching the browser between modeling and assembly view and sometimes it works and sometimes it does not.
It does this with both content center and non content center parts.
Inventor 2013 sp1.1
In my Inventor .idw browser my parts have a green arrow next to them but I can't seem do anything with them, I think they might be a refresh icon .
View 2 Replies View RelatedWhen copying an iam + ipn, and making some changes, the browser suddently shows far too many parts or assemblies ?
Is there a way to "update" the browser?
Is there a setting or something somewhere that turns off/on the display of the origin folder? I have rebooted and restarted Inventor. For some reason, I can't get see the folder. Even when I edit a part, it is not there. See attached images.
View 5 Replies View RelatedI'm trying to create an ilogic rule that will look within the folders of an assembly and take the contents of each of those folders and demote them to separate sub-assemblies.
ie. Assembly1 contains NewFolder 1. NewFolder 1 contains Part1:1 and Part2:1. Upon executing the ilogic rule, I would like Assembly1 to contain NewFolder 1 and within NewFolder 1, Assembly1-01. Assembly1-01 contains Part1:1 and Part2:1. I would like this ilogic rule to look within each successive folder within Assembly1 and demote them according to their position in the browser such that NewFolder 1 - at the top of the browser list - contains Assembly-01, NewFolder 2 contains Assembly-02, etc.
I currently copy a master assembly with browser folders that contain parts and sub-assemblies to a secondary assembly where I manually demote the contents of the folders to sub-assemblies. When I create a drawing for our machine assembly department, the demoted sub-assemblies to isolate only those parts - nuts, bolts and the pieces they fit to - so it is easier for the assembly department when putting a machine together.
Is it possible, using ilogic, to demote folder contents to sub-assemblies with an assembly document?
I have a section view of an assembly. The parts of the assembly that are completely remove via the section no longer show up in the browser. Is there a way to make them show back up in the browser and/or section view? They are internal to the assembly and I would like them not sectioned/removed from the view.
View 3 Replies View RelatedI have an assembly model which I have `save copy as` to create a new assembly (80% parts the same). I have opened my new assembly and deleted/replaced parts and assemblies that I do not require.
One (released) assembly I have deleted is still showing listed in the vault browser (not in model browser). It is not in the model, is not revealed by `find in window`, is not listed in the bill of materials. If I close my assembly and reopen it is still listed there.
This has now occured in two assemblies. I have never experienced this before in many years of use. We recently upgraded to Inv 2011 and VM Pro 2011 and I'm wondering if there is a connection.
Some parts properties of one project has partially or completely grey in browser.
Nothing special had happened prior to this problem. It happened with some absolutely irregular and not systematic affection as like a fallen and broken ink bottle makes something completely colored and some other stuff just partially and some not.
I mean some parts properties are completely grey and some have just several grey properties while some other are not affected (see video link)
It is a permanent bug and seems it belongs to the part itself since the reloading Inventor and windows and Task Scheduler attempts to fix it - all gray colors stay exactly where they were before and in same irregularity. Opening the affected parts in other project gave the same result as in original one.
[URL]
When I suppress a part or a sub-assembly in Inventor 2013 and then right click on the suppressed item in the browser window I always get an cadabundus error message (see attachment), after I press OK I get the normal right click menu hovering over the item.
I have Inventor 2013 RTM 64 bit Build 138, and running on Vista 64bit.
I am having some trouble with this quick VBA app, I want a utility that can traverse all the parts in a top level assembly and suppress the link to each derived part (multiple) in all the parts in the assembly.
I have played with the following
Public Sub SuppressLink()
Dim partdoc As PartDocument
Set partdoc = ThisApplication.ActiveDocument
partdoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents.Item(1).SuppressLinkToFile = True
End Sub
Which works, but only on one part file, and only on the first derived part. Is there any easy way to make this work on ALL the dervived links and every single part inside an assembly?
How to copy an IAM & several parts to another folder (I created a new project folder for them) using DA without messing up the original file structure. I'd like to change the new IAM file name & only several of the parts that are not common to the original (Stand alone environment, no network).
View 5 Replies View RelatedWhen I drag parts in the browser to a folder I created half the time they end up just above. I always wait for the folder to highlight blue before dropping but why don't part go there as requested all the time?
Is this a step up on my station, precision of the cursor? My colleagues don't seem to have this problem but we can't see any differences in our step up except I use a different mouse.
I have a script that is perfectly works in 2012 inventor pro version. It moves newly added virtual parts into the VIRTUAL_PARTS folder. Part of script is below:
Dim oFolder As BrowserFolder Dim oTopNode As BrowserNode oTopNode = oPane.TopNode() Dim oTopNodeOcc As BrowserFoldersEnumerator oTopNodeOcc = oTopNode.BrowserFolders For Each oFolder In oTopNode.BrowserFolders i = i + 1 Next If i = 0 Then oFolder = oPane.AddBrowserFolder("VIRTUAL_PARTS", oOccurrenceNodes) Else For Each oFolder In oTopNode.BrowserFolders If oFolder.Name = "VIRTUAL_PARTS" Then For Each oOcc In oAsmCompDef.Occurrences If TypeOf oOcc.Definition Is VirtualComponentDefinition Then oNode = oPane.GetBrowserNodeFromObject(oOcc) End If 'MsgBox(oTopNodeOcc(1).Name) oTopNodeOcc(1).Add(oNode) Next Else ' do nothing End If Next End If
In 2014 pro it works only once, when I add first virtual part. It creates a folder and moves it there. When I add 2nd virtual part it gives me a error
see screenshot below.
I often want to copy a design (assembly plus used parts) to some other folder as a quick start for some derived work. I want to be able to work on this copy without influencing the original and visa versa.
The problem is when copying with the windows copy command, the references to the parts point to the original folder. I read that you can use the Copy feature of the Vault for this. But I'm not using the Vault and don't want to.
Pack and Go is also not a good solution because it copies a lot of other stuff and makes a new project file. How can I do this. It seems so a simple operation. But I can not figure out how to do that!
how to copy parts from the existing CC to newly created custom folders within the CC. We are now just starting to look into which parts we want to be in our custom folders moving forward.
Once we copy them over, the plan is to change the descriptions and possibly some dimension values. Because we are in the early stages of revamping our companies part number scheme the thought was to keep the out of the box P/N's currently showing in the family table of these parts. Some of these parts have already been used as "Standard" (not custom) from out of the box in the CC and these said parts have already been checked into the vault. If we are not changing the part numbers in the copied parts family table, is this going to create errors when checking these copied parts into the vault? Part of me is saying I am going to get the "This part already exists in the Vault" error message being they are standard parts But, the other part of me says technically they are different so maybe this wont be an issue. I am looking for confirmation of this.
I also would like to know if it is possible, when you have two separate custom folders in the CC can you copy the same component into both folders changing only slight things.
Inventor Suite 2012
Windows 7 Professional
Intel (R) Xeon (R) CPU 3.47 GHz
12.0 GB Memory, 64 bit OS
There are many examples of creating rectangular patterns, but not many, if any, of interrogating existing patterns.I have attached the files and a screenshot of a rectangular part inside an assembly. The part contains a rectangular pattern of holes and workplanes.how do I get hold of each proxy of the workplane in the pattern?In other words I don't know what to put in the for loop at the end of this code fragment:
If _invApp.Documents.Count = 0 Then MsgBox("Need to open an the assembly document") ReturnEnd If If _invApp.ActiveDocument.DocumentType <> DocumentTypeEnum.kAssemblyDocumentObject Then MsgBox("Need to have an Assembly document active") ReturnEnd If Dim asmDoc As Assembly Document asmDoc = _invApp.ActiveDocument Dim asmDef As AssemblyComponentDefinition asmDef = asmDoc.ComponentDefinition im occurrences As ComponentOccurrencesoccurrences.
[code]....
Within my InventorAddin in vb.net we are trying to force users to a particular folder when they save 3D Parts, Drawings etc.
This 'SaveAs' form does indeed fire, but after the 'Inventor' own 'SaveAs' form window. Can we suppress 'Inventors' window or even change that so it points to our preferred location.?
If we do not do this we are goinf to have 3D Drawings in the Parts folder etc etc.
PrivateSub applicationEvents_OnSaveDocument(DocumentObject As Inventor._Document, BeforeOrAfter As Inventor.EventTimingEnum, Context As Inventor.NameValueMap, ByRef HandlingCode As Inventor.HandlingCodeEnum) Handles applicationEvents.OnSaveDocument
If iApplication.ActiveEditDocument.FileSaveCounter = 0 Then
[Code].....
How may I best reuse a legacy assemlby and it's drawing to create/update to an vairant assembly?
View 3 Replies View RelatedI opened the drawing and then from the drawing opened the model. In the drawing it is showing the 4th instance of ROUND CRS-032175 X 33 as an assembly. It also is not showing in the view and yet the visibility is checked. AI2012 SP2
View 1 Replies View Related