My office procedures dictate that when we place a content center part that we do so "as custom" for several reasons that are irrelevant to this question (I can expound if needed).
My question is: If I have an assembly with a content center part that is placed "as custom" and I use the component replace tool (CTRL+h) to replace it with another content center part that has already been created and placed "as custom" in another file, how come I get a new CC component that is not the one I selected?
It appears that I am getting a CC part from the same family as the original when what I need is the component to be replaced with the one I am selecting.
In other words: when I say replace "this" with "that", how come I get something else entirely? This functionality works perfectly on non-CC parts.
We are having an issue when we replace a component in Inventor Pro 2012. When we replace a component, the name in the browser does not update to the new component. We've even tried to close and re-open the Inventor assembly and that does not work. We end up manual double clicking the name in the browser and type in the new component name.
Inventor Product Design Suite Ultimate 2012 Dell Precision T7500 Workstation Xeon Processor 16 GB of RAM Nvidia Quadro FX 5800 Windows 7 x64
I have an assembly with two similar items in it and have written code to replace the component based on a given selection. If I try to change item one, nothing happens. If I change items two, it changes both item two as well as item one. In the attached screenshot item one should have a full cover panel and item two should be open; however, they are both the same. I have stabilized the browser by changing the names to "Leg One:1" and Leg Two:1) and the components that are being replaced are standard assemblies to be replaces with other standard assemblies.
I have geometry not updating after replacing a component in an assembly.
I have drawn part A and in the assembly environment I have projected cut edges on a XY Plane in a 2D Sketch.
After replacing component A in the assembly with part B (not identical but very close) i was expecting the projected geometry to update. But it doesn't. The "local update" button is greyed out in assembly mode. also the Rebuild command does not seem to update the projected geometry.
I can see the new 3d shape and the old projected geometry. How to get the projected geometry to update?
II need a way to tell if a component occurence is a virtual component.
I'm using a For Each loop to cycle through all of the components in an assembly, and if the component is itself an assembly to set the LOD to "Custom". I'm using the definition document descriptor object for this. It all woks fine until the loop comes across a virtual component which doesn't have a definition document, so I need a way to check if the component is virtual and needs to be skipped.Here's the
Option ExplicitImports Inventor.LevelOfDetailEnumSub MainiLogicVb.UpdateWhenDone = TrueDim doc As AssemblyDocumentDim oLOD As LevelOfDetailRepresentationDim oAsmCompDef As ComponentDefinitionDim oComp As ComponentOccurrenceDim oComps As ComponentOccurrencesdoc = ThisDoc.DocumentIf. [code]....
I am trying to make port rims for pipes that can be swapped in and out of an assembly. However, the ports will all be different sizes and located differently so I need the cut to be part of the port rim component, but affect the entire assembly it is part of. I've been trying to get this to work for the better part of a day now,Here's a picture of what im talking about. I'm running Inventor 2008 by the way.
I cannot find why Design Assistant dont want me to use the replace command. i attached a picture.I have a 30 pages idw and i just need to replace one thing in it. I don't believe I need to redo the whole thing just for fews differents dimensions..
You're code is definitley a great starting point, and will most likely save me a ton of time!
I am currently diving into a small project which should save a lot of time for designers in the end if it pans out.
Issue being resolved:
We use the Vault and have a ton of machines that get re-used from time to time through the Copy Design method. There's obviously some changes that are made from job to job, but the big issue is changing a machine from an Imperial to Metric one. This is the time (and mind) consuming process I'm looking to shorten.
What I have:
Currently I have a code (few tweaks needed but it works) that is run from an upper assembly. This code then cycles through each and every sub assembly and part that exists within it. As it cycles through, it checks for hole features which are tapped, and if it finds one of these instances, changes the thread from Imperial to Metric according to a Hard Coded set of values.
Current Dilema:
What's the point of changing the holes if the designer has to go through the assembly to change the bolts and fasteners anyways?
I've practiced a bit with your code and been able to replace items, the issue is everything must be hard coded in order to do so. My question is:
Is there a way to get the Family from the Part Occurence / Document / Anything related?
I've looked through the API, but have only found that everything related to the Content Center.... is only accessable through the Content Center, and nothing else.
For Example, yes I am able to tell if a part has come from the content center (ie. PartComponentDefinition.IsContentMember), but that's as far as it goes, just a simple Boolean.
There MUST be a way to find out some sort of Content Center information from the direct Part / other related documents. I've looked at the "Replace Content Center Part Sample" provided in the API, but this example hard codes the ContentTreeViewPath as well.
In the end, I don't quite understand the point of hard coding this path with no way to access it through the Part Document. This only creates the need for constant manual change and / or MANY rules to compensate each and every family.
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?
We are using Tube and Pipe with custom valves, flanges etc published to and taken from Content Center. Quite frequently we have to mock up a vendor supplied valve until we get the final model from them (usually near the end of the project) the mocked up valves can change in design over the course of the project, which means submitting and re-submitting different versions of valve with a slightly different name each time.
To try and keep things tidy (and prevent confusion with other users) I've tried to delete existing families and replace again with the same name, but Inventor T&P/CC won't allow this, and usually get the error message about family name already existing.
How can I truly delete the family and have no trace left on CC/Vault/working folders etc? Is there a workflow I should be aware of for such a task?
Is there a way to use iLogic to replicate the old-school method of replacing drawing references? (ie, where you'd temporarily rename the originally referenced file, open the drawing, and then point it to the new file after Inventor says it can't find the original)
Longer version:
I have an iLogic configurator that manipulates skeletal models, copies them out as new files, and swaps them into template drawings. The original skeletal model can be configured in several different ways (different features, surfaces, etc), so I have several template drawings set up for each model depending on the configuration.
The problem that I'm encountering involves the order in which the drawing is loaded and then has its references replaced. When first opened, the drawing loads the original skeletal model which doesn't have all the geometry of the "new" model for which the particular template drawing was intended. This makes most of my section and detail view constraints go belly-up. After subsequently replacing the model references with the "new" model with the correct geometry, the section and detail view constraints fail to resolve themselves, and my once-perfect detail drawing is ruined.
If I instead force the drawing to open with the new model from the git-go (via the workaround discussed above), everything loads perfectly. However, I haven't yet found a way to handle this automatically with iLogic.
FWIW, I am currently using the following code in a subroutine:
I have an iLogic controlled assembly with sub assemblies that are also iLogic controlled. The main assembly calculates some lengths and turns some subs on and off and then updates all the subs. The subs also calculate some lengths and turn some parts on and off. I have a rule in both the main assembly and copies in the subs that control the LOD to make sure that it's set to custom before anything else runs.
Now I may be misunderstanding something, but it appears that it's possible to have a sub assembly set to one LOD but be referenced in a top level assembly as a different LOD. In other words I have a sub that shows in the top level browser as Master. If I open this sub and set it from within the sub to custom LOD and switch back to the top level assembly it is still set to master there. It appears that this is what my LOD rule is also doing, setting it to custom in the sub but not changing the top level reference.
What I am trying to do is insert a part into an assembly file using iLogic. I basically want to mimic Inventor’s “Place” command using ilogic, maybe something like this:
When we do DWG we may have more than one Assembly on one individual DWG. When going to put the weights on the DWG through the text/Physical Property insert yadayada it keeps referring back to the original assembly. Even after changing which component we want the info to be drawn from, it refers back to the original? Are we not doing this right? Program glitch?
I have an assembly which has components mated to a radial surface, I need to locate the center of a round slot against an axis, I have X Y coordinates, how can I constrain that part to those X Y coordinates?
To be able to folderize component patterns seems to have been surpassed once again in release 2012. However, I am wondering if this is a setting issue yet I cannot find settings for what can and cannot be placed in folders, if they exist. And I wonder if it is a setting issue because during a training class I visibly watched the trainer place component patterns into a folder and once I still cannot do so.
How to apply forces to a component who is spinning. More specific i am interested in the centrifugal loads distributed over the component.
Take an inducer wheel for a turbocharger. It is a complicated component and very difficult to calculate by hand. it is spinning with high revs, and the rev limit it set by the centrifugal forces acting.
I have a sheetmetal assembly with helical shaped parts. I need to place about 50 little brackets and some corresponding rollers along the length of these helical pieces. The spacing is even so a pattern would be perfect, except I don't know how to get it to follow the shape of the part. The brackets are located to slots in the helical parts which were made with a rectangular pattern in the unfolded state. I tried to do a "feature pattern select" but it only saw the rectangular pattern as it is in the unfolded state (a straight line). I then gave up on patterns and started working on manually mating them into place but realized that the geometry of the slot was distorted (theory) and didn't leave me with any useable surfaces.
I've just upgraded from 2011 to 2013 and come across this problem.
In 2011 I could edit a component from the top level anywhere in the tree - i.e. From an iLogic rule in the top level, I could edit a component in a subassembly.
This doesn't seem to work in 2013 - I can only edit the first child of a component.
I have a component pattern with 3 components in it and I need to remove one of the components from the pattern. How can I modify the pattern through the API? I have tried various things but I do not appear to be able to change the pattern.
I'm working on an iLogic application for an assembly. I need some code to edit a particular component occurrence and then open one of that component's iLogic forms.
Basically automating the keystrokes that I'm doing manually (Select, right-click and edit, then open the iLogic form for that part). Do I have to scroll through all occurrences in the browser or is there a way to call that component by name?
I tried to import an stl file into inventor 2013 and it worked. I now have that ipt file that I ahve attached to this thread. The only problem is that now I cannot manipulate my solid (i.e. put holes in it).
I have an ipt A and its dwg. I have an ipt B that is the derivative and mirrored ( I use derive command whit flag on mirror part) component from ipt A.
Is there a way to not create the dwg of B ex novo? I have the same dwg but I have to re dimension all.
I was wondering if there is a way to bend a derived componet. I have an odd extruded part and would like to cut and bend it. I want to do it this way so I can also include the cut length before bend. I know of frame generator, but am not able to use it since if falls out of the structure of how our files are saved.
I'd like to set up a keyboard shortcut so that when I press the 'V' key, inventor toggles the visibility of the selected part or assembly. However, "Visibility" seems to be about the only command that doesn't exist in the list of keyboard shortcuts*. I found this post in which someone says it's not possible, but might be using VBA. I've done some iLogic but know nothing about Inventor's inner-working VBA. I'm wondering if there's some workaround, VBA or otherwise, that'll allow me to toggle visibility using the 'V' key.
*actually it does but it says it's only available for use in Inventor Studio. Go figure.
Using: Autodesk Inventor 2013 Product Design Suite