AutoCAD Inventor :: ILogic To Demote Contents Of Browser Folder
Apr 17, 2013
I'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 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
Working on a product configurator using iLogic and have a large amount of hardware that needs to be suppress or unsuppressed based on certain parameter choices. Instead of creating hundreds of lines of code suppressing and unsuppressing the hardware one by one, I was hoping to put hardware into folders based configurations. In my mind this would have allowed me to have one line that would suppress the folder as needed. Unfortunately I cannot figure how to suppress a folder in iLogic as I saw someone else mention I was hoping for a "Folder.IsActive" rule but have yet to find one.
how to create an iLogic rule that automatically renames the browser nodes based on part number. I know that this is a function in Inventor itself. The problem is that there is no built-in functionality to automatically change the default browser name to something besides part number. I've done a lot of digging and I came across the following code from an old thread discussing Inventor 2011. I am interested in 2013. It is also worth noting that when I run this code, my Inventor crashes.
PrivateSubMain UpdateAssyBrowser(ThisDoc.Document) End Sub
I want my browser name using iLogic particular change to the part number. I fill in my iproperties, the part number. Then the browser name has to take over the part number.
But i get an error.
doc = ThisDoc.Document Dim oCC As ComponentOccurrence For Each oCC In doc.ComponentDefinition.Occurrences OccName = oCC.Name oCC.Name = iProperties.Value("Project", "Part Number") Next
I'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
By the way. To Update the Browser manually, I have to rename the block nodes (From Filename to Filename). So it's only opening up the Renaming Function and then hitting "ok".
If there's no direct function to update the Browser, maybe there's a way to do the manually way by iLogic?
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.
I am looking to apply a set part number iproperty to the first, then second, then third components in the assembly browser tree in my iLogic rule, regardless of their current part number. (I need to select them by their position in the browser tree as their part number will vary). How do I do this?
is it possible to rename the browser node on part level with an iLogic rule? I know that in the assembly environment is an Inventor OOTB functionality to rename the nodes to the filename, Part number or the default value.
Inventor Professional 2011 Windows 7 Enterprise 64bit Dell Precision M4500 Intel(R) Core(TM) i7 CPU Q 820 @ 1.73GHz 8 GB RAM
I want to be able to have All Work Planes set as 'Invisible' but create a Message.box or Icon that allows me to change the Visibility of any individual workplane(s) physically selected in the browser.
A rule written by another member should do the trick if the following line could be altered so as not to read 'For Each' oWorkPlane but instead for 'Each Selected' oWorkplane.
'For Each oWorkPlane In docFile.ComponentDefinition.WorkPlanes'
'get user input oInput = InputRadioBox("Select workplane visibility:", _ "Turn ON workplanes for all components", "Turn OFF workplanes for all components", "False", "iLogic") 'Define the open document (top level assembly) Dim openDoc As Document openDoc = ThisDoc.Document
I have an assembly file for a fan casing. We reuse this model and scale it up and doen depending on the size of fan.
For transportation we split the caing into several parts and join using flanges. The number and angle of splits changes depending on the job and geometry.
To model this we share a sketch through the parts and use the split solid command to split them.
I would like to able to create sub assemblies from the main assembly so that drawings and masses can be obtained for the sub assemblies. However, the 'Demote' command does not allow you pick individual solids from a multi solid part.
I have tried creating new parts from the split solids but these are not in the correct location as they are not constrained correctly.
Is there a way to use the Demote command as I am proposing? or is there a different method to split my parts?
I have a small problem with iLogic forms picture folder. Is there a way of seting the image by the selected tab ?
I want to update the image by the tab selection.
I have tried "if" or "select case" and neither one worked. as I am saying Stair_Properties = True it only makes the tab active. It doesnt indicate if it is selected, here is the code :
Is it possible to automatically divert Inventor to save to a specific folder within the workspace???
If a certain iProperty is set to yes, we want the user to save that file into a particular folder, if they try and save it elsewhere a message is popped up telling them an error has been made please try and save in the correct folder.
Admittedly I am not the most competant iLogic programmer but this is what I have thus far
I am creating a montage. I am wondering how to add all files in a specific folder to new layers without resizing them. I am aware of the automateII function but it resizes the images.
Recently upgraded from CS2 --> CS5 in windows. This issue started with that upgrade. Been using PS for years.In my large PSD files I use folders to logically-group layers. With CS5, when I put layers into a folder, it automatically groups the layers (not links, groups). When trying to move the contents on ONE LAYER in a folder (using the mouse).... it moves ALL the layers in the folder.
If I use the keyboard ARROW keys, I can move the contents of one layer in a folder independently of the other layers in the folder.I have not explicitly asked PS to group or link ANYTHING in my file. The default seems to be to GROUP layers in a folder. It did not used to be this way.
If I UNGROUP the layers in the folder, it deletes the folder and the layers are now all at the root level. I lose my organization.The only way to get around this is either:
(1) leave the folder grouped and use the keyboard arrow keys to move the contents on one layer (way too cumber some), or
(2) MOVE the layer out of the folder, move the contents of it, then move the layer back into the folder.
I 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
Can the items in the Contents Folder (e.g. Frames, pictures, etc.) be opened directly into Photoshop CS6 without first being opened in CorelDRAW X6. I have both programs, and it would be great if I had access to those objects whenever I'm using Photoshop.
We are expanding our OEM range. I am having trouble adding the parts to our Inventor contents center. I have linked parameters like "L1 and L2" to determine the part's size. When I place this part form the contents center I do get Key Columns for L1 and L2.
However, I am only getting one size under each column. I tried setting values to the parameters before publishing the parts, but this made no difference.
We are working with Inventor Professional 2014.Since switching every time we create a bolted connection using content center files inventor will not let you proceed without checking the bolt/washer/nut out from vault.
This causes issues as other operators are constantly out of date.Also we have custom properties created in our files to tally up with our descriptions on drawings.Every time it is checked out it clears the info and creates new version.
I am using Inventor 2013 API for an application that imports Solid bodies and Sketches from Inventor parts.
Observed that when we import sketch entities, the Text object simply returns 4 lines representing its bounding box. What I want to do here, is to get the formated text as a collection of geometric entities. (lines, splines, arcs)
Is there any API available to "explode" text into entities, or may be a cleaner method that simply returns tesselation of formated text?