AutoCAD Inventor :: Using FindUsingPoint To Find Assembly Occurrences

Sep 30, 2013

I'm using FindUsingPoint to find Assembly Occurrences
 
Inventor.SelectionFilterEnum[] filter;filter = new Inventor.SelectionFilterEnum[1] { Inventor.SelectionFilterEnum.kAssemblyOccurrenceFilter };Inventor.AssemblyDocument activeEditAsmDoc;activeEditAsmDoc = (Inventor.AssemblyDocument)inventorapp.ActiveEditDocument;
Inventor.AssemblyComponentDefinition oAsmDef;oAsmDef = activeEditAsmDoc.ComponentDefinition;Inventor.ObjectsEnumerator istDaWas;istDaWas = oAsmDef.FindUsingPoint(oBias2, ref filter, suchRadius, false);

Works fine within a top level Assembly (ActiveDocument == ActiveEditDocument).

While in-place editing a sub assembly calling this code FindUsingPoint throws an "ArgumentException".

(oBias2 and suchRadius are tested)

View 2 Replies


ADVERTISEMENT

AutoCAD Inventor :: Insert Number Of Occurrences In Parent Assembly

Feb 1, 2013

I have an Inventor drawing which contains multiple sheets. One of the sheets is a drawing of the master assembly. Another sheet is a drawing of a part that is in the master assembly. This part shows up multiple times. I'd like to have a text box or something in the part's drawing that I can put: "Quantity: [Quantity]" where [Quantity] is the number of occurances of the part in the master assembly. I've been searching for a while and can't find a way to do this.

View 4 Replies View Related

AutoCAD Inventor :: Find Interior Volume Of Assembly By Subtracting Assembly From Block

Apr 23, 2012

I am trying to find the interior volume of an assembly (when am I not?!?!) by subtracting the assembly from a block that surrounds the most of it.  Somewhere the assembly has a "leak" and I have been trying to use the Cross Section Analysis to track down where the inside lump is connected to the outside lump to be subtracted.  Is there a less time consuming way to dynamically drag a plane across and get cross sectional views?

Even better is there a simple way to animate the analysis plane moving across the block so I can hopefully just watch and pause it when I find a leak?

Inventor 2013 (SP2 Update 2), Windows 7 Professional (64-bit), SP1, Intel Xeon 3.07GHz CPU, 12GB RAM, NVIDIA Quadro 2000, Vault Basic 2013

View 2 Replies View Related

AutoCAD Inventor :: Find Part In Assembly From BOM

Nov 25, 2013

I've created a BOM of parts from a large assembly and it has an item just listed as pt.1.

View 9 Replies View Related

AutoCAD Inventor :: Find Volume Of Parts In An Assembly?

Oct 2, 2013

How do i find the volume of the parts in an assembly?

View 9 Replies View Related

AutoCAD Inventor :: How To Find A Corrupt Ipt Within A Large Ish Assembly

Jul 4, 2012

I have an assembly that has both downloaded parts and self created parts.

The problem I have is that if I isolate and then later undo isolate, Inventor will appear to freeze.  If left for may be 40 mins or so the undo isolate action will have completed.  The progress bar (bottom right hand corner) will freeze on a particular component (I think - the numbers by the side of the progress bar no longer count).

There are maybe 70-80 parts within the assembly and there are no showing errors. Is it possible to identify the 'corrupt' component? So I can replace it.

Computer:- HPz210 16Gb ATI FirePro 5800
 
Snap! Snap! I've Finally Cracked!
---=//////////=---
HP z210 16Gb ATI FirePro5800
Autodesk Produst design Suite 2012

View 9 Replies View Related

AutoCAD Inventor :: How To Find Parts That Start With S In Assembly Using VBA

Sep 3, 2013

how to find parts that start with an "S" in an assembly using vba and show it in the msg box?

View 3 Replies View Related

AutoCAD Inventor :: Run External Rule In Occurrences?

Jan 29, 2013

Is it possible to run an external rule in assembly occurrences?

You have RunRule in Component, But it does not seem to work with external rules

I referenced to occurrences and opened it using ThisApplication.Documents.Open(filepath, False)

Then i tried calling the same external rule. I thought it would run the external rule in the opened file,

but I ended up with a infinite loop on the main assembly.

Is there a way to run your rule in every occurrence with external?

View 2 Replies View Related

AutoCAD Inventor :: Find Excluded Component Patterns In Assembly

Mar 12, 2013

