AutoCAD Inventor :: ILogic Select Face In Assembly

Mar 6, 2012

I need to be able to pick a face on a part in an assembly inside a iLogic rule. How can I set up the events to suspend the code to have the user pick the face?

View 6 Replies


ADVERTISEMENT

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 :: 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 :: ILogic Measure Extents Snippet And Move Face

Nov 2, 2011

We use the snippets from iLogic on all of our parts to measure the length, width or height of our parts. However, we have noticed that when a 'Move Face' operation or a 'Replace Face' operation is used, the length measured does not seem to take into account the Move/Replace operations.

Are the Move/Replace operations different than other features like Extrude/Revolve? Is there something "ghost-like" about them??? The edges work fine on the drawing side, so I'm not sure what is different. Maybe it is the iLogic snippet?

In regards to it being the snippet, is there another code I can use that doesn't require specific feature or part information built in?

Inventor 2013 Product Design Suite
Vault Professional 2013
Windows7 x64
Autodesk Inventor Certified Professional

View 3 Replies View Related

AutoCAD Inventor :: How To Create Workplane From A Face Using Select Set

Nov 8, 2012

I am making a C# Add-in, I need to create a plane from a selected face, I am using the following code, but I am getting stuck.

if (((mApp.ActiveDocument != null)))
{
if ((mApp.ActiveDocument.DocumentType == DocumentTypeEnum.kPartDocumentObject))
{
PartComponentDefinition oPartCom = mApp.ActiveDocument as PartComponentDefinition;
PartDocument oDoc = mApp.ActiveDocument as PartDocument;
[code].......

View 2 Replies View Related

AutoCAD Inventor :: Add Sketch To Part Using Face Referenced From Assembly

Jan 24, 2012

what im trying to do is select a face in an assembly and create a sketch on it in the part level

this is just one step in the program im trying to make the overall program will create a tube frame and the tubes will be driven from a base solid

Sub test1()
Dim asmDoc As AssemblyDocument
Set asmDoc = ThisApplication.ActiveDocument
Dim asmDef As AssemblyComponentDefinition
Set asmDef = asmDoc.ComponentDefinition
[code]......

View 1 Replies View Related

AutoCAD Inventor :: Create Workplane From A Face In Assembly Document

Jul 15, 2011

In an assembly document, I try to add a MateConstraint between male and female side of an 45 degrees elbow. The male side is built on the XZ Plane and Y Axis And I try to create a workplane on the female face.

But a got an error with the last line of code.  Here's my code (vb.net code) :

' Get application object
Dim app As Inventor.Application = GetObject(, "Inventor.Application")       
Dim doc As Inventor.AssemblyDocument = app.ActiveDocument           

[Code] .......

View 3 Replies View Related

AutoCAD Inventor :: Center Of Gravity On Curved Face Of Assembly

Aug 1, 2013

I am trying to pinpoint the center of gravity on a curved face of an assembly. I can use the c og G command to get the true center of gravity but i would like to incorporate lifting eyes into the finished assembly. Basically I need to know how to find the C of G on a given surface. I have attached the assembly I am working on and added lifting eyes roughly where I would like them. I have tried measuring from the C of G to a face and then creating the lug above the C of G but somehow it doesn't line up.

View 7 Replies View Related

AutoCAD Inventor :: Change Select Set Face Colour Simultaneously?

Mar 19, 2013

Is there any way to change the colour of all faces in a select set simultaneously?

The method I am referring to is when you select faces in a part document, rickt click and select properties from the context menu, a dialog box pops up called "Face Properties" which prompts you to select a colour and click OK. when this is done all of the faces are changed at once.

How do I replicate this via the API?

Currently I have it iterate through each face in a part document and apply the colour override one by one which can take a while when there are about 1000 faces. You can see each face changing as you go.

View 3 Replies View Related

AutoCAD Inventor :: Change Appearance Of Face In Weldment Assembly Environment

Jan 29, 2013

I was wondering if there is a way to change the appearance of a face in a weldment assembly environment. I have a weldment which in the machining process a part of weld bead as well as a portion of one of the components is machined down (spot faced) and I need to change the appearance of those face to polished, but it doesn't let me do that?

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

AutoCAD Inventor :: Run ILogic Of Part In Assembly?

Jul 25, 2012

How to run iLogic Rule which I created for .ipt  file in assembly?

As I have a myPart.ipt file with iLogic Rules which could create part1.ipt, part2.ipt, ..... (hundreds of them).

Now, I want creats iLogic Rule in myAssembly.iam to run the iLogic Rules in myPart.ipt in order I could create correct .ipt file to be used in myAssembly.iam.

View 4 Replies View Related

AutoCAD Inventor :: Same ILogic Part In Same Assembly?

Jul 26, 2012

I have the same ilogic part placed in the same assembly, and i am trying to drive two different configurations of the same part and when i apply the configuration it changes both of the parts but to only one of the configurations.

Is there a way to drive them seperately even though they are the same part.

View 5 Replies View Related

AutoCAD Inventor :: Exporting BOM Of ILogic Assembly

Nov 29, 2010

My task consist in exporting a BOM of an iLogic assembly.

Is any way to get an accurate BOM of other LOD other than the master. If so, is it only available in certain Inventor releases?

I am trying to accomplish this through API, but I get error when in different LOD than master. iLogic assembly has some parts suppress thats why we need to create a new BOM.

View 9 Replies View Related

AutoCAD Inventor :: ILogic Driven From Sub Assembly

Jul 1, 2013

I have a parent assembly that contains multiple sub assemblies, two of which need to synchronize with each other.In the parent assembly, I have created a user form that controls the sizes and quantities of all the different sub assemblies.

Sub assembly 1 contains a bracket for supporting 4 rows of pipes.Based on the width selected from the main parent assembly, the length of this bracket can vary.

The spacing of the 4 mounting positions is also determined from the length of the bracket.Sub assembly 2 is an assembly containing all the pipes.The pipes are spaced apart to suit the bracket using a component pattern, and it is this distance that I want to control from the parent  assembly.This is just one of the basic scripts I've tried.

Pipe_Spacing=Parameter("SubAssembly1:1", "Pipe_Spacing_A")

Parameter("Piping assembly:1", "Pipe_Spacing_B")=Pipe_Spacing
Pipe_Spacing_A is the spacing of the bracket
Pipe_Spacing_B is the component pattern in the piping assembly
Pipe_Spacing is the parameter in the parent assembly to be driven by the bracket parameters.

I have very little iLogic experience & have being learning as I go along with this project.My best guess is that the code can't loop back on itself. On a slightly different note, I have also noticed that the sub assemblies don't update properly.

If I adjust the width to X and regenerate the model, some of the sub assembly updates. To fully update, I have to go back into the user form, change the size to Y & then change it back again to X and then regenerate.

View 1 Replies View Related

AutoCAD Inventor :: Select Component Priority No Longer Shows Face / Edge Preview

Dec 12, 2011

This has happened since I updated to 2012 Professional.  When I want to use the measure tool or add constrains in assembly mode, the face/edge preview does not show up in red under Select Component Priority.  I have to wait for the select other option to come up to see which face I am on.  If I click on the face or edge it will show up but not until I do.  I don't remember changing any settings that would cause this.  I could have the select other option delay set to zero or I could change it to another selection priority but I don't remember having to do that before.

View 2 Replies View Related

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

AutoCAD Inventor :: Convert To Weldment Assembly With ILogic?

Oct 27, 2013

Is it possible to change a normal assembly into a weldment assembly through iLogic?

View 4 Replies View Related

AutoCAD Inventor :: Change Part By ILogic In Assembly?

Jul 25, 2012

Before using iLogic, I created lot of iAssembly and iPart. I could change iPart factory member when I need in iAssembly.Now, I want to move everything to iLogic.

how could I change the part by iLogic code?

For example:

I generated "Part1.ipt" and "Part2.ipt",...... (I have hundred of member)

In my assembly, sometimes, I need use Part1.ipt, sometimes I need use Part2.ipt.

Which is the iLogic Code I should to use?

Inventor 2009, WIN XP.
Autodesk Inventor Professional 2013 (64 Bit) SP2
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory

View 9 Replies View Related

AutoCAD Inventor :: ILogic Module For Part Of Assembly

Jan 9, 2012

I have made an iLogic external module who copy the iProperties from an Excel files, when i open the module from the *.ipt file il works perfectly. But i need this function from *.iam files.

Something like this: when i click with right button in one selected part of assembly i can open the module only for this part and when i save it save the change for all modify part of *.

View 1 Replies View Related

AutoCAD Inventor :: Assembly Constraints Driven By Ilogic?

Apr 4, 2013

I want to use I logic to adjust an assembly constraint based on T/F value passed from a master sketch. 

I have passed the paramater T/F and/or a user paramater as described in this thread using link (neet trick).. but when the code fires it only works on the true application and not the false.. if i open the rule and then close it the update button  becomes available and when updated the false condition updates sucessfully. I have tried just re-running the rule to no avail. It seams that the only way I can get it to triger a false condition is to open the rule... close it and update. 

If Parameter("iTrigger0101000") = 1 Thend37_Header1 = -.25 ind34_Header2 = -.25 inElseIf Parameter("iTrigger0101000") = 0 Thend37_Header1 = -.25 ind34_Header2 = 0.0 inEnd If

View 2 Replies View Related

AutoCAD Inventor :: Counting Parts In Assembly With ILogic

Jan 9, 2014

I would like to count all my parts in the main assembly and assign that amount to each part.

Example: Main assembly has: 10 Parts A and 5 Parts B. I would like to run a rule that "sends" that "10" to Part A.ipt and the "5" to Part B.ipt

I would like to assign it to iProperties.Status.Status. I start to understand iLogic more and more but it is nice to get a little boost in the right direction.

View 4 Replies View Related

AutoCAD Inventor :: Change Pattern ILogic In Assembly

May 10, 2012

Change pattern ilogic. How do you change the distance and quantity  in an assembly with ilogic?

It is simple in a part but in an assembly the parameters and equations do show.

View 1 Replies View Related

AutoCAD Inventor :: ILogic - Rule Driven Assembly

Apr 23, 2013

The setup is: I have a rule which first gets a number of user parameters via input boxes.This rule then runs a number of other rules, using:

iLogicVb.RunRule("Rule 1")iLogicVb.RunRule("Rule 2")iLogicVb.RunRule("Rule 3").Each of these rules control parameters, part/feature/constraint suppression etc. in the top level and subassemblies/parts based on the previously obtained user parameters.

All the rules have the 'Don't run automatically' option selected, so all should only run as intended when I manually run the first rule.When I run the first rule, I enter all the parameters, and the subsequent rules run.The problem is, the suppression states etc. in the subassemblies/parts do not update.

Looking at the parameters dialog box after the rules have run, all user parameters have updated with the new values.If I run the first rule again the subassemblies/parts update correctly.

It appears that the rules that control the suppression states etc. of the subassemblies run using the initial values of the user parameters, i.e. the values as they were before the user input is obtained, rather than the new values.This is confusing me, as the code is structured as follows:

user_parameter_1 = InputBox("User Parameter 1", "Input", "xx")user_parameter_2 = InputBox("User Parameter 2", "Input", "xx")iLogicVb.RunRule("Rule 1")iLogicVb.RunRule("Rule 2")

View 2 Replies View Related

AutoCAD Inventor :: Run ILogic Rule For All Parts In Assembly

Oct 6, 2011

I Created an iLogic Rule that sets up some parameters.

I want to Automatically opens each and every Part in my assembly, run this Rule,  and then save it without me having to do so manually.

View 8 Replies View Related

AutoCAD Inventor :: ILogic - Modify All Components Of Assembly

Jul 26, 2012

I need to modify all the ipt in an assembly, but I don't kow how many ipt I have, and I don't know the name. Can I have with iLogic the list of all the ipt used in the assembly ? For example, to modify the Part Number in all the components.

The code should be like this :

For All component in Assembly

...

...

Next component

View 3 Replies View Related

AutoCAD Inventor :: ILogic Change Assembly To Reference

Oct 26, 2011

Is there a way to set an assemblies bill of material setting to reference through iLogic?

View 3 Replies View Related







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