AutoCAD Inventor :: Change IPart Occurrence Color In Assembly

Feb 22, 2013

This one work:

If L(i) = 1 Then oOcc.RenderStyle = _invApp.ActiveDocument.RenderStyles.Item("Red")
If L(i) = 2 Then oOcc.RenderStyle = _invApp.ActiveDocument.RenderStyles.Item("Yellow")

 But I want to change like this and it not work:

Lcolor(1)="Red"Lcolor(2)="Yellow"L(2)=1L(1)=2for i=1 to 2oOcc.RenderStyle = _invApp.ActiveDocument.RenderStyles.Item(Lcolor(L(i)))next

 What's wrong?

View 2 Replies


ADVERTISEMENT

AutoCAD Inventor :: Change Parameters In Part Occurrence Inside Assembly

Sep 5, 2013

I have an assembly which contains a CComPtr<ComponentOccurrence> pThisCompOcc , and I'd like to do two things.
 
Get the name of the "base" object, not the display name of the occurence Change the model and user parameter values of the occurrence I suspect that I need to find the function or method which gives me a CComPtr<PartComponentDefinition> pPartCompDef which the occurrence points to for the Q1, but what about Q2?

Presumably the parameters are associated with the Component Occurrence and the "real" name is associated with the Part Component Definition?

View 6 Replies View Related

AutoCAD Inventor :: Part In Assembly - Change To IPart Workflow

Oct 31, 2011

I have a part that occurs nine times in an assembly. These were all the same parts before but now I need to make them table driven iParts in order to add a custom iProperty that changes to make them all different. They are all the same except for this on iProperty field that changes.I can create the iPart no problem. My questions are:

1.) Should I just open the part file and make it an iPart?

2.) Do I need to replace the files in the assembly somehow?

3.) I would assume that I can just edit the file to make it an iPart and then use some kind of "change component" right click to select which one goes where right?

4.) Is there some other workflow I should be using?

View 5 Replies View Related

AutoCAD Inventor :: Change The Parameters Of A Custom Ipart Inserted Into An Assembly?

Sep 10, 2013

Is it possible to change the parameters of a custom ipart in an assembly after it has been inserted, or can I only do an insert using AddCustomiPartMember?

In that case I simply remove the previous occurrence and insert a new one I suppose?

View 1 Replies View Related

AutoCAD Inventor :: Adding IParts To Assembly From File With Occurrence X / Y And Z

Dec 4, 2013

I am trying to add instances of an ipart to an assembly automatically from an excel file and need to be able to specify the occurrence x, y, and z positions.  Since the Inventor version is so old I have not been able to find the proper documentation.

View 1 Replies View Related

AutoCAD Inventor :: ILogic Assembly Component Occurrence Definition?

Sep 28, 2012

I have a simple code below trying to iterate through all the assembly component and copy the iProperties > Occurrece Name (i.e. "Part1:1") and paste it to iProperties > Project tab > Part Number field for each individual part in assembly.

' set a reference to the assembly component definintion.
' This assumes an assembly document is open.
Dim oAsmCompDef As AssemblyComponentDefinition
oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition

'Iterate through all of the occurrences
Dim oOccurrence As ComponentOccurrence
For Each oOccurrence In oAsmCompDef.Occurrences
Dim oName As String
oName = oOccurrence.Name
iProperties.Value(oOccurrence.Name, "Project", "Part Number") = oName
MessageBox.Show(oOccurrence.Name, "iLogic")
Next 

The Debug message shows the correct output for every iteration, but when I check each part's properties they all have the Occurrence Name of the last part in the aseembly.

View 4 Replies View Related

AutoCAD Inventor :: How To Get Whether An Occurrence In A Assembly Is Of Content Centre (kContentCenterObject)

Sep 20, 2011

How to get whether an occurence in a assembly is of content centre (kContentCenterObject) ?

View 1 Replies View Related

AutoCAD Inventor :: How To Transform Occurrence To Match Another Occurrence's UCS

Aug 9, 2012

Basically I want to place parts and have them automatically connect to each other based on pre-existing UCSs on the assemblies.  I have a 'ucs_in' and a 'ucs_out' on each assembly.  I want the inserted component to perform a transformation to make the new occurrence's ucs_in to "mate" to the previous occurrences ucs_out.  By mate I mean their center points are at the same location and all axes are pointing in the same direction.  I have included screenshots to show what I'm working with and what I am trying to accomplish.  I have also attached the project files.

Below is my attempt at the code to do this.  My experience with transformations is limited so I may be way off from where I need to be.
 
Sub UcsMate() Dim doc As AssemblyDocument Set doc = ThisApplication.ActiveDocument 'assuming both occurrences are already in the assembly and both have 2 UCS, "ucs_in" and "ucs_out" Dim occ1 As ComponentOccurrence Dim

[Code]....

View 3 Replies View Related

AutoCAD Inventor :: Assembly Cut Color Change?