I have an i assembly with some lengthy and unique ilogic to control what parts are included / excluded based on user inputs in a form.  To begin, the program includes all components, and then excludes the ones that aren't needed.  This is basically, briefly what the first part of that looks like:

For Each oCompOcc In oCompDef.Occurrences
i=i+1
'Include all currently excluded components
If oCompOcc.Excluded=True Then
oAssObj=oCompDef.Occurrences.Item(i)
oDoc.SelectSet.Select(oAssObj)
ThisApplication.CommandManager.ControlDefinitions.Item("ExcludeCtxCmd").Execute()InventorVb.DocumentUpdate()
Else
End If
Next
InventorVb.DocumentUpdate()

So this works just fine, mostly.  I run into an issue with the component occurrences that are within patterns (I have 2 patterns - 1 circular and 1 rectangular).  This code will "Include" all occurrences inside an "Excluded" pattern, but the pattern itself remains "Excluded".  In other words, in the browser, the pattern name appears greyed out and crossed out, but all the elements and the components within them appear "alive", so to speak.  But the BOM indicates a Qty. of ZERO for these components since the pattern that.

I can toggle include / exclude of patterns using the same method:

oDoc.SelectSet.Select(oPattern)
ThisApplication.CommandManager.ControlDefinitions.Item("ExcludeCtxCmd").Execute()

But it seems I can't identify which patterns are excluded to start with, like:

If oPattern.Excluded=True Then...

I get an error when I try this.  Is there a way around it?  How can I find and select excluded component patterns in order to toggle them to "Include"?

View 2 Replies View Related

AutoCAD Inventor :: Can't Find Content Center Items In Assembly

Mar 20, 2012

When my colleague opens one of my assembly's which has content center items in it his inventor cannot find them and vice versa. I am assuming my content center items are coming from my hard drive and not a server from the same place as him. How do you set it up so both our computers take content items from the same location?

View 2 Replies View Related

AutoCAD Inventor :: Add Occurrences To Selection (in Drawing Mode)

Oct 8, 2012

I'm dreaming of a Macro to automate the following process that we use every day. We use it to highlight connectors so people can build our product easier.

We manually do the following:

In a drawing view we select a whole set of components (the connectors). Afterwards we change the color to green (using properties) & press hidden lines. This way you can clearly see where you need to place the connectors.

-> see .pdf attached with some pictures making it all clear

I'm being busy to create the code for this but I'm stuck over adding occurrences to a selection set so I can then apply the hidden line command

This is my code so far:

Sub AutoColor()'Step 1 Select a drawing view ' Get the active drawing document. Dim drawDoc As DrawingDocument Set drawDoc = ThisApplication.ActiveDocument ' Have the user select a drawing view. Dim drawView As DrawingView Set drawView = ThisApplication.CommandManager.Pick(kDrawingViewFilter, "Select a drawing view.") Dim docDesc As DocumentDescriptor Set docDesc = drawView.ReferencedDocumentDescriptor ' Verify that the selected drawing view is of an assembly.

[code]....

Step 1 works

Step 3 works

Step 4 & 5 are for a later moment

Step 2 calls the sub "SelectOCC". this sub cycles true the occurrences, I can filter them on file location so I only get the components needed (the connectors). In theory it should be possible to add the given occurrences to the selection set so I can run Step 3 afterwards on it.

But I don't succeed in doing this, I've tried countless of methods but without success.

View 6 Replies View Related

AutoCAD Inventor :: How To Find Cross Section Details In Assembly Level

Jun 27, 2012

How to find the cross section details like area and movement of inertia  at particular cross section

in( solid works there is a direct option select the section and select the face and click on the calculate automatically gives the are and movement of inertia etc in part and sassy level also) but in inventor in part level its possible but in an assembly level.

View 7 Replies View Related

AutoCAD Inventor :: Numbering Similar Occurrences In Drawing Sheet?

Oct 24, 2012

I am writhig a macro to put text ( count number) under each occurrence in an assembly.

I got the Sequence correct and able to place the cnumber un drawing sheet.

But What I need to do is to place that number under consequent occurrence.

find the Image file and you will see wht i am trying to get.

i am icluding the Macro i written as well.

Private Sub RHSnumbering()
Dim oDrawingDoc As DrawingDocument
If ThisApplication.ActiveDocument.DocumentType <> kDrawingDocumentObject Then

[Code].....

View 1 Replies View Related

AutoCAD Inventor :: Huge Delay After Iterating Through Component Occurrences

Jul 27, 2012

My application, writing in C#, exports all vertex-data of parts in an assembly to external files.It uses the surfacebody.getExistingFacets method to do this and shows a progressbar to visualise progress.

The application works fine, only when it is finished, when I zoom in or zoom out in inventor, a huge delay exists before the actual zoom is done. And everytime I scroll the mouse wheel or touch my 3D mouse the delay is there.It's really up to several seconds everytime.

However when I close the assembly and re-open it again immediately after my app finished, these delays are not there anymore.Do I have recalculate something, or do I have to invoke a 'free-something' command ?

View 6 Replies View Related

AutoCAD Inventor :: Find Mass Of A Part At Its Part And Assembly Level

Jul 1, 2013

I have an assembly with 10 parts in it. We use many assembly features at the assembly level (Revolve cut, Extrusion cut..etc). How to find the mass difference of each part by comparing at its parts level and its assembly level.

View 1 Replies View Related

AutoCAD Inventor :: Find Part Which Is Inside Another Part Or Assembly?

Aug 20, 2013

If I want to find part which is inside another part or assembly, which means no matter how I turn camera, I always cannot see that part.

Does inventor has this function? Or is it possible to develope by .NET API?

View 4 Replies View Related

AutoCAD .NET :: Unable To Find Assembly?

Feb 17, 2012

I have a dll which shows simple dialog, which in its constructor reads from a file located in the same folder as the dll, to populate some of the controls in the form, like combo boxes. The assembly works perfectly at local pc, but when I take release copy of the dll and the file at work, I cannot read from the file.

I am able to load the dll with the Netload, but when i start the command it shows - "Unable to find assembly 'Pressurized Pipes, Version=1.0.0.0, Culture=neutral, PublicKey Token=null'. And when I click OK button shows second dialog saying "Unhandled exception has occurred in a component in your application. If you continue, the application will ignore this error and attempt to continue. Invalid Argument=Value of '0' is not  valid for 'SelectedIndex'. Parameter name: SelectedIndex.

Details:

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text ************** System.ArgumentOutOfRangeException: InvalidArgument=Value of '0' is not valid for 'SelectedIndex'. Parameter name: SelectedIndex at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value) at Plumbing_Pipes.Pressurized_Pipes_Form.populatePipeTypeComboBox() at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

It seems to me that I am not able to Deserialize the file and read from the list in the file, which list I use to populate the combobox.

I am using just the name of the file to deserialize it, assuming that the dll will look in the folder where the dll is located.

View 6 Replies View Related

AutoCAD Civil 3D :: Cannot Find Wrapper Assembly

Jul 13, 2011

C3D 2011. 64 bit. sp1 and sp2 installed
windows 7 enterprise 64
csharp 2010 express

no problems referencing managed dot net libraries; already developed some working solutions..now I need to reference the COM libraries..when I try to reference the AEC Base 6.5 Application Library (program files ........ aecxuibase65.tlb) the response is error: cannot find wrapper assembly.I have tried:

1 - the registry edit from the api training session

2 - downloading the object arx sdk and referencing x64 dll's from there

View 9 Replies View Related

AutoCad :: Explode Any Occurrences Of Block With Particular Name?

Dec 6, 2012

This is probably very easy using ssget or something, but I don't know exactly how that works. All I need to do is to explode any occurrences of a block with a particular name.

View 7 Replies View Related

AutoCAD Inventor :: Convert Weldment Assembly Back To Regular Assembly Template

Jun 6, 2012

I am using INV 2012 and I wan to to know a trick how to convert the weldment assembly back to regular assembly template.

View 1 Replies View Related

AutoCAD Inventor :: Creating Separate Assembly Out Of Various Component Parts In Existing Assembly

Jul 10, 2012

I'm looking for the best way to create a separate assembly out of various component parts in an existing assembly so that the whole thing can be placed in an assembly as you would a part, I know it's possible to demote components within an assembly but are there any other methods similar / better ?

View 2 Replies View Related

AutoCAD Inventor :: ILogic Assembly Has Double User Request At Inserting In Assembly

Sep 18, 2012

We have an iLogic assembly with to parts in it. Maybe to cylindrical parts. The iLogic rules should do the following.

1. Start a Rule after open document.

2. This Rule starts a Rule in the first cylindrical component.

3. This Rule ask the user for a diameter.

4. The assembly gives this new parameter value to the second component

5. Then the assembly calls another rule in the second component to change it with the new parameter

Everything is working fine when the following combinations are taking place:

1. I open up the assembly out of vault or from a local drive or an accessible server drive

2. I insert the assembly as sub assembly in another assembly from a local drive or an accessible server drive

It don't work with the following situation:

- I insert the assembly as sub assembly in another assembly out of vault

Then the user becomes the dialog "Choose a diameter" twice.

I don't know why, but I have the idea it has something to do with the functionality of inventor to insert a component more than once. If you insert a component in an assembly Inventor gives you the opportunity to add more than one occurence after each other. 

change that behaviour? Maybe a switch to change that inventor "add more than one occurence" behaviour.

View 1 Replies View Related

AutoCAD Inventor :: Tube And Pipe Assembly Styles Don't Translate Into Other Assembly Files

Feb 9, 2012

I have encountered a problem with the Tube and Pipe styles. 

As you can see, I have a rack assembly with a custom tube and pipe style. A wire as a tube in orange, and a tube support in white. Both have their seperate colorations at a style in the tube and pipe styles editor

When placing the rack assembly into the main assembly, it reverts to the coppor coloration I changed from the original style.

Steps I've taken:

Exported the styles .xml and Imported the styles into the master tubeandpipe.iam 

Imported the user created .xml styles into the main assembly file nothing seems to work

View 8 Replies View Related

AutoCAD Inventor :: Place Assembly Constraints With Parameters From Parts In Assembly?

Oct 30, 2012

it is possible to make a constraint that utilized a parameter of a part within the assembly.

For example, if I wanted to use the thickness of a plate, which I defined in the part, could I call that parameter in a constraint?

View 1 Replies View Related

AutoCAD Inventor :: Make Sub Assembly From Parts From Main Larger Assembly?

Oct 31, 2011

My assembly has grown (about 50 parts) to where I need to consolodate some parts into subassemblies for reuse and alternate iterations of the basic design.

When I import the original parts into a new assembly, all of the constrains I created are not there of course.

I've tried creating a new empty part and then deriving a new part from the assembly, but I can't add, delete or edit any parts.

I looked at using Shrinkwrap, Substitutes, iParts, Multi-body Parts, and Multiple Solids but I remain confused.

In retrospect, maybe I should have created the subassemblies between the part and assembly stage but I didn't.

View 4 Replies View Related

AutoCAD Inventor :: Translate Assembly Component Using ILogic / Offset From Parent Assembly Origin

Nov 9, 2011

I want to be able to control the location/position of a component in an assembly. This is easy enough through the iProperties/Occurrence tab and then adjust the location of the X,Y, and Z offsets. Is this possible using iLogic? I have been unable to find a function to access via iLogic. Ultimately I am trying to translate a component about an axis not a pattern.

View 1 Replies View Related

AutoCAD Inventor :: Saving Assembly Parts As New (sub) Assembly?

Nov 28, 2011

Can I select a bunch of parts in an assembly and say "save these pieces as a new assembly"?

It is just such a needed tool but I cant find an easy way to accomplish this.

View 2 Replies View Related

AutoCAD Inventor :: CoG Needed For Each Sub Assembly In A 2 Part Assembly On An IDW

Oct 3, 2013

I have a two part duct fire damper assembly. The IDW has the combined two part assembly, which I know how to turn the CoG on, so that it can be dimensioned. The problem is each piece will more than likely be hoisted separately so I would like to show the CoG for each piece, not the combined master assy.is there a way to do this?

Inventor 2014
Windows 7 Pro SP1
Intel(R) Core(TM) i7-3770k CPU @ 3.50GHz
16GB RAM
NVIDIA Quadro 4000
3D Connexion SpaceMouse Pro

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Replace All Occurrences Of Character Within A String?

Sep 12, 2011

There is a lisp function to replace all occurrences of a character within a string?

In short, as the Replace command in Visual Basic

For example, to replace all "x" to "*":
"34x59+60x3" -> "34*59+60*3

View 6 Replies View Related

AutoCAD Inventor :: Assembly Within Assembly Detection

Sep 3, 2013

I would like to see if there is a routine that allows my iLogic code to detect if my assembly contains another assembly within it. If my assebly contains assemblies then I don't want "MyRule" to run. Else if it does then I want "MyRule" to run.

View 4 Replies View Related

AutoCAD Inventor :: Two Assembly Positions In One Assembly

Mar 21, 2013

My Assembly has two possible positions for my piston.

I would like to show both piston positions (top and bottom) in one drawing file; however, in different drawing views.

I have tried using LOD and Drawing View Representations, but it is my understanding that neither of these are meant to be used in this way.

View 2 Replies View Related







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