AutoCAD Inventor :: Access Assembly Features Through ILogic

Nov 19, 2012

I'm now having an issue accessing the features in an assembly, the error message is attached and the following is the relative code.

The error line is between the 2 Test Messages:

'Create a Component Definition relative to the Part Document

Dim oFeature As Features
Dim oAssembly As AssemblyDocument
oAssembly = oCompOcc.Definition.Document
MsgBox("Test 1")

'Cycle through all features in the Part
For Each oFeature In oAssembly.ComponentDefinition.Features
MsgBox("Test 2")

View 3 Replies


ADVERTISEMENT

AutoCAD Inventor :: Access Sketches And Features Information

Jun 23, 2012

- when modelling a part file in Inventor, only the dimensions we set (dimensions we give a name and a value), are listed in the parameters table. This way, its possible to export the information listed in that table. 

- the information listed in the parameters table is based on sketches and features dimensions, as obvious.

So , my question is: is it possible to access the information (dimension values) contained in a feature (or a sketch) without setting a specific name or value to it?

For example, in the attached pictures, if a rectangular form is drawn and the dimensions are sett, these will be listed in the parameters table (see attached  "pic1" and "pic1 - params").

But, in the other hand, if the same rectangular form is drawn, but this time without setting any dimension, the parameters table will be empty, obviously (see attached  "pic2").

After this, i can surely presume that Inventor saves or keeps this information somehow, somewhere, without having to set dimensions or values.

So, my question is: is it possible to access sketches and/or features information without setting this values?

View 6 Replies View Related

AutoCAD Inventor :: Features On And Off With ILogic?

Oct 19, 2012

I want different features on and off with iLogic.

I have a text parameter with a choice menu of 1,2, and 3

This I want some features  on and off.

If I pass the parameter I get a message: No feature found with the name. Mvg Jos

Your drawings are only as good as the symbols that complete them...

View 9 Replies View Related

AutoCAD Inventor :: Deleting Features Using ILogic

Aug 2, 2012

I am working on a standard part that has different configurations depending on user inputs into a GUI. Once the user enters all the required parameters, the part is in its final form with all unnecessary features suppressed. I am looking for a way to automate the delete of the suppressed features using a rule and i Logic before the user saves the file.

The main reason for doing this is to reduce the file size of the part once it is saved because this same template will be used for hundreds of parts and I don't want to waste unnecessary storage space on suppressed features.

View 7 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 :: 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 :: ILogic FOR Loop To Unsuppress Features

Sep 10, 2013

I am currently designing a heat exchanger and want to adjust the number of water channel using iLogic. The number of channels to be active is based on the channel dimensions, and is calculated in my excel spreadsheet, but up to a maximum of 19. This is stored in the parameter "no_channel". Each channel is a seperate feature (extrusion) and named from "Channel 1" though "Channel 19".

My idea of doing this automation was to have iLogic suppress all the features, and then doing a closed loop to unsuppres the features I want active:
 
Feature.IsActive("Channel 1") = FalseFeature.IsActive("Channel 2") = False...Feature.IsActive("Channel 19") = FalseFor i = 1 To no_channelFeature.IsActive("Channel"(i)) = TrueNext
 
However, this gives me the following error:

Error in rule: Number of channels, in document: Radiator fin side.ipt

Feature.IsActive: No feature found with the name: "h".

View 2 Replies View Related

AutoCAD Inventor :: Possible To Suppress All Part Features Using ILogic?

Jul 20, 2012

I have a couple of dozen features in my part, of which only one will be active at any time. The feature tree may be subject to additions, so I am looking for an ilogic rule that will first suppress all of the features in the part, and then switch on the specific feature I require (using a parameter). Any code to suppress ALL features?

View 9 Replies View Related

AutoCAD Inventor :: Suppress Assembly Features In Drawing?

Mar 8, 2005

Is it possible to suppress an assembly feature in a drawing view?We make some components in an assembly oversized and then do a final machine step after welding or brazing. We show the completed assembly in the drawing but would like to see the assembly prior to machining in some views.If I suppress the machining features in the model it affects all views. Can we suppress the features in just one view?

View 6 Replies View Related

AutoCAD Inventor :: Accessing Features From A Part In An Assembly

Aug 22, 2012

I'm crating a macro wich would allow me to select multiple parts in an assembly and then calculate the length of each part. The parts are tubes wich are made of a sinlge sweep.

I started from the example truesweeplength, and built from there.

Now my problem is accessing the sweepfeature from the assembly.

In the part enviroment i use this:

Dim oDoc As PartDocument
Dim oDef As PartComponentDefinition
Dim osweepcount As Long  
Set oDoc = ThisApplication.ActiveDocument
Set oDef = oDoc.ComponentDefinition
osweepcount = oDef.Features.SweepFeatures.Count

The sweepcount is simply to check how many sweep features are in the part.

This works fine in part level.Now from assembly level I first create an obecjtcollection from all the parts I selected

Set oOccurrences = ThisApplication.TransientObjects.CreateObjectCollection

Then I try to acces the first occurence

oDoc.SelectSet.Item(1)

But then I'm stuck. I cant find the way to acess the features of the selected part.

View 6 Replies View Related

AutoCAD Inventor :: How To Use ILogic Rule To Delete Rules And Features In Other Parts

Aug 10, 2012

I made an Part with iLogic rules, let's call it "iLogicPart". The rules inside could create lot of different part by my input.

I want save the different parts to different name as "Part 1", "Part 2", etc. I used SaveAs to get them.

My question is: I want to delete all rules and parameters in the saved parts as "Part 1", "Part 2". And I have lot of features (the name is hard to track) which are inactive, I want to delete them at same time too.

I could manually do so, but I want to use rule to do so automatically.

View 9 Replies View Related

AutoCAD Inventor :: Passing Down Assembly Features To Part Level

Dec 11, 2012

How do you save features added in an assembly to the part? For example, if I add a hole in an assembly, presently I cannot see it when I open the part. It seems like a very basic function, I'm not sure why it doesn't do it automatically.

View 6 Replies View Related

AutoCAD Inventor :: IAssemblies - Assembly Hole Features Not Updating?

Dec 17, 2013

I have made an iAssembly with a main body and flanges attached to the body.

Assembly feature holes have been created act on the main body, and these holes are relative to the position of the flange.

When I change the factory member - the position of the flange changes, but the holes stay in the last location and so the model is wrong.

The only way to overcome this error, is if I go to the Manage tab and manually select 'Rebuild All'.

I need this to work automatically as drawings are generated wrong when changing model state. 

My intention is that this will be used in an iLogic routine, linked to an external sales package.

View 4 Replies View Related

AutoCAD Inventor :: Single Composite Derived Assembly / I Features

Jun 24, 2012

I've derived an assembly into a part file. On inserting an i feature, Why can't I select a face of the single composite body?

You can create a sketch on a face, but not insert an i feature on a face.

View 9 Replies View Related

AutoCAD Inventor :: Adding Part To Frame Generator With ILogic Rules For Features

Jul 17, 2013

I have a wire trough that we typically use on all our units. Instead of modelling each trough as it's own separate part to length, I would like to add this part to frame generator for tracking there cut lengths etc...

A few items, there is two sizes that we use, but for now I will work with just one.

I have modeled the part and renamed the important parameters.

-WIDTH - stays the same

-HEIGHT - stays the same

-LENGTH - adjusted by frame generator

-RIBS - the part has 6 currently, but there is a rib added for every 1/2 inch. it is a rectangular pattern

-SLOTS - will be added to the trough every 2 inches of length, it is a rectangular pattern

-SLOT_DISTANCE - is 2 inches and never changes, if the trough is cut on a slot, which ever is easiest, to show half a slot or none, doesn't matter, this is just for a visual and BOM reference

I found a video that shows me how to publish parts to FG, but I am stuck for the iLogic part. Part attached.

Inventor Professional 2014-Update 2 - AutoCAD Electrical 2014
Win7-x64 | ASUS P8Z77-V | i7 3770 -3.4 GHz | 32GB RAM |
240GB SSD | nVidia GTX 670 4GB - 320.49

View 6 Replies View Related

AutoCAD Inventor :: Auto Snap To Features When Designing Parts In Assembly?

Aug 27, 2012

I recently started working with Inventor (Solidworks user for 15 years).  When designing new parts in an assembly in Solidworks, there was always an auto snap feature to align parts (centerline, midpoint, etc).  I cant seem to find this option in Inventor 2013.  Im trying to design new parts in an assembly but cant seem to snap to any other existing parts features or centerlines.  Is there a quick way to activate this option?  Is it even available in Inventor?

View 2 Replies View Related

AutoCAD Inventor :: ILogic Access To Filename IProperty

Oct 13, 2011

I am trying to use the iProperties.Value("part1", "Summary", "iProperty") function to get the filename or complete filepath of a component within a subassembly. I know that these iProperties exist because I can insert them onto a drawing, and I see them in the general tab of the iProperty window.

However, when I try something like:

filename = iProperties.Value("part1", "General", "Filename")

I get an error message indicating that the General tab can't be found. How might I go about getting this filename iProperty, or is there an easier way?

View 4 Replies View Related

AutoCAD Inventor :: Access Application Options Through ILogic?

Feb 10, 2012

I am new to iLogic and trying to access the "Application Options" under the "Tools" tab. I am trying to grab some information from a couple of fields but it seems that I don't have the right coding or Snippets that indicate how I would do so.

View 3 Replies View Related

AutoCAD Inventor :: Getting Data From Access Database Using ILogic

Aug 2, 2010

I have a program that populates an access database with part parameters. Each Inventor part can look up its own parameter values from the database when supplied with a single parameter, the ID number of the database record. The ID number is derived from a blank part that the program also updates. So in a nut shell, the program populates the blank part's parameters with all database ID numbers that would make up entire assembly. Those parameter values are derived to all the parts in an assembly. This is by far the fastest most efficient way I've found to rapidly generate an entire assembly. In a matter of seconds I can have a new 1000+ part assembly.

 The rumor that Inventor will eventually sever ties with VBA has put this whole process in jeopardy. So I have been looking into using iLogic to perform the same task of looking up the data from Access. I know that iLogic has Excel functions built into it, but because the original program is Access based (changes this is not an option) any way to use iLogic to retrieve data from Access.

View 4 Replies View Related

AutoCAD Inventor :: How To Access The Form From Assembly

Apr 22, 2013

I made a model that can be adjusted by using a ilogic form.

This alters the parameters in my "master" part & then changes my part in my assembly.

Problem: the form is located in my "master" part is there a way to access the form from my assembly?

Inventor 2013

View 9 Replies View Related

AutoCAD Inventor :: ILogic Access To Drawing Sheet Revision

Sep 27, 2012

how to access the drawing sheet revisions using Ilogic.My company is wanting to start making the default initial rev on a drawing a "-" and inventor does not like to keep this when brought in as a template.

So like normal I am trying to trick it into having the dash until a rev is actually added. 

View 1 Replies View Related

AutoCAD Inventor :: How To Access Color For Particular Hatch Within Drawing Using ILogic

Jul 15, 2013

How to access the color for a particular hatch within a drawing using iLogic.

I would like to color the hatching for parts based on paramaters besides material.

ie.

Purchased parts = Green Hatch

Refrence = Grey Hatch

I would hope one could loop through the views looking for hatches, and once found, check the part they are associated with, then based on an "if then, change the hatch color and move on to the next pattern.

View 4 Replies View Related

AutoCAD Inventor :: Access Part Parameter From Assembly?

May 26, 2013

There is a part with a model parameter in an assembly.

Is there a way to access the part's parameter from within the assembly?

View 5 Replies View Related

AutoCAD Inventor :: Can ILogic Access The Comment Field Of The Model Parameters

Aug 23, 2011

I would like to be able to use iLogic to get the value of the Comment field of a model's parameters.  I have some text there that I would like to display in a sketched symbol. The attached image illustrates what I am seeking.

View 2 Replies View Related

AutoCAD Inventor :: Read / Retrieve Information From MS Access Database Using ILogic

Nov 9, 2012

I am currently trying to retrieve data from a MS Access Database, we currently have iProperties with number values in them. An outside programmer created a code which takes these values and exports them to an MS Access Database, where they are then translated to mean something.

Instead of exporting those numbers, I want to use them to find what they ACTUALLY mean within the database and bring that information back into iLogic. (ie. 123456 actually means "1/4 Flat Bar Steel")

In short, I wish to access the MS Access database through iLogic in order to read information from it. 

I have searched for the better part of 3 hours but have not found a good answer or example code of this situation. I am not that experienced in programming, but have worked with the API before for developing Automated Drawings and have an understanding how to navigate through. If there were to be some example code, I can begin to understand the process quite well through this method as well by seeing how to go about coding this.

View 2 Replies View Related

AutoCAD Inventor :: ILogic Access Hatch Object And Modify Color?

Jul 15, 2013

How do I get at the hatch objects within a drawing using iLogic?

I would like to be able to customize hatch color based on various part properties.

ie: 

Purchased part = Green Hatch
Refrence = Light Grey
and much more

This would be possible if I can get to the hatch object and determin what part it is associated with.

I only see iLogic code that allows you to change visibility of all hatching, and set general hatch angle.

Since I can select a hatch in the drawing and change its color, I assume there is an un-published API object that relates to hatches

View 3 Replies View Related

AutoCAD Inventor :: Why Access To Content Center Available In Assembly Environment

May 7, 2013

Why is access to the Content Center only available in the Assembly Environment?

Surely I can't be the only one that could benefit from access to the library when creating a single tube or beam or angle bracket etc..in the part environment.

View 6 Replies View Related

AutoCAD Inventor :: ILogic - Batch DXF From Assembly

Aug 26, 2013

I am trying to make a dxf from each sheet metal part in an assembly with ilogic: (I have cut and and paste different codes from this forum in an poor attempt...)

Sub Main
Dim oApp As Inventor.Application = ThisApplication
Dim oAssy As Inventor.AssemblyDocument = oApp.ActiveDocument
For Each oSubDoc as Inventor.Document In oAssy.AllReferencedDocuments
If oSubDoc.DocumentType = kPartDocumentObject Then
Dim oPartPropset As Inventor.PropertySet = oSubDoc.PropertySets("Design Tracking Properties")
Dim oPartParam As Inventor.PropertySet = oSubDoc.PropertySets("Inventor User Defined Properties")
[code].....

View 2 Replies View Related

AutoCAD Inventor :: Set Assembly IProperties Using ILogic

Jun 1, 2011

I wish to set the properties of an assembly using i Logic. I have the values of the properties in a part that is in the assembly. I wish to pass those values from the part to the assemblies i properties. I tried using the following code, but it gives an error saying it can not find the document "MyAssy.iam"
 
iProperties.Value("MyAssy.iam", ThisDoc.Path, "Part Number")=AssyNo

I'm not even sure that this is the way to do, but it's the only way I could think of to try.

View 9 Replies View Related

AutoCAD Inventor :: ILogic - How To Sum A Property Of All Sub Assembly

Oct 26, 2012

I got here on in my templates, two types of weight - net and gross. I've changed the main property MASS of each PART to be the GROSS weight, so when i have one assembly i always get the total gross weight.

And when i wanna get the NET, I open the BOM, show the proper column with this net weight and then export do XLS to sum all of then..

Now the doubt is, to get the things easier, is there a way to put some code in the assemblies, that could sum all the properties "X" from each part and sub assembly to get the total net weight ?

View 7 Replies View Related

AutoCAD Inventor :: ILogic Rules In Assembly

Oct 3, 2011

I am very new to this whole concept of having ilogic based rules to drive your part design. I have even gotten as far as creating a ipart and having ilogic rules be able to suppress, unsuppress, change values and dimensions using ilogic rules. I now want to be able to use ilogic rules to drive some of the various(yet similiar) assemblies that I create all the time.

For instance, If I have just a flat plate as the base component with a shaft welded to it that varies in length for my assemblies. Since the shaft varies in length, I went ahead and created iparts for all the lengths of the shafts. I can manually change which shaft I want represented in the assembly, but I would like to to know how do I get Ilogic to place the different shafts based on user parameters???

I've looked into component place iparts, but can't seem to get the code to work. The list of iparts tree within the model doesn't pop up in the model tab in the ilogic rule, only the base component.

View 1 Replies View Related







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