AutoCAD Inventor :: VBA Code To Get Coordinates Of Each Part Of Assembly

May 9, 2012

I try to develop a vba code to get the coordonates of each part of an assembly and after export them to an excel file.

I build this : 

Public Sub Export_Layout_COG()

If MsgBox("Cette Macro va exporter les coordonnées du COG de chaque layout, continuer ?", vbYesNo) = vbYes Then
Dim RefDoc As Document
Set RefDoc = ThisApplication.ActiveDocument
Refdocdisplayname = RefDoc.DisplayName

[Code]...

The code return an error on the red line, I don't catch why?

View 3 Replies


ADVERTISEMENT

AutoCAD Inventor :: Part Inserted In Assembly File As Tube And Pipe Run Part?

Mar 28, 2012

Dear Sir, In particular project, when I insert part in Assembly file, It is inserted as a Tube & Pipe run part. so that It is not Grounded automatically. What is the settings by which I can insert as a normal part in assembly file ? I have attached herewith the JPG file also.

View 3 Replies View Related

AutoCAD Inventor :: ILogic Rule For Each Part In Assembly To Change Part Parameter

Apr 1, 2013

I`m looking for the iLogic code that can change one parameter (user defined) for each (ipt) part in assembly (iam)

The one below doesn`t work.

Sub Main Dim oApp As Inventor.Application = ThisApplication Dim oAssy As Inventor.AssemblyDocument = oApp.ActiveDocument For Each oSubDoc as Inventor.Document In oAssy.AllReferencedDocuments On Error Resume Next Parameter(oSubDoc, "FH") = 15.26 Next End Sub

View 5 Replies View Related

AutoCAD Inventor :: Simplified Part - Assembly Won't Merge Into One Seamless Part

Dec 11, 2013

I would like to simplify this assembly into one seamless part for FEM calculation:The assembly consists out of parts that, in reality, will be welded together. Due to their form, there is no way to place them exactly onto each other, therefore there are slight gaps between the parts:

Now when I try to merge the assembly into one part via "simplify" --> "create simplified part" and choose "single solid body with seams between planar faces merged", Inventor does not fill these gaps (even though it displays only one part in the bottom right corner of my window). Unfortunately, the remaining gaps brings "contact" problems in the FEM simulation.

how to close the gaps and really merge the assembly into one part?

View 6 Replies View Related

AutoCAD Inventor :: Part Created In Assembly Does Not Update To Part File

Nov 15, 2013

New user 2014

Part created in assembly does not update to part file.

View 9 Replies View Related

AutoCAD Inventor :: Can Part Make Alterations To Other Part When Inserting In Assembly

Mar 29, 2012

I have a part that has protrusions. When i mate that part up to another part that second part needs to have cutouts/holes to receive those protrusions.

i mainly use it in sheetmetal parts. and use the rectangular protrusions on de contour to mate up with corresponding cutouts in the other sheet. this works with positioning and also makes for a nice weld spot/area.

But also for making holes to accommodate a mold pin used in custom punch dies. I want the intervening part to receive a corresponding (propperly tolleranced) hole automatically. Much like a bolted connection does.

same for parts like circlips. i want them to automatically generate the seat in the part it's mated to. Rather than using the axle generator.

Ofcourse one can place the parts and do an in assembly interpart projection and go from there, but i want the part to generate the (predifined) modification to the other part. It would save time and also reduces problems as the parts are moved about or even removed.

View 7 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 :: 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 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 Inventor :: Project Sketch From Part To Another Part In Assembly?

Feb 7, 2013

I can't seem to find how to use the Inventor 2012 API to project an entire sketch profile from one .ipt to another .ipt file from within an .iam file.

i7-2720QM Dell Precision M6600, Win 7 Pro 64-bit, 8GB RAM
Autodesk Product Design Suite Ultimate 2013
Autodesk Vault Professional 2013

View 2 Replies View Related

AutoCAD Inventor :: Mirrored Part Gets New Part Number In Assembly

Dec 3, 2013

Why when I mirror a part in an assembly the mirrored part gets a new part number? I want to mirror only the position of the part which is always the same part. Is it possible to do that in Inventor?

View 7 Replies View Related

AutoCAD Inventor :: VBA Code Not Working For Workplane In Assembly

Oct 15, 2004

I have assembly file in which I have created a work plane "Work Plane19" . Now I wanted to create a new work plane which will be paralle to workplane "WorkPlane19" & offset by 10.5 mm in same assembly document through VBA subroutine. I have tried with following code but getting error,

Public Sub NewWorkPlaneCreate()
Dim oAssly As AssemblyDocument
Set oAssly = ThisApplication.ActiveDocument

[Code].....

View 6 Replies View Related

AutoCAD Inventor :: VBA Code To Calculate Interferences Between All Parts Of Assembly

Mar 6, 2012

I want to make a vba code to calculate the Interferences between all parts of an Assembly.

First I modify all holes with thread. Next with de CommandManager I Launch the AssemblyAnalyzeInterferenceCmd. And finaly I modify all holes with thread back.

My question is :

How to wait until the AssemblyAnalyzeInterferenceCmd is finished to continue the code.

Sub Interferences()
 Call BeforeAnalyzeInterference
    ThisApplication.CommandManager.ControlDefinitions.Item("AssemblyAnalyzeInterferenceCmd").Execute
 Call AfterAnalyzeInterference
End Sub

View 4 Replies View Related

AutoCAD Inventor :: X / Y And Z Coordinates Out To Text File From Part

Feb 22, 2012

Is it possible to pull out the x,y,z coordinates to text file from a inventor part. I am aware about this that it maybe need some programming but what kind of programming Language is the best to use ? is it possible to use the build in programming Language called Ilogic? Or is it better to use some .net? At my work we use PDMS to do plant modelling and we want to use inventor for modelling the machines and doing the workshop drawings ect. And we want to be able to take the inventor part coordinates and transfer them to PDMS because it can model the machines just by coordinates taken from a text fil. 

View 1 Replies View Related

AutoCAD Inventor :: Save A Part With ANSYS Code?

Dec 3, 2011

I have build a solid in inventor. I want to optimize the model in ANSYS, so I need the ANSYS code of the geometry.  If I import a file into ANSYS (i´m importing .SAT and  x_t parasolid) the geometry code does not show.

how can I save a part in inventor with ANSYS code, or any way to convert any CAD format to ANSYS code?

View 1 Replies View Related

AutoCAD Inventor :: Code To Create Virtual Part?

Aug 16, 2013

code example of how in .iam create a virtual part and save it separately in specific folder?

View 3 Replies View Related

AutoCAD Inventor :: Export Center Of Gravity Coordinates (X Y Z) From Assembly To Excel Sheet

May 8, 2012

I'm trying to build a VBA code in inventor 2010 to export the Center of gravity coordinates (X,Y,Z) from an inventor assembly to an excel sheet.

But I'm not able to get the iproperties for the COG from my assembly.

View 1 Replies View Related

AutoCAD Inventor :: ILogic Code To Check File Name Matches Part Present In Drawing

Feb 15, 2013

At my company we use part numbers as file names for everything. for example, part number 09090P00100000, will be saved as 09090P00100000.ipt and will have a drawing saved as 09090P00100000.idw.

Within the drawing template file, i want to set up an ilogic rule that will check that the part present in the drawing corresponds to the file name of the drawing. This rule will run after saving and will just display a warning if the file names do not correspond.

I just need some code that will get the file name of the part displayed in the drawing.  Note that we use iparts so the code must get the member file name and not the factory file name.

Dim oDrawingDoc As DrawingDocument
oDrawingDoc = ThisApplication.ActiveDocument  
Dim oSheet As Sheet   
oSheet = oDrawingDoc.ActiveSheet

[Code] ........

Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit

View 8 Replies View Related

AutoCAD Inventor :: Get Assembly Name From Part?

May 8, 2013

I am in Inventor customization using VB.net as development language. 

There is one issue which is troubling me from some time. 

Is it possible to identify the name of parent  assembly of part/sub-assembly.

For Instance there is a Sub-Assembly/Part, how can i identify the parent assembly using VB.net without opening that assembly.

View 7 Replies View Related

AutoCAD .NET :: Matching Coordinates Of Template File To Code

Feb 7, 2012

 I specify a template when I open a new auotocad file and drawi  some shapes in autocad with c#.

