AutoCAD Inventor :: Changing Positional Representation Of SubAssembly Using ILogic
Oct 11, 2011
The problem
- I have a top level assembly (lets call it '01.iam', which contains a range of subassemblies (e.g. '02.iam', '03.iam' etc)
- The subassemblies have positional representations
- I want to be able to manipulate the pos.rep's from the top level using iLogic.
I found this snippet of code on the forum which works when I create the rule in one of the subassemblies.
I am having problems with creating positional representations. I create simple representations that go from closed to open and when I finish creating the animation I have a position representation called WorkPR1 that overwrites any positional representations I have created. What do I need to do to get my representations to be used or how do I modify the WorkPR1 representation to show what I want?
We are running Inventor 2013 and I am trying to create a simple positional representation of a small assembly. For some reason, the "New" option is grayed out in the positional representation browser.
I can't remember ever having trouble creating them in past releases.....
I'm configuring a band with different supports. Each support is configured with a range; 600-900, 900-1200, 1200-1500 etc. those ranges can be adjust by 50mm and those steps are specified by the pos reps (see attached image).
All the different supports are put in the top assembly and in this assembly I want to switch between the positional representations. I tried to use:
I have received a great solution from Bobvdd allowing ilogic control of the view rep in a part file (not an assembly file). The code below works brilliantly when the part file is the active document. However when the part is placed in an assembly and the ilogic is run with the assembly active, the code produces no result. How to modify the top 6 lines of code?
Dim oApp As Inventor.Application oApp = ThisApplication Dim oDoc As Document
I am using Ilogic to control visibility of a subassembly in a subassembly of my main assembly. It works correctly inside of the subassembly just not from the Main Assembly. If I use IsActive instead it works but I can't use this because the dimensions in the associated drawings lose there attachment points using IsActive. I can change my assembly by removing the middle sub assembly but will require writing a lot more code.
Is there a way to edit constraints inside a subassembly from the main assembly, using ilogic?
I would like to supress a constraint (let's call it mate:8), which is inside a subassembly. When I right click on that constraint, and select "Capture Current State", it inserts Constraint.IsActive("Mate:8") into my iLogic code. However, there is already a mate:8 in my main assembly, so how can I be more specific so that iLogic knows which constraint I am talking about?
Inventor 2014 HP Pavilion dv6t-6b00 Intel Core i7 2670QM AMD Radeon HD 6490M 8gb RAM Windows 7 64 bit 3Dconnexion SpaceExplorer
I've made an stairs assembly that contains adaptive parts that are all controlled by the assembly parameters.
Here is my assembly and the controlling parameters. The stringers on the side are made with the frame generator and use the "extend" feature to get the appropriate length, as driven by the parameters. The reason I used frame generator is so that I can easily change sizes of the stringers down the road, if needed. I chose to make the parts associative so I could control all of the parameters from within the assembly instead of opening each part separately.
My goal now is to be able to use this assembly (or something similar) as a template to create new sets of stairs, all to be placed in the same main assembly.
I attempted to duplicate all of the parts (append a "2" at the end of each file name and replace components in the new set of stairs with the 2nd version) but ran into problems with the two stringers. I can't figure out what to do to get the Frame00001 and Skeleton00001 to reassociate to Frame00002 and Skeleton00002. So any time I change my slope, the original stairs will end up trying to copy the new stringers instead of keeping the old ones.
how can I make this assembly reference a new frame, and secondly?
I have a piece of equipment that changes from 24" to 96" with 5 discrete sizes. I am using ilogic to make all the changes required to the part. Any way that I can change the scale of a drawing using iLogic so that it fits better on my drawing and be adjusted every time. I have multiple pages that most of the drawing views need to be changed every time.
Is there a standard command or command sequence that allows for the changing of a parameter, say length, of a component from within an assembly. I'm looking to compile a code that allows for a template to be created, then that template will do changes based on text box input and then save out the modified parts with new part numbers.
I have set up my assembly file so that it has the master and two other positions. When I switch from position one, to position two, it works fine. But when I go into inventor studio, and try to create an animation by using Pos Reps, it will not do anything.I do sometimes get an error saying that Excel is required. I do have the latest version of Excel installed on my machine.
I have an issue with Shrinkwrap/Derive when using a Positional Rep.Open the derived part and try to change it to the "work" positional rep.Everything appears to work fine in the "master" rep.I have this problem in a few of my assemblies and was able to track it down to the positional rep usage in the derived part.
I'm using 2011 pro. When I try to animate a positional rep in inventor studio, it complains that I don't have excel installed. (see attached image) although I do have it installed. I've put the hotfix on for excel, with no effect. I've repaired inventor and repaired excel no fix though.
When creating positional reps in Inventor 2012 SP1 it rounds them to a 3 place decimal. So If I want the constraint to be at 1.1875 it rounds it to 1.188. Is there anyway to change this to 4 place decimal?
Is there a way to reorder positional representations in the browser. I'd like to keep them in order of how the assembly will function. That way, it's easier to create the animation in Studio. See attached image.
how do i unlock a design view representation when i can't find where it'slocked. I looked in the design view and i don't see a locked version, viewis listed as "none".
I'm working in ancient Inventor 2009 and I'm using view representations for all of my .ipn levels. I've accidentally skipped one step and would like to put it in the middle of the others. Is there a way to re-organize the representations. I've attached a picture. I need to insert a representation above the check marked one.
I am trying to create a representation of 10" diameter insulation that will cover the 3" pipe (the thickest one shown in the attached picture). This pipe has been created using the Tube and Piping environment, so I don't know the best method, if there is one, to do it. I tried doing a sweep using the pipe route's center-line, but ran into complications, I may have not been doing it right. All it really has to be is a visual representation so that I can visually check clearances and for presentation purposes.
I used to use "Level of detail" to hide components etc for detailing purposes. I now use "Representations" among a few customised views, I have a set search for fasteners.
Question: Is there a way to automate the search (Saved search) and then switch off the visibilty of the items? Preferably some iLogic code?
I have to run the search quite a few times during the design/detailing process, and sometimes things slip through the cracks, esp when I change fastners. (Note, All the fastners are extracted from the CC and saved with a new name and details.) It would be great to just run a rule.
Autodesk Product Design Suite Premium 2014 SP1 Build 222 Intel Core i7 (950@3.07GHz) Windows 7x64 (Home) - 12GB Ram Nvidia GeForce GTX 560 Ti (1Gig - Ver:331.65)
I am trying to create an assembly with different representation. let me take a small example and explain. I am trying to create an assembly with say 2part. 1. A circular base plate of 6in dia (An assembly by itself in my case). 2. A plate on top of that say 4in,3in, 4,5in.
in one representation I want to have the base plate and 4in plate on top with say 0.2in holes going all the way through on 1in bore circle.
In another representation I want to use the same base plate with 3in plate on top with 0.2 in holes on 1.5in bore circle. When I am creating an extrusion in one representation view it is still showing on the other representation too.
I want to know if there is a way to turn off the feature (representation wise) so that when i turn on the 4in plate i can see the 4in holes and when i turn on 3in plate i can see the 3in holes.
I don't want to have multiple ipts for the base plate as i am dealing with an assembly for the base plate. the only difference is the locations of the holes for different top plate. I want to create just one top level assembly.
I've looked and saw quite a few messeges on the same topic but couldn't find some good resolve : I'm in an assembly, trying to hide/supress some component, and it keeps saying that the view is locked (I do see "lock" logos on all the views) and I should unlock it or create a new one, which I don't want - I want the changes to be on the main "master" view)
How do I "unlock" or resolve it?Right clicking on the view doesn't give me any option to unlock it..
So after creating a bunch of assemblies with associated presentation and drawing files I was told that each assembly needs multiple representations for different part colors. I would like to be able to change the representation view of my assembly (i.e. from 'Master' to 'Black') in the presentation file I've already made and have the colors update here and in the associated drawing files.
PS - I do know how to change the representation in a new view. So...hindsight 20/20.