Nov 1, 2013

I am using Inventor 2014.  I have an assembly where one parts has to be trimmed after assembly.  When I do the cut in assembly, the part turns to a different color (black). My current view rep in assembly is Default.

View 2 Replies View Related

AutoCAD Inventor :: Color Of Part In Assembly Not Change

Jun 6, 2013

My part color is yellow. In the assembly It shows as gray.

I cant seem to get it to change to match the part color. I used to know why this happens and knew how to fix it but seem to have forgot. How do you get this to work?

I also recently loaded 2014, but had the same problem with 2013, so its not a release issue.

View 4 Replies View Related

AutoCAD Inventor :: Change Color Of A Face In Assembly

Jan 9, 2013

There are instances where we need to add an extrusion in an assembly (.iam) to show labeling that needs to be done on the floor during assembly.

So we do a new sketch to the face where we need to add the "label", we use text and extrude it 0.001" deep (cut).

On the drawing (.idw) you can see it no problem, but in the model (.iam) itself it's hard to see since the faces that result from the extrusion are the same color as the participant part.

My question is this:  Is it possible to change the color of the face of the extrusion?

It's not super important but it would be a good thing to show that detail as we sometimes print a color version of the 3D view for prototyping, troubleshooting, etc.

View 9 Replies View Related

AutoCAD Inventor :: Occurrence Visibility Of Sub Occurrence

Aug 22, 2013

From a main assembly I am trying to change the visibility of occurence that are in a sub assembly. But everytime I change the visibility using the designviewrepresentation.setvisibilityofoccurrences(), that change the visibility of those occurrences in the other sub-assembly. Of course, if I do it thought the interface that works great. Anyone did something with changing visibility of sub component.

View 1 Replies View Related

AutoCAD Inventor :: Place IPart Into Assembly

Mar 29, 2012

After I place an iPart into an assembly, how can I change from one configuration to another?

View 1 Replies View Related

AutoCAD Inventor :: IPart UCS Visible In Assembly?

Jan 9, 2014

I know how to get the "work features" to show up in the assembly however, I would like to to be able to utilize the UCS if possible. When I try to use the iPart Author to select the Work Features the UCS doesn't show up.

View 3 Replies View Related

AutoCAD Inventor :: Changing IPart In Assembly

Jul 8, 2011

First off I am running:

Windows 7 pro - SP 1 (x64)
Processor Intel(R) Core(TM) 2 Duo Pro CPU E7600 @ 3.06 GHz 3.07
GHz
RAM = 8GB
Autodesk Inventor 2012 Ultimate Design Suite

I have an assembly with a couple of parts in. Some of these parts are IParts (NOT Content Centre parts), and they live in my project workspace.

In some case I am able (within the assembly) to right click on the table icon below the part in the assembly tree and change the component to a different configuration. However, I other case I am not able to change.

In the cases where I cannot change, when I right click, IV does not even present the option to "change component".

I am not sure if this will affect the situation or not, but some of the parts were inserted into the assembly as IParts, whereas others were not IParts, but I changes them to IParts after they were inserted into the assembly. I am not sure which ones were inserted as IParts and which weren't, but perhaps this is an issue. i.e. parts that were inserted as IParts originally can be changed, but those that were not IParts when inserted and later converted cannot be changed?

View 5 Replies View Related

AutoCAD Inventor :: Using IPart In Assembly (250mm Length)

Nov 15, 2012

I created a inventor part by name "011-03-054-A-25x50 HS" 100mm in length. Used "011-03-054-A-25x50 HS" in a assembly and used the same part in another assembly. Then I created a ipart  with a different length which is 250mm. Now I want to use 250mm length in the second assembly. How do I doit? I couldn't find an answer any where. I am using Autodesk Inventor 2013 in windows 7.

This was called configrations in Solidworks and was very easy to use.

View 2 Replies View Related

AutoCAD Inventor :: IPart Assembly Constraint Loss - BLOWS UP

Jan 18, 2012

I've got a relatively simple assembly (attached) containing 3 iparts.  I change the center component the assembly and I lose all the constraints.  Only the length changes, I'm sure I did this before but yet it turns out to be an epic disaster. 

View 1 Replies View Related

AutoCAD Inventor :: ILogic To Change Feature Occurrence Upon Opening Part By User

Jul 9, 2013

I downloaded a model off a website, it is, (excuse my electrical background ignorance) a jumper for terminal blocks.Our electricians use these and cut them down to size as needed.

Is there a way to use iLogic and a form or message box, to prompt upon opening the part as to how many jumpers are needed for the current assembly> It comes stock with 10, but they sometimes only use 2, 3 4 etc. etc..

I didn't model the part, but I can if it will make the rule easier to write.My idea I suppose was to have the part modeled with 2 jumpers and then use ilogic to create more if necessary.

View 4 Replies View Related