the problem is the coordinates that I use to draw shapes does not match the template file and therefore the shapes are misplaced.(I am using centimeters for my code).

how can I change the coordinate of the template file to match my code coordinate?

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 :: Replace Assembly With Part

Oct 6, 2012

I am capturing a book-case design that I made long ago into Intentor.  I am almost finished, and I want to produce .dwg files and a bill of materials of parts that can be held.

For various reasons, almost all the items in the existing design are assemblies, and the underlying parts correspond more or less to half of physical parts that are contained inside a repeating cell.  I will almost certainly continue using this approach.

A simplified design that shows this is at [URL]..... in the file Display.iam

I created the file Slat.ipt by using derive (Slat.iam).

If I replace the Slat assemblies with the file Slat.ipt, the bill of materials will show parts that correspond to physical parts that I can hold in my hand, or list on an invoice.  I can do this with many, many mouse operations.

To make this modification quickly, I attempted to do Component -> replace on the Slat assembly.  I use this operation a lot to replace one version of an assembly with another.  When I do it with a .ipt file, the system pauses for some tens of seconds, then crashes.

A brute force work around is to use the mouse to do the replacement, essentially rebuilding the entire project in place.

View 1 Replies View Related

AutoCAD Inventor :: Placement Of A Part In Assembly?

Sep 27, 2013

When i create a part in an assembly, i select a plane or face with the cursor, but then i select again a plane for the sketch.

Why this double selection, and what does the first selection do, if the part is actually sketched on the plane i selected in the second time.

View 8 Replies View Related

AutoCAD Inventor :: New Part Or Assembly Numbering?

May 28, 2013

Normally you start with new models/assemblies/and drawings when you use the templates the naming by default  is part1.ipt, assembly1.iam,  drawing1.idw

I am currently at part431.ipt and assemby57.iam

I am concerned I may eventually reach part1000.ipt  LOL

Currently using Inventor2012.

View 6 Replies View Related

AutoCAD Inventor :: Transparent Part For An Assembly

Aug 1, 2013

as you can see from the image, the blue cone isnt transparent. i set the material properties to "clear blue" to make it "see through", i want to show whats under the cone. however the cone isnt transparent. how can i get the cone to be transparent? is there a step im missing?

View 7 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 :: Part Colours In An Assembly

Sep 14, 2012

I have a part that is inserted in an assembly. If I change the color of certain portions of the part it isn't reflected in the assembly.

View 5 Replies View Related

AutoCAD Inventor :: Edit Part In Assembly

Mar 26, 2012

I have written a program where i will copy inventor assembly tree to custom form in tree format. Now my problem is whenever i click a part in tree i must edit the part. I am trying to access the Fx parameter/IAssembly to use it but not getting desired results .

View 8 Replies View Related

AutoCAD Inventor :: How To Use Part Parameters In An Assembly

Jul 30, 2012

I need to use parameters of a part in an assembly. How to do this? Do i need to define a rule? How is this done?

Can i do it without using an Excel sheet as a parameter source for both the assembly and the part? The target is to have inventor update an array of assets as soon as the width of a part is changed whether in Excel or in the Factory properties of the asset.

View 5 Replies View Related

AutoCAD Inventor :: Rotating Part In Assembly

Aug 29, 2013

I have an assebly where i have imported parts and other assemblies. Unfortunatly during process of assigning them together they have rotated by various angles.Is it possible to somehow "reset" the rotation of part according to global xyz?

View 3 Replies View Related

AutoCAD Inventor :: Assembly UCS To Part UCS Constraint

May 16, 2013

My need is to assembly parts into an assembly by a known position in the assembly. The part has a UCS and I create  UCS on the assembly programatically. What I cannot do is to constrain the two UCS. I tried this (Inventor 2013 x64 on W7/W8 64, c++ 2010 by the way DEBUG mode is not working from the IDE):

       CAssemblyComponentDefinition compDef = doc.get_ComponentDefinition();
       // MOdules UCS
       CUserCoordinateSystems coords = compDef.get_UserCoordinateSystems();
       CTransientGeometry geom = m_InventorApp.get_TransientGeometry();
                    CMatrix matrix = geom.CreateMatrix();
[code]...

View 3 Replies View Related







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