AutoCAD Inventor :: Creating ILogic Components Possible From API?

Jan 29, 2013

I'm new to inventor and I need to be able to create coppies of a part in my assembly that are uniquely identified so they can be individually changed. I see that this can be done through the ribbon with the "Place iLogic Component" button, but is it possible to do this from the API in a rule?

I am using inventor 2012 pro.

View 2 Replies


ADVERTISEMENT

AutoCAD Inventor :: Creating Ilogic Assembly With Standard Components?

Oct 6, 2013

Long time Autocad user but now am moving most of my work across to Autodesk Inventor.

Some of the work I do is with companies that their parts are standard components that will not change.

So I am using Inventor to automate the drawings based on their requirements. For example if it needs to be 4m high. then to use 2 x 2m sections. Currently I have create different assemblies of the different potential heights that I can switch between using ilogic but I need to be able to shift the top truss arch depending on how high the truss is.

View 1 Replies View Related

AutoCAD Inventor :: Using Array In ILogic To Suppress Components

Jul 10, 2012

Lets say you have 100 Keps Nuts in an assembly. Named (KepsNut1,KepsNut2, etc)And you want to suppress them on and off.

Would there be a way to make an array 1-100 and just say suppress/unsupress "KepsNut" & array list of numbers.To basically add the two strings and find all the components in that array and turn them off or on.!

View 9 Replies View Related

AutoCAD Inventor :: ILogic Rules - How To Replace All Components

Mar 1, 2012

Can I use an iLogic Rule at the top assembly level to "replace all" of a particular component is that component resides in more than one subassembly?  I need a rule to run and globally replace the component in all subassemblies without opening up each subassembly manually.  I can run a rule in the individual subassembly that looks like the following:

If GoExcel.CellValue("3rd Party:Embedding 1", "Sheet1", "A2")=800 Then
Component.Replace("Part1:1", "OtherPartfilename.ipt", True)
End If

Is there a way to run a "replace all" command from a top level assembly?

View 1 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 To Set Pattern Components To Reference

Sep 17, 2012

I have a pattern of reference components, but the quantity of the pattern can change based on certain criteria.  When the quantity increases or decreases, I need each pattern element to have its BOM structure set to reference.

The problem is, even if the original pattern element is set to reference, each subsequent element comes in as normal.  This causes the BOM quantities for that component to be reported incorrectly in higher assemblies.

Is there some iLogic or VBA code that will automatically set each component in a pattern to BOM structure "Reference", even if the pattern quantity changes?

View 7 Replies View Related

AutoCAD Inventor :: ILogic To Suppress Components In Assembly

Oct 25, 2011

I'm using I-logic to suppress components in an assembly. I've attached a screenshot with 3 suppressed components.

In the browser the parts are suppressed but in the BOM (items 6,7,9) they are not. Is there a piece of code for this?

View 5 Replies View Related

AutoCAD Inventor :: ILogic Workflow For Suppressing / Excluding Components

Oct 7, 2011

I am working on an iLogic assembly configurator that manipulates several skeletal parts, and suppresses both standard and skeletal parts depending on the configuration.

I've been using the Component.IsActive function to suppress all omitted parts, which has prompted me to create a custom Level of Detail. This hasn't caused me much grief until I had completed ~10months of work when it was time for me to make my final assembly drawing and a parts list.I am now running into several deal-breaking issues:

1) Suppressed parts insist on appearing on the Parts List.

2) Saving the assembly drawing reverts my assembly model to the "Master" LOD, which I never, ever, ever want to see again so long as I live.

Is there another workflow or technique that I should be using to turn off unwanted components in an assembly? I understand that LOD's are really intended to manage system resources, but Inventor users seem to be left with no other option to display a skeletal assembly in a certain configuration. What is the point of the Component.IsActive function if it doesn't update your assembly (at least so far as the Parts List is concerned)?

If I am left to deal with the nightmare that is the Inventor LOD, is there any way to set up the Parts List to reference the custom LOD?

Drawing View reps don't seem to be an option, as it looks like there is no way to automatically update the same custom view after the configuration has been made. The iAssembly Include/Exclude feature would handle part inclusion and BOM behavior nicely, but it won't fit into the rest of my iLogic and file management program.

View 9 Replies View Related

AutoCAD Inventor :: Use ILogic To Change Custom IProperty In Several Components At Once

Mar 25, 2013

I've been using iLogic. I'm creating a template assembly that will be used for multiple jobs. Therefore, the job number will be changing. I want a custom iProperty in ALL parts and sub-assemblies (cleverly call it "Job #" maybe) that I can include an a separate property called "Drawing #" which whose value will be [some text]-<Job #>-[some more text]. I want to be able to update all the "some text" parts manually for each component, but I want the Job # to update automatically. I need this property because I have a column in all my Parts Lists called "Drawing #" which tells the drawing number for any given part or assembly.

Ultimately what I want to do is open a text or Excel file, enter the job number, open my Inventor drawing, and have every Drawing # entry in every parts list magically update to the correct job number.

I've managed to use iLogic to do just that with a single .ipt/.iam file. But I have dozens upon dozens of components in the main assembly. I'd like to run some rule or hit some button or do something that will cause the Job # property to update for ALL sub-assemblies and parts, so that all my parts lists reflect the change.

View 4 Replies View Related

AutoCAD Inventor :: How To Delete Suppressed Components By ILogic Rule

Jan 24, 2013

I have an assembly which includes lot of parts (*.ipt) or sub-assembly (*.iam). I have some ilogic rules to control to suppress or un suppress them.

Now for the released assembly, I want delete all suppressed components by ilogic rule.

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 :: ILogic To Change Properties On Top Level ASM Components Only

Oct 18, 2013

After changing colors at assembly level only ,below is a rule that changes all parts that have material "Plywood" to poplar works great.

However I want a rule that does the same kind of change but on only temporally at assembly level only then we can change back to default colors by removing color override.

It would be good if we can do the following

Search assembly for .ipt files that have material that contains PlywoodChange to color using temporary override of "Clear - Light" Possibility of searching more materials within same rule ie : "Timber" to be black in color"Pvcu"to be white in color

Dim oCurrentDoc As Inventor.Document
Dim oDoc As Inventor.Document Dim oPartDoc As PartDocument
Dim oRefDoc As DocumentsEnumeratorDim oTargetColor As RenderStyleDim oNewColor As RenderStyleoCurrentDoc =

[Code].....

View 1 Replies View Related

AutoCAD Inventor :: Place List Of Components With IMates Into Assembly Using Ilogic

Feb 15, 2013

I was just wondering how to place a component into an assembly using ilogic?  If this is possible, is there also an option to choose if iMates will be generated?

I would ideally like to place a list of components into an assembly, the list with probably exist in excel, then have iMates set to 'Automatically generate iMates on place' so that my assembly assembles automatically.

Inventor 2013 Certified Professional
Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit

View 7 Replies View Related

AutoCAD Inventor :: ILogic Rule To Report Missing Or Unavailable Components

Jul 9, 2013

I'm using iLogic to build a configurator and everything is working perfectly if I have all the componets available.

However, is there a way to use iLogic in this example:

Assume I have a bolt, nut and washer in an assembly based on 1/2" sizes. I then change the sizes to 1", the bolt and nut update to 1" but I do not have a washer modeled for 1".  Is there a way to use iLogic to report that the washer is not available without causing an error or only updating the bolt and nut and ignoring the washer.

View 1 Replies View Related

AutoCAD Inventor :: ILogic - Creating STL With Options?

Sep 11, 2013

I created a iLogic routine to generate a STL file if the iProperty "Printed Part" is set to YES.  

I am getting an error when Ln33 oTranslator.SaveCopyAs(oDocument, oContext, oOptions, oData) is executed.
 
If iProperties.Value("Custom", "Printed Part") = False Then 'False = "NO"ReturnElseMsgBox ("Selected to output STL for printing" & vbCrLf & "Disable by setting the custom iProperty:Printed Part to NO")End If'Create _OUTPUTS directoryoPath = ThisDoc.PathoFolder

[Code]....

View 2 Replies View Related

AutoCAD Inventor :: Example Of ILogic In Creating Stairs

Jan 1, 2013

Any good example of ILogic in creating stairs? We generate many different widths, lengths and heights? Been trying to utilize iLogic to make all the different types more easy to create from the start. Have set angle of stringers and certain widths of treads but cannot figure out my rules on the number of treads needed per the length of my always changing stringer lengths. Stumped on how to take a certain length (parameter) and divide it up equally. Top tread flush with top of horizontal stringer and with bottom tread having a minimum and or maximum height the from floor.

View 3 Replies View Related

AutoCAD Inventor :: Creating A Base View With ILogic

Oct 18, 2013

I kept the code simple
 
fname = ThisDoc.FileName(False) 'without extension fpath = ThisDoc.PathoPartDocPath = fpath+""+fname+".ipt"oPartDoc = ThisApplication.Documents.Open(oPartDocPath, False)oDrawDoc = ThisApplication.ActiveDocument oSheet = oDrawDoc.Sheets.Item(1)oTG = ThisApplication.TransientGeometryoPoint1 = oTG.CreatePoint2d(5, 5)oBaseView = oSheet.DrawingViews.AddBaseView(oPartDoc, oPoint1, DrawingViewScale, kFrontViewOrientation, kHiddenLineDrawingViewStyle, "Default")

it is a local rule in an idw file that has been saved with an ipt file of the same name saved in the same directory. Now I get the most useless error message ever devised by manking

"The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))"

View 5 Replies View Related

AutoCAD Inventor :: Getting Error When Creating ILogic Rule

Oct 14, 2013

When i trying to create a new ilogic rule i get window with this error:
 
Spoiler (Highlight to read)System.InvalidCastException: Невозможно выполнить приведение [A]iLogic.CodeSnippets к [B]iLogic.CodeSnippets. Источником типа A является "Autodesk.iLogic, Version=17.0.13800.0, Culture=neutral, PublicKeyToken=null" в контексте "Default" в расположении "C:PROGRA~1AutodeskINVENT~1BinAutodesk.iLogic.dll". Источником типа B является "Autodesk.iLogic, Version=17.0.13800.0, Culture=neutral, PublicKeyToken=null" в контексте "LoadFrom" в расположении
[code]..........

View 4 Replies View Related

AutoCAD Inventor :: ILogic - Creating Assemblies With Different Length?

Jun 21, 2012

I'm new in use of iLogic and tried to use it by myself (and internet). But I have some difficulties.

Here is the open point, I wold like to create an assemblies with different length (and also some different part inside).

So I made some iLogic rules to make a configuration of my .iam with length selection.

 I made rules to show or hide parts with is linked to the proper length.

I made rules to switch from a positional representation to another one and do the same for level of details representation and for view representation.

All is good in my .iam.

My problem is comming now. When I would like to put my .iam in a .idw in several views (corresponding to different length), my views are the all the same. I can't see one length per view even if I select the proper representation, the proper position and the proper level of detail.

At the end, all this work is to have all views length to be able to make in one drawing all length block in autocad.

View 3 Replies View Related

AutoCAD Inventor :: Creating Part Parameter With ILogic Running In IDW?

Mar 19, 2012

Im quite new to customizing inventor and have been playing around with I-logic. I can get I-logic to enter values into existing ipt paramaters when run from a rule within the idw. I can also get I-logic to create a custom Paramater within the ipt using some copied API code, however I dont know my way around API at all yet. So...

I was wondering if it was possible to create a custom part parameter from an ilogic rule run in an idw with that ipt featured?

View 4 Replies View Related

AutoCAD Inventor :: Creating ILogic Code That Uses IParts / IAssemblies

Mar 21, 2012

I am venturing into a new area with my iLogic coding. Looking for some good examples or How-To of how to use iLogic with iParts and iAssemblies.

View 1 Replies View Related

AutoCAD Inventor :: Close ILogic Form With VBA Or ILogic Rule

Aug 19, 2013

how can I close an iLogic Form from either an iLogic Rule, or a VBA Rule (VBA is the Preferred method)?

View 5 Replies View Related

AutoCAD Inventor :: Fix Two Components Relative To Each Other

Oct 22, 2012

I would like to find out how to fix two components in an assembly relative to each other, and using VBA.

What I want to do is to build the assembly (which consists of two components A and B, and also other components) and then animate the joint in component B. In order to do so, I have to fix A to B so that A moves along with the joint motion. But my problem here is that the attachment of A to B is not definite - it depends on other components in the assembly, so I cannot predefine a constrain between the two. 

 Is there a way I can easily fix two components relative to each other in an assembly without prior knowledge on how they are positioned relative to each other?

I'm thinking of measuring and then constraining the origins of the two part files in 6DOF, but I'm not sure how i can extract the angle between the axes and then constrain them in the correct way (mating using angles has always been confusing for me).

View 2 Replies View Related

AutoCAD Inventor :: Suppressed Components In BOM

Apr 10, 2012

we are using level of details to suppress few components. when we are trying to take BOM for that level of details. we are getting the suppressed components also. is there any control we can do avoiding that suppressed component. I know if you make the BOM sequesnce to reference that wont come in BOM. but we need that file for other LOD.

View 9 Replies View Related

AutoCAD Inventor :: Re-Using Assemblies As Components

Oct 21, 2011

I use hinges in my door assemblies and they are basically placed into the assembly each time and become flexible so the doors can operate.  The hinges are one size and don't change in any way or shape.  What is the best practice for inserting these hinges into my door assemblies?

Inventor 2013
Windows 7 Professional 64-bit SP1
HP EliteBook 8470w
Processor: Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz
Memory: 16 GB
AMD FirePro M2000
3D Connexion SpacePilot

View 2 Replies View Related

AutoCAD Inventor :: Missing Components In Drawing?

Apr 9, 2013

I made a simple aluminum frame with clear polycarbonate shields. Somehow, when I put it on drawing sheet, some parts behind the polycarbonate are missing. If i make the polycarbonate invisible, the missing parts appear again. This strange phenomenon started today. It didn't happen before, and no parts were missing behind the clear polycarbonate.

View 6 Replies View Related

AutoCAD Inventor :: Components Visibility On View

May 10, 2012

How to manage the visibility of components in a particular view?

In attach file,View 2 is a detail view of view 1. On view 2, I want to display only the nozzle (Drain (H):1)  and shell (C1306388341:1) component. So I need to set the visibility of the other component to false.When I try to code this, the components of model file of view 1 was updated not the view.

   Set ViewDocument = oDetailView.ReferencedDocumentDescriptor.ReferencedDocument
    For Each ViewOccurence In ViewDocument.ComponentDefinition.Occurrences
        If nozzleName <> ViewOccurence.ReferencedDocumentDescriptor.DisplayName Then
            ViewOccurence.Visible = False
        End If
    Next

The reference document I set for my code is not the document which contains the view 2. So I need to the actual reference document where view 2 belongs which is in the box of view 2 that contains 5 components.

View 2 Replies View Related

AutoCAD Inventor :: Add Components In Sequence For Animation?

Nov 28, 2013

In ipn file, after I created sequence and wanted to add in some more components. When I edit the sequence, I cannot find the place to add the components.

View 2 Replies View Related

AutoCAD Inventor :: Replace Components With Different Internal Name?

Apr 24, 2013

I would like to know if there is any possibility to replace a component with another one, that has a different internal name. Losing the dependencies would be acceptable.

ReplaceReference and PutLogicalFileNameUsingFull always return the error "wrong parameter".

View 5 Replies View Related

AutoCAD Inventor :: Specify Which Template Imported Components Use?

Aug 2, 2013

How do I specify which template my imported components use?

View 7 Replies View Related

AutoCAD Inventor :: FEA Separates Into Independent Components?

Oct 28, 2011

I'm attempting to run an FEA of a preliminary design to isolate the best locations for weight reduction.  When I attempt to do the analysis with convergence criteria of

Maximum number of h refinements: 2Stop criteria: 8%h Refinement Threshold: 0.5
 
I get the following issue:
 
Mesh failed: Face failure: Spar:1Model separates into 36 independent componentsSoft spring was added  Is there anything I can do either model or simulation wise that will keep the model from separating?

View 9 Replies View Related







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