AutoCAD Inventor :: Manage IPart Configurations Inside Assembly Table?

Apr 17, 2013

Basically I need to have 2 configurations of an assembly. These assemblies are identical except there is one part that will vary within them. Eventually I would like to be able to drive an assembly with multiple part configurations and suppressing and unsuppressing of parts from a table however this is my starting spot.

View 2 Replies View Related

AutoCAD Inventor :: IPart Creation In Sheet Metal And Placing In Assembly?

Nov 28, 2012

I have created the Sheet Metal part wtih negative flange value. Ipart is creating the parts. but unable to use in assembly

View 1 Replies View Related

AutoCAD Inventor :: IPart Will Not Change

Apr 9, 2013

I've made a component pattern in an assembly using an iPart.  The iPart as several different lengths, but I cannot switch lengths in the assembly.  In other assemblies, right clicking on the Table icon allows me to change lengths, but this assembly will not.

View 2 Replies View Related

AutoCAD Inventor :: Using ILogic To Change An IPart Row?

Oct 25, 2012

I have a sheet metal part that I converted into an iPart and I set up different rows with different sheet metal styles. What I want to do is run an iLogic code to change to a specific row which in turn would change the actual material of that sheet metal part....I've tried the snippet iPart.ChangeRow but cannot get it to run the code. I'm not sure if I'm not doing something right or what...

Inventor 2014, Windows 7, 64 bit

View 9 Replies View Related

AutoCAD Inventor :: Change File Name Column In IPart Table?

Jul 25, 2013

We are using Inventor and Vault pro 2013.

I have an iPart in which I want to change the File Name Column from "Member" to "Part Number". These columns are not the same and makes the filenames for the members different when generated.

The challenge is that I already have about 100 members generated and used in different assemblies. I want these to be replaced by the new files and be deleted.

If I change the File Name Column I will get 100 new files (ipart members) that is not used anywhere. The only way I know of to replace the 100 "old" members is to do this in Vault - one by one..

View 4 Replies View Related

AutoCAD Inventor :: Change Active IPart With ILogic Form

Jul 29, 2013

I have an Ipart I would like to have a Ilogic form to change the active Ipart. I tried iPart.ChangeRow but I did something wrong and it doesn't work.

View 2 Replies View Related

AutoCAD Inventor :: Assembly Color Changed To One Color

Feb 21, 2013

I am working on an assembly file with some different color components, the color of each component is set to AS MATERIEL. But suddenly the assembly color was changed to one color only, which is the same color as one of the component. I clicked each part, the color is still set to AS MATERIAL.  I even can not undo it to change the color back.

And from now on, any part was placed to this assembly is changed to assembly one color. Inventor 2012 under Win 7 system. 

View 8 Replies View Related

AutoCAD Inventor :: Change Member IPart Member In Drawing View?

Jan 8, 2014

In Inventor 2013 it was easily to switch in a drawing view between different iPart members. Through Edit view => Tab Model State and then it was possible to switch between different iPart members. So it was easy to make a copy in the Vault from only the dwg (from a iPart member) and then change the iPart member. Now in Inventor 2014 it is not possible anymore.

View 1 Replies View Related

AutoCAD Inventor :: Change Part Within Assembly

Oct 1, 2013

I have an assembly of  stair made from steel. There are lots of part the same. Is there a way to make a hole (inside assembly) to one and that hole would appear on all of them.

And another problem, how can I made cut (inside assembly) through more then one part so that would affect a part also when I open it alone.

View 9 Replies View Related

AutoCAD Inventor :: Change Axes Of An Assembly

Sep 30, 2013

Can i change the direction and orientation of the origin axes in an assembly with some parts?

View 5 Replies View Related

AutoCAD Inventor :: Change Assembly Colors

Jan 20, 2012

What's the best way to do this?

1. Model parts in steel using metal-steel color.
2. Create assembly from parts.
3. Leave metal-steel as default view.
4. Create new view rep with assembly colored blue.

There are two ways I can do this:

A. Create new view rep "Blue".

B. Select all parts and apply blue color at assembly level. View rep associations are broken.

OR

D. Create new view reps in each part "Blue" and make the part blue in that view rep.
E. Create assembly view rep "Blue" and apply part "Blue" view reps. View rep associations are kept.
A-B is quick but dirty, although in Default view the associations will be kept.

D-E can be tedious in large assemblies.

Is there a quicker way to change color but keep associations?

View 6 Replies View Related

AutoCAD Inventor :: When Change DWG In Assembly File To IDW - Can't See Anything

Jul 30, 2013

I attach a assembly file.

In front view,  I can see all elevation drawing (DWG file)

but, when import this file to IDW sheet,  I can't anything . I can look at 3D object section only.

View 1 Replies View Related

AutoCAD Inventor :: How To Get Orientation Angle Of Occurrence Using VBA

Nov 6, 2012

how to get the orientation angle of an occurrence using VBA?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved