AutoCAD Inventor :: Replace Bolt Component Occurrence With API?

Feb 22, 2013

is there a way to Replace the "bolt" Component Occurrence with api?

View 2 Replies


ADVERTISEMENT

AutoCAD Inventor :: Bolt Diameter Is Inactive In Bolt Connection Component Generator

Aug 7, 2012

I have some problems with Bolt Connection Component Generator. For placement I choose Concentric, i choose all references, but I can't select Diameter. It is stuck to 10mm and i can't change it.

I am using Inventor Profesional 2013

View 1 Replies View Related

AutoCAD Inventor :: Detecting If Component Occurrence Is Virtual Component

Jul 25, 2012

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]....

View 2 Replies View Related

AutoCAD Inventor :: Trigger Place Component Triad For Any Occurrence

Oct 21, 2013

I love the new triad function when placing a new part in Inventor 2014: I am now searching to trigger the same function for a part that already has been placed. 

Something like:

1) select component

2) press a button (triggers the macro I now want to write)

3) the triad pops up.

I searched true the Inventor Help & what's new in the API. But didn't find any reference to that command. So I am afraid that it is not yet in the API. Could I maybe emulate it by replacing a component with itself using the place component command + emulating a mouseclick at the same origin as the original piece?

So a piece of code like:

1) get filelocation of selected part

2) get the origin point (x,y,z) of the part

3) get the translation between the origin of the assembly and the part

4) delete the selected part

5) place the part using the place component command (so the triad has been triggered)

6) fill in the filelocation, origin & translation

7) give control back to the user so he can move the part using the triad. 

View 3 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 :: Replace File And Modify Occurrence Name

Sep 10, 2012

I need to rename and replace occurences in an assembly, then modify the occurence name.I rename and replace only Farme generator components, which is tested by <condiftion>.What I want to do :

- Num = ABC
- Original filename = toto.ipt
- New filename = ABC_toto.ipt, and Occurence name = ABC_toto

The code :

fileDir contain the file path
docFName contain the original file name (for example, toto.ipt)
Num contain the prefix to add to the name and the occurence name (for example, ABC)
If <condition>Then

                            New_name = fileDir & Num & "_" & docFName
                            Call oFileNameOcc.SaveAs(New_name, True)
                            Call oOccurrence.Replace(New_name, False)
                            oOccurrence.name = Num & "_" & oOccurrence.name
End If

The problem is, the first time I use the macro, the prefix is added twice in the occurence name (the filename is ok) : I obtain ABC_ABC_toto. This happen only the first time, and only on an orrignal Frame Generator assembly.

If I use the macro again, with for example Num = 123, the result is : 123_ABC_ABC_toto.Where is the problem ?

View 7 Replies View Related

AutoCAD Inventor :: Replace Single Occurrence Of Multiple Instances?

Dec 20, 2012

I have a door with 3 of the same handle. I have a program in which the user selects 1 of the handles to turn it into a keyed handle. Now, this all works but the problem is that all of the 3 regular handle instances will be replaced with the keyed handle.

Dim oOccHandle As ComponentOccurrence = oINV.CommandManager.Pick(SelectionFilterEnum.kAssemblyOccurrenceFilter, "Select a door handle to replace.")
oOccHandle.ReferencedDocumentDescriptor.ReferencedFileDescriptor.ReplaceReference(PathToKeyedHandleModel)

View 1 Replies View Related

AutoCAD Inventor :: Component Occurrence In Drawing View To Hidden Line Style?

Jan 5, 2010

Can this be done? I want to go through the DrawingView Object to get at a subcomponent of an assembly and either set that component to have hidden lines (where needed) or no hidden lines.

View 8 Replies View Related

AutoCAD Inventor :: Replace Component Replacing Incorrectly?

Dec 19, 2013

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.

View 4 Replies View Related

AutoCAD Inventor :: Constraint Errors After Performing Replace Component?

Aug 27, 2012

We have just upgraded to inventor 2012 from 2009. I had a simple .ipt created from a 3/8" grade 50 sheetmetal template in an assembly, and decided that it could be 1/4" grade 50. I originally went into the original part and changed the sheet metal default to 1/4". After returning to my assemble and performing a refresh it blew away all my constraints I had on the .ipt after the thickness change. I also tried doing a save as on the ipt then changing the thickness as a new part number and performing a replace component with the same results to my constraints. I've also noticed issues losing constraints by performing simple replace component commands on similar sizes of TS but just changing length. Has something happened to our templates during the migration to the new version of inventor? I don't remember ever having this many issues in 2009 when replacing components of similar geometry with just a different length or thickness.

View 1 Replies View Related

AutoCAD Inventor :: Replace Component Does Not Update The Tree In Browser

Aug 21, 2013

When I try to replace a component in Inventor 2014.  It replaces it but does not update the tree in the browser.  I have to manually delete the part and place a new one in.

View 9 Replies View Related

AutoCAD Inventor :: ILogic Replace Component With Multiple Different Components

Jan 5, 2014

So I have been going round and round in circles on this one iam trying to use replace component within ilogic which is fine with switching one part for another but I want a drop down of parts so it replaces which ever one is active the problem I am having is establishing which one is active. So below is what I have so far but the problem is you cant seem to reference a part that is not in the assembly so I keep getting the error

The component named "Flange 1" was not found for example. I just need a way of establishing which one is currently in the assembly but with out referencing components that are not there.

If Component.IsActive("Flange 1")=True Then current = 1
If Component.IsActive("Flange 2")=True Then current = 2
If Component.IsActive("Flange 3")=True Then current = 3
If part = 1 And current = 2 Then Component.Replace("flange 2", "Flange 1.ipt", True) End If
If part = 1 And current = 3 Then Component.Replace("flange 3", "Flange 1.ipt", True) End If
If part = 2 And current = 1 Then Component.Replace("flange 1", "Flange 2.ipt", True) End If
If part = 2 And current = 3 Then Component.Replace("flange 3", "Flange 2.ipt", True) End If
If part = 3 And current = 1 Then Component.Replace("flange 1", "Flange 3.ipt", True) End If
If part = 3 And current = 2 Then Component.Replace("flange 2", "Flange 3.ipt", True) End If

View 4 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 :: 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 :: Change Length Of Bolt In Bolt Connection

Aug 23, 2012

After I create bolt connection by select the "termination"  and all the fasteners, the length of bolt is fixed. How can I change the length of bolt?

View 1 Replies View Related

AutoCAD Inventor :: Browser Component Names Do Not Change After Replacing Component

Jan 26, 2012

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

View 4 Replies View Related

AutoCAD Inventor :: Using A Solid Component To Cut A Different Component In Assembly

Jan 11, 2013

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.

View 2 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

AutoCAD Inventor :: Export Occurrence IProperties?

May 21, 2013

I would like to export the Current Offset from Parent Assembly Origin values (X Offset, Y Offset, Z Offset, X Angle, Y Angle, Z Angle) for each part in an Assembly.  These values are found in each component's iProperties under the Occurrence tab.

View 9 Replies View Related

AutoCAD Inventor :: Retrieve Values Of An Occurrence?

Feb 12, 2013

I try to retrieve the values of an occurrence in an assembly document, same as when I click on 'Change size' (see the attachment).

I Know how to get key values (from list) from content center family member (Getting data from content center) but for the expression values (from user entries), I found nothing.

View 1 Replies View Related

AutoCAD Inventor :: Design View With Occurrence

Aug 21, 2013

I am working on some codes that let me make some change on visibility of occurrence. So I am I main assembly, and 3 occurrences of the same sub-assembly. The sub assembly was saved on a design view named hole that is hiding some occurrences.

if I work with one of those sub assembly (checkOcc as component occurrence)and then I try this:

                Debug.Print("Occurence name: " + CheckOcc.Name)
                Debug.Print("Is DRV associative: " + CheckOcc.IsAssociativeToDesignViewRepresentation.ToString)
                Debug.Print("The Active DRV is: " + CheckOcc.ActiveDesignViewRepresentation.ToString)
                CheckOcc.SetDesignViewRepresentation("Default")
                Debug.Print("Is DRV associative: " + CheckOcc.IsAssociativeToDesignViewRepresentation.ToString)
                Debug.Print("The Active DRV is: " + CheckOcc.ActiveDesignViewRepresentation.ToString)

The first time I check for the name, the result is empty, but is should hole as it's what I can see in the browser. then I change it to default.The result of that, the representation views disappear from the browser for that occurrence and still, the name is return as empty...then I carry on with turning on the hidden occurrences.

objCol.Add(checkocc)
dv.SetVisibilityOfOccurrences(objCol, visibility)

The result, all the hidden occurrence appear ALSO on the other subassemblies... It look that it's affecting all the Designview of all occurrence of that name...then, if I try the reverse, by turning it off... the switch off on the other occurrences but not the one that is checkoff!!

View 1 Replies View Related

AutoCAD Inventor :: Get Drawing Curves From Occurrence (C#)

Dec 26, 2012

In a drawing I'm looking for components that have a certain iProperty.  If they have the iProperty, I want to turn every occurrence of that item red.

I can get the occurrences fine, but I'm unable to properly get the drawing curves so I can turn them red.  I'm using code from this post on ModTheMachine: [URL]........

Here's my
 
private static void ProcessAssemblyColor(DrawingDocument aDoc, ComponentOccurrences occurrences){ foreach (ComponentOccurrence occ in occurrences) { if (occ.DefinitionDocumentType == DocumentTypeEnum.kPartDocumentObject) { TransientObjects transObjects = StandardAddInServer._mInventorApplication.TransientObjects; LayersEnumerator layers = aDoc.StylesManager.Layers; Layer colorLayer = layers[1]; colorLayer.Color = transObjects.CreateColor(255, 0, 0); //red [code]........

 I've seen some things say I need to use an out object to use DrawingCurves.  If that's true, I'm not sure what to put for the first variable.

object outObject;DrawingCurvesEnumerator drawingCurves = drawView.DrawingCurves[occ.CreateGeometryProxy(whatgoeshere?, out outObject)]; 

View 1 Replies View Related

AutoCAD Inventor :: Occurrence - Specific BOM Properties

Apr 30, 2013

Is it possible to set BOM properties for a specific occurrence of a component, rather than have universal properties for every occurrence of that component in every assembly?

Two instances come to mind:

1. I have two identical occurrences of a part in an assembly. One is already existing at the site, the other we are providing. I want one to show up in the BOM, and not the other. I don't want to have multiple part files to keep up with, as they are identical.

2. Similarly, I have a part that shows up in two assemblies; in one assembly it is existing, in the other it is new. I want it to show up in the BOM for the second assembly, but in the first I want it to be "phantom" or "reference".

View 8 Replies View Related

AutoCAD Inventor :: ILogic - Skip Saving A Suppressed Component / Delete Suppressed Component

Aug 30, 2012

I have an assembly which has a few components suppressed.

My end results is another copy of the assembly (with copies of the all the parts) in another directory

Now i am able to create copies of un-suppressed parts using; (this allows me to SaveAs assembly components which are not suppressed)

DocumentsEnumerator = ThisDoc.Document.AllReferencedDocuments

And save a copy of the assembly using

ThisDoc.Document.SaveAs

I also added the fllowing snippet (which I am not sure what is does), but it does not work for me

Component.SkipDocumentSave = true

 When I open the newly created assembly, I still see the suppressed components in the model browser

I want to either;

Skip saving the of the components in the model browser (i.e. the Assembly)

OR

Delete the suppressed parts in the Assembly, so that they do not save altogether

View 3 Replies View Related

AutoCAD Inventor :: Suppress Certain Pattern Occurrence In ILogic

Feb 22, 2013

How do you suppress a  certain pattern occurence in Ilogic?

View 6 Replies View Related

AutoCAD Inventor :: Suppress Occurrence Of Pattern With ILogic

Sep 8, 2013

Is it possible to suppress an occurrence of a pattern in part environment using iLogic? I saw something for assembly environment, but I can't make it work for part. My iLogic knowledge is quite basic.

View 1 Replies View Related

AutoCAD Inventor :: How To Add Thread To Nut / Bolt

Jul 8, 2012

How to add a Thread to both the Nut & Bolt....i always use the Thread Tool but i would like to also know how to add an actual thread.

View 2 Replies View Related

AutoCAD Inventor :: Suppress Pattern Occurrence Element With Macro Or API?

Sep 7, 2011

I need to be able to suppress individual elements of a circular pattern so I can retain the angular orientation while being able to reduce the number of instances.  I have found how to suppress the entire circular pattern, but can't seem to get the right terminology to access the elements one at a time.

The code I have to suppress the entire pattern is Feature.InventorFeature("Circular Pattern").Suppressed = True.

View 2 Replies View Related

AutoCAD Inventor :: Part Occurrence - Rules Definition Name Have Been Overwritten

Jul 23, 2012

I have several parts that are controlled by ilogic rules linked to member names ,and in some cases some of staff run the productivity bonus tool (rename browser nodes) to either file name or part number.

This causes the rules to fail as rules definition name have been overwritten.

I am after a simple rule that is triggered on save to save my occurrence browser name to what originally was defined

Dim Browsername As String = Plywood 01 

Member names example

Plywood 01
Plywood 02
Plywood 03
Plywood 04

View 6 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 :: 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







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