AutoCAD Inventor :: Suppression Of Hole Feature With VBA Instead Of ILogic
Feb 7, 2012
In ilogic it's easy to suppress features like holes, but I cannot combine iparts with Ilogic, so I try the same in VBA, but I don't know the way to do it
Is there some existing sample code like this ilogic one for VBA?:
I am looking to use iLogic to create feature suppression in individual drawing views, i.e for simplicity, in view 1 part has a hole in view 2 part does not have a hole it has been suppressed
I am aware this can be done with iParts but im trying to avoid using iparts.
Problem: I have a part that goes through several processes, casting, machined, finish. I want to create a drawing sheet with views displaying the part through different stages.
Solution One: Create as many different parts (with different file names) for each stage and place the views accordingly. Really? Three or more part files to illustrate a single part?
Solution Two: Create a user parameter that will auto-suppress features to create different Levels of Details on Parts, but there is no way to initiate/set the user parameter for different views.
I understand 2012 has the ability to create part design representations, but we are still on 2011 and I am leery to upgrade for a feature that still might not work properly.
There has to be a way to suppress features in a specific view...iLogic? iPart? anything? I simply can't believe this is the case.
I use a simple If/ElseIf code to suppress / uns uppress & reposition holes on a plate to ensure the desired number of fixing hole pairs.
The hole positions will change and suppress/unsuppress depending on the value of the Tie Rod Pitch (vertical) and the O/A length of this plate (and pressure inside the radiator but this is sorted in Excel).
For example PitchMax = 500mm, BP_2ndS= 1600mm (plate length)
If (3 * TieRodPitch_MAX_2ndS ) < BP_2ndS < (4 * TieRodPitch_MAX_2ndS) Then ...
For some reason some times the parameters don’t update in the hole and pattern features after running the rule thus they are in the wrong position or not suppressed/unsuppressed. When I rearrange the If/ElseIf codes it may work. All I change is just replace ElseIfs with If-End Ifs or the other way around...
Which does not make any sense to me, since I change nothing in the parameters or conditions. Is this code structured poorly?
p.s. this is an engine radiator and the number of tie rod pairs depend on the height of the block, pressure inside, width, etc.
I have created an iPart which uses the Hole Feature (counterbore hole). The hole is not threaded. Is there a way to put the Hole Feature into the iPart table so when a user enters specific values, he/she could type in or select a bolt size and the counter bore hole feature will use the correct dimensions for said bolt size (ie. I would like the counterbore holes for an M6 Socket Head Cap Screw. So instead of typing in the counterbore hole diameter, depth, and bolt diameter, etc... it would automatically enter the default values.) Or is this something that must use iLogic?
Yesterday I tried to make a table-driven I-feature of a few drilling paterns.
I want to use this for drawing steel manifolds. The I-feature is used to insert standard drilling paterns, for example a patern to fit a standard flange.
The only problem is, for the thread I used the thread feature, otherwise it doesn't show up in the I-feature.
But when I make a drawing of a part were this I-feature is used, the specification of the thread doesn't show up when I create a hole table, because in the I-feature, the thread is a separate feature.
I just want to notice the Autodesk guys that when editing a hole feature in an assembly, then the sketch is hidden so that is not possible to pick more centerpoints. I noticed this when working with a sheet metal part, I don't know if its the same with a regular part.
How can I change the termination of an existing hole feature?
If app.ActiveDocument Is PartDocument Then Dim doc as PartDocument doc = app.ActiveDocument Dim hole as HoleFeature hole = doc.ComponentDefinition.Features.HoleFeatures(1) ...End If
I am trying to link a hole feature in a part in an assembly with the number of a particular feature in another part within the assembly. I have a base plate part with a coutersunk hole feature that I want to pattern by linking it to the number of bosses in another part within the same assembly.
In order to reflect production process, I have to create holes on the bent pipe at assembly level after 2 bent pipes are welded to the straight pipe. Now when I suppress holes, it does not suppress only at LOD or view rep but throught the whole assembly.
Is it possible to suppress features such as hole using LOD or view rep, which are made at the assembly level? or I have to use another method? See below in highlighted.
I would like to know if it is possible to use iLogic to change the Hole Type from Through to Tapped as conditions dictate. Is this even possible? I already have a backup plan but wanted to check out all possibilites before I proceed. Using Inventor 2012 SP2.
Would like to know if it is possible to access properties of Hole features through iLogic and create my own selection dropdown for holes on a form, similar to the dropdown I was able to create by accessing materials iProperties?
Or, even better, is there a way to cause the hole feature dialogue to run during the execution of the rule for a specific hole feature? See attached for more explanation.
I have a part with multiple holes created in a single hole feature (i.e. not patterned but made by selecting multiple sketch center points). As desired, the holes all have the same size since they all fit the same fastener. Is there a way to easily assemble fasteners to all the holes? Currently, I am using insert for each fastener and this gets tedius if there are many holes. Additinally, if the number of holes changes, a manual update is required. I'm hoping there is something that works similar to associative patterns.
If we require to create patterned holes thru a number of solids, this works great only requiring the one hole feature.
However, once an assembly is created with the parts, (these parts obviously have their own derived individual solids in them) when needing to place a bolted generated assembly to the patterned holes. It won't recognise the pattern.
So I've come to the conclusion that the bolted generator/drop place function really needs improvement for solid body modelling technique. (Mind you, the BG needs a complete rethink because its at about 50% complete).
What I can see needs to be added, is the functionality of the parts recognising the hole pattern. e.g. when using the make components function it gives an option to add a link to the hole feature.
My only other option at present is to create the holes within the assembly file and transfer the hole feature to each part file. This obviously loses the parametric functionality.
I have an assembly with a pattern in it, the number of instances of the patterned part increases based on an overall dimension input by the user. It requires a cut extrusion at a specific point, regardless of which instance of the pattern is affected. Hence I need a way of adding all instances of the patterned part as a participant of the feature. How would I go about this?
Possible to add a thread feature to a part using iLogic.
Basically in the iLogic form if the user selects "Threaded Rod" the existing Extrusion is updated to reflect a cylinder with a length and diameter specified by the user and then I need to have a Thread Added to the cylinder.
Computer Specs: Windows 7 (64 Bit) Pro. SP1, Inventor 2014 Pro, 3D Connexion SpaceNavigator (Driver 3.15.2) Motherboard: ASUS Rampage IV Extreme x79 Socket 2011 Processor: Intel Core i7 Six Core Sandy Bridge-E 3.2GHz OCed to 4.7GHz (Under Water) RAM: G.Skill Ripjaw Z-Series 32 gig quad channel of RAM 1800MHz OCed to 2133MHz Video Card: 2x Nvidia Geforce GTX 770 (Running Six (6) Monitors) Monitors: [Primary = 2x 24in HD WS][Secondary = 2x 22in HD WS][Tertiary = 2x 19in FS] Primary Hard Drive: OCZ Vertex IV 256 GB Solid State Drive Secondary Hard Drive: OCZ Vertex III 120 GB Solid State Drive
I amrying to create embedding of a text entered through dialog box. The sketch regenerates fine but the Emboss doesn't. Cannot figure it out, tried a lot of different approaches...the text has to be configured this way - need to control it's height.
Wikihelp states that it's possible to get the COG of a part within an assembly.It doesn't seem to work anytime getting an error on some missing included references .do I need a Sub-Rule inside the single part?
I downloaded a model off a website, it is, (excuse my electrical background ignorance) a jumper for terminal blocks.Our electricians use these and cut them down to size as needed.
Is there a way to use iLogic and a form or message box, to prompt upon opening the part as to how many jumpers are needed for the current assembly> It comes stock with 10, but they sometimes only use 2, 3 4 etc. etc..
I didn't model the part, but I can if it will make the rule easier to write.My idea I suppose was to have the part modeled with 2 jumpers and then use ilogic to create more if necessary.
Is there a way to copy all the supression state of one LOD to another?
I have here some Substitutes from specifics LODs in my IAM, and i need to supress/unsupress some parts (same parts) in all my LODs. So there is my question, how could I copy one state from first LOD and then apply to all of them ?
I cant just delete and create again copying from the first LOD because I have Substitutes based on those LOD, so if I delete them iI'll get some problems here.
I've got a template with a set of Object defaults for an Inch drawing and a set for a Metric drawing. I've just noticed that within my metric set, if I insert a hole table with tapped holes, the font on the tapped holes doesn't match the other hole types. I'm searched around, but all the settings for the hole table style reference the same text style. (Please see the attached image.)
So is there a way to set a certain hole type to have a certain font or size within a hole table? Because if there is, I'd obviously like to remove it..... But I can't seem to figure out where the issue is.
I am trying to add a hole to an existing hole chart. I drop the part into a new drawing, set the ordinate "zero", and add a hole chart by selecting a few holes. When I attempt to edit the chart: click chart, right click "edit", click add hole, select new holes, right click to create, the "create" selection is greyed out and all I have to choose from is cancel. I searched the forum here but could not find a reference to this a know issue. Am I doing something wrong or is this a glitch of 2013.
We are running win7 x64 machines and this happens on both the 2013 Ultimate and Premium editions of the product.
I have had this problem intermittently for a few weeks since going to Inventor 2013 SP1.1. I have a part within an assembly and that part has holes created in it before assembling it with other parts. Now when I try and create a hole table in a drawing of the assembly I cannot select hole edges and the hole table is blank when trying to create it automatically from view selection. I originally thought it may be an alignment issue but I have since aligned everything correctly and it still persists. I can create the hole table if I import in just the part into the drawing but it will not allow me to create the table on the whole assembly.
I can also create the hole table if I use "centred pattern" and create cross hairs on all of the holes however it does not give me correct annotations for the holes as shown in attachment and I can manually change the annotations but seriously this should not be required. As shown in the screen shot it reads as A1 down to K1 instead of A1 to A10. .
Question: Is it possible to control the Hole Dimensions called out on the Hole Chart? As in controling leading/trailing zeros for main hole dim, alt home dim and tolerances? Can you combine the Main Dim with the Alt dim in a single column, separated with parentheses? (same with tolerance?)
I would like to use the hole command to place a hole in a part. When I place the hole it won't allow me to use one of the origin planes to locate the hole from. Can I only locate holes off edges?