AutoCAD Inventor :: Rule To Suppress / Unsuppress Many Features

Feb 14, 2013

I have a code working that is not very efficient.

It works, but it is very slow, i suspect it can be 28x faster, but I don't know how

What I have:

I have a plate with many hole patterns.

I calculated how many holes each pattern has

Parameters: Excel_Holes_Row_0 to Excel_Holes_Row 27

For each Row i have 4 features:

Pipe Hole

Rectangular array of Pipe Holes

Product Hole

Rectangular array of Product holes

What I want to do:

I want to suppress/unsuppress features with a rule

If Excel_Holes_Row_20 < 2 It means Suppress the rectangular arrays on this row
If Excel_Holes_Row_20 = 0 It means suppress the hole features on this row

This is my
 
Dim oDoc As Document = ThisDoc.Document
Dim PFeats As PartFeatures = oDoc.ComponentDefinition.Features
Dim PFeat As PartFeature

[Code]....

View 3 Replies


ADVERTISEMENT

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 :: Suppress Flange Features

Nov 15, 2012

I am trying to make a way that suppress the flange features of all the panels that will be insert in the assembly so i can suppress all the features at ones in a assembly and don't have to do that for each panel separately.

I have a assembly with parameters and i have a part with no geometry but have linked the parameters from the assembly. In my panel part i link the parameters to the part with no geometry.

When i use the parameter in the assembly to suppress the flanges that works the way i want it. But when i insert the panel part into that assembly it doesnot work.

View 1 Replies View Related

AutoCAD Inventor :: Linked Features / Can't Suppress One Alone

Sep 9, 2013

The small cylinder was made first, then projected it to a sketch, made offset, and made the big cylinder, but i want to leave only the big cylinder alone. i want to suppress the small cylinder, but when i suppress the samll one both get suppressed.

How can i break this link, which was made by the projected geometry?

Even when i select the projected circle, right click and select Break Link, they still behave the same.

View 1 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 :: 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 :: 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 :: Rule To Control Visibility Of Work Features In Pro 2014

Oct 2, 2013

Is there a way to write a set of rules so that I can switch Work Features On and Off via a Text Parameter.I have an assembly made up of a number of parts used hundreds of times within in various sub-assemblies. If I make a particular sub-assembly 'Invisible' then subsequently 'Visible,' all work features that had previously been set to be 'Invisible' are switched to 'Visible' also.

Likewise if I simple want to set a particular Work Features' Visibility in one particular sub-assembly, I would like to be able to do this via a Text Parameter rather than having to laboriously scroll down the Assembly switching the visibility of features on and off.

At the moment if I turn the visibility of say a Work Plane On in a sub-assembly then all sub-assemblies deploying the same part switch the visibility of that Work Plane on too. Hence I cannot see my work for Work Planes.Obviously the Global Switch under View is of no avail,

So I would like to be able to create a Text Parameter for each sub assembly and in turn each Work Feature with a Yes/No Visibility switch controlled via a set of Rules in iLogic.

View 4 Replies View Related

AutoCAD Map 3D :: Suppress Data Window When Drawing FDO Features?

Jun 15, 2011

how to suppress the Data Window from appearing after drawing a new feature?  Most of the new features are populated with triggers and autonumbers, so I don't need to see the Data Window when I draw something new..

View 1 Replies View Related

AutoCAD Inventor :: Invoke ILogic Rule Editor And Pass It On Existing Rule Name?

Jan 7, 2014

Is there a way to invoke the iLogic Rule Editor and pass it an existing rule name or external rule for editing?

View 4 Replies View Related

AutoCAD Inventor :: ILogic / Run Assembly-level Rule From Component Rule?

Aug 2, 2013

I need a way to run a rule which is saved in my top-level assembly using iLogic rule which is saved in a part file in the parent assembly.

I have even tried using an external rule in a txt file, but that gives the error "Component: This function can only be used in an assembly."  - which makes no sense to me.   I hope I am just missing something simple.  I cant believe with all its other strengths, that iLogic would be so limited in that regard.   Why is there not simply a snippet under the 'Run Other' that allows you to specify an assembly file and the rule name?  (like there is for running a rule in a component from the assembly)

View 4 Replies View Related

AutoCAD Inventor :: Run Ilogic Rule In Each Part From The Assembly Via External Rule

Dec 6, 2011

I want to simply set a custom iproperty as the Description in each part file within my assembly.  I can do this easily at part level with ilogic but I want to be able to run the rule from the assembly level and all the parts run the rule.  I am struggling to find a way to do this.

I think this may be the best method I have found but I think it must be far easier?

[URL].......

View 9 Replies View Related

AutoCAD Inventor :: ILogic Design - Why Work With Local Rule But Errors On External Rule

Dec 9, 2011

I am working for customer with a simple item with his iLogic design. He has created a simple form to modify his iProperties. To modify the current material, a multi-value parameter was created and the following rule as a local rule;

"MultiValue.List("MATLIST") = iProperties.Materials
iProperties.Material = MATLIST"

He is now trying to make this an external rule but gets the following error

Error in rule: Mat2, in document: Mat2.iLogicVb
iProperties.Material: is probably a bad material name.

The more info tab says:

System.ArgumentException: iProperties.Material: is probably a bad material name.
at iLogic.CadPropertiesInRule.SetDocMaterial(Document doc, String matName)
at LmiRuleScript.Main()
at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)

View 2 Replies View Related

AutoCAD Inventor :: Set Features To Be Invisible When Create Sketch After Those 3D Features

Sep 3, 2012

Is there any way to set features to be invisible when create sketch after those 3D features so as to make the sketch more easy to see?

View 3 Replies View Related

AutoCAD Inventor :: How To Run Rule In Part File From Rule In Drawing File

Aug 21, 2012

I am trying to use iLogic to create the file types I need to give to my vendors once I have created a drawing.In the .idw file I have a rule that creates a .pdf file and .dwg file. I also want it to activate a rule I have in the .ipt file that creates a .dxf file.

trigger = iTrigger0oType=Left(ThisDoc.FileName(False),3)GoExcel.Open("S:DRAWINGSFolder Types.xlsx", "Sheet1")For rowPN = 1 To 200 If (GoExcel .CellValue("A" & rowPN) = oType) Then oFile = GoExcel.CellValue("C" & rowPN) Exit For End IfNextoFolder = "S:DRAWINGSNOT RELEASED" & oFileIf Not System.IO.Directory.Exists(oFolder) ThenSystem.IO.Directory.CreateDirectory(oFolder)End IfThisDoc.Document.SaveAs(oFolder & "" &
[code].....

View 5 Replies View Related

AutoCAD Inventor :: How To Suppress A Sketch

Nov 5, 2013

A iLogic rule to suppress a sketch? When I suppress a feature, the sketch is not suppressed which cause an error. Although this kind of error does not hurt anything, but I do not want to see any error in my model.

How to suppress the sketch by a rule?

View 4 Replies View Related

AutoCAD Inventor :: Suppress Feature If Value Is 0?

Nov 24, 2011

Can not find the table where you can input "suppress feature if this equals 0" and so...

View 1 Replies View Related

AutoCAD Inventor :: How To Suppress Pattern In IAM By ILogic

Aug 31, 2012

how to suppress a pattern in *.iam by ilogic?

I used ilogic to suppress the main components, but the rest are not suppressed.

For example, I have component "A" and make it a pattern (Colum and Row are variable). How to use ilogic to suppress rest not just "A".

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

View 3 Replies View Related

AutoCAD Inventor :: More Than One IMate With ILogic Suppress

Nov 19, 2013

Is there a way to put a bunch of imates under one line code?

 I have imate iInsert:1 thru iInsert:49 I need them all suppressed when an event happens.

 I can get it to work one by one but that would be a lot of code.

Tried a few other thing but seems not to work.

2012 Factory Design Suite ( will not load 2013)

View 9 Replies View Related

AutoCAD Inventor :: Suppress Sketch In IPart?

Mar 27, 2012

When I create a configuration in one iPart, I have one Extrusion’s sketch link to another supressed Extrusion and cause problem.

Can I supress sketch in iPart ?

If I can suppress that sketch and I think the problem will be solved.

View 5 Replies View Related

AutoCAD Inventor :: Suppress Browser Folder?

Oct 8, 2012

I am trying to suppress browser folders per the API with no luck is this even possible. I would also like to control its BOM Structure.

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 :: Suppressing Component Does Not Suppress Constraints

Aug 6, 2013

I often use multiple versions of components in my assemblies so I can validate the top level assy works in all it's expected configurations.  To that end, if I have different versions of component A, I supress all except the version I am working with.  I have discovered though, that supressing the component does not supress the contraints that component has to an unsupressed component in the assy.

The purpose of suppressing something is to essentially eliminate it from existance without deleting it from the file so it can be brought back quickly in all its glory.If I have to track down every contraint there is for a supressed component and supress them independently, that is an incredible consumption of time.

View 9 Replies View Related

AutoCAD Inventor :: Suppress Parts Within Subassemblies ILogic

Aug 29, 2013

I am trying to suppress part that are labeled as "Reference" on the BOM Strutcture and I can't get the program to cycle through the subassemblies.  The following code runs through all the components on the top-level assembly but I can't get it to cycle through the subassemblies. 

oCompDef = ThisDoc.Document.ComponentDefinitionoAssemblyComponents = oCompDef.OccurrencesDim oOccurrence As ComponentOccurrenceDim oSubOccurrence1 As ComponentOccurrenceFor Each oOccurrence In oAssemblyComponents If (oOccurrence.BOMStructure = BOMStructureEnum.kReferenceBOMStructure) Then Component.IsActive(oOccurrence.Name) = False Else Component.IsActive(oOccurrence.Name) = True End IfNext

View 9 Replies View Related

AutoCAD Inventor :: Suppress Weldments / Preparations In 2D Drawing?

Mar 4, 2013

I have a weldment that shows all the preparations and weld beads in 3D.  I need to detail out this weldment without the preparations/welds applied already. 

I can't seem to find a way to suppress these features in the 2D drawing without going back to the weldment file and suppressing those features individually.

Can you force Inventor to ignore preparations and weld features in a 2D drawing?  When I do my callouts for welds, I can't have it showing the weld/preparations in the drawing itself.

I created the drawing file using the weldment file as the base view.  Running latest version of Inventor Pro.

View 1 Replies View Related

AutoCAD Inventor :: Suppress Certain Pattern Occurrence In ILogic

Feb 22, 2013

How do you suppress a  certain pattern occurence in Ilogic?

View 6 Replies View Related

AutoCAD Inventor :: Suppress Solid Bodies Using ILogic

Jan 15, 2013

in addition to this question

 [URL]......

What is the code for hiding different Solid Bodies:

with the User Parameter type, I want to select a certain type of Shackle and suppress / hide the other Solid Bodies.

View 1 Replies View Related

AutoCAD Inventor :: Suppress A Component In Main Assembly?

Oct 11, 2011

I was wondering if there was a way to suppress a component in the main assembly, and keep it from appearing in the parts list whenever I create one in the idw. environment? I am creating an iassembly, and generating different file versions from the main assembly in my table. In order for me to create different versions off of this main assembly, it is required that I suppress certain sub assemblies or components. I can't get the suppressed componenets to not show up in my parts list when I create it. I turned off enabled and visibility and it still appears in the BOM. Creating a different level of detail doesn't even solve this.

I know I can manually not have it show up in the BOM, but it becomes very time consuming trying to make certain rows not appear in the BOM table.

View 2 Replies View Related

AutoCAD Inventor :: Suppress First Element Of Component Pattern

Oct 29, 2013

I have a rectangular component pattern which started out with all components.  As more structure was added around it I started supressing different elements to suit, now a piece of structure has gone thru element 1 but i dont seem to be able to supress it...  is there an easy way to get rid of element 1 without having to redefine the pattern? (redefining causes me other problems)

View 4 Replies View Related

AutoCAD Inventor :: Suppress View In IDW Missing On Right Click?

Jan 22, 2013

I haven't had the chance to use Inventor 2013 too much yet but I am doing some details and I want to suppress a drawing view.  I used to be able to right click on the view and select suppress but that option no longer exists.  The only way I can suppress it now is if find the view in the browser, right click and select suppress

IV2012 Factory Design Suite Ultimate 64bit
Includes: Inventor Professional, AutoCAD Architecture & Navisworks Manage
Windows 7 64 bit- Synergis Adept document management software
16gb RAM --- Nvidia Quadro 4000 2gb

View 5 Replies View Related

AutoCAD Inventor :: IPT File - Get Suppress Status Of Workplane

Jul 29, 2013

I have a ipt file in my assembly and try to makes some constraints. Everything ios working well, but there are some suppressed workplanes, and I don't want to use them for a automatically created constraint. Is there a way to find out the workplane suppress status?

Why are they suppressed? They are defined on a part feature (extrusion surface). And when I supress that feature, also the Workplane is suppressed.

But I only can get the visible status. Maybe there's a way to get it about the part feature, but therefore, I have to search for the part feature, and that's also a problem. I cannot get the part feature, who is used for the workplane definition (I think, it's a problem of my knowledge )

Please see attached a small view on the browser where you can see the suppressed Planes.

View 2 Replies View Related







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