AutoCAD Inventor :: Programmatically Toggle A Hole Between Tapped And Simple
Dec 1, 2011
I'm trying to programmatically toggle a hole between tapped and simple. I found the Tapped property in the object browser but when I try to use it I get a "Method 'Tapped' of object 'HoleFeature' failed" error.
Public Sub setThd(tap As Boolean, doc As PartDocument)Dim hole As HoleFeatureDim holes As HoleFeaturesSet holes = doc.ComponentDefinition.Features.HoleFeaturesFor Each hole In holes If hole.HealthStatus <> kSuppressedHealth Then hole.tapped = tap End IfNextEnd Sub
View 2 Replies
ADVERTISEMENT
Jun 19, 2012
I've recently started using Inventor at my small shop and I'm just getting things kicked off. One thing that we do fairly often involves the use of key locking inserts, similar to McMaster # 90245A034 (I couldn't post a link directly to their catalog page........)
So I'd like to edit my Thread.XLS file to include a tab for this, so I could choose the internal thread and it would create a tapped hole to a certain depth. For example, a 3/8"-16 insert has a 9/16"-12 external thread and needs a tap drill diameter of 0.516, 0.57" deep. The 9/16"-12 thread needs to be 0.56" deep by the chart.
My question is, how do I control the depths within the spreadsheet? I'm assuming that I can't just add a column and call it "tap depth" and "drill depth" and have it be good. Is there some "teach" process to tell Inventor what column represents what kind of feature?
View 3 Replies
View Related
Aug 15, 2013
I needed to create a lot of bolted connections so that my design could be sent for FEA analysis.Connections with thru holes eg. nuts and washers on the back work fine beyond the everpresent update issues.
My issue is with tapped holes, my parts already have the tapped holes but the "Botlted connection" feature insists on creating a new tapped hole for me. This is not so bad but every time I have to update for moved holes etc when updating the bolted connection I get a new tapped hole.Would really like to get rid of that tapped hole?
Also when I get the extra holes I delete the feature and then have problems with the underlying sketch which I cannot access, how do I get rid of that sketch or how do I access it?
View 9 Replies
View Related
Apr 24, 2013
i'd like to learn how to draw a simple building with a vertical walled hole next to it.
I already have a ground surface, hole surface, and the grading surfaces for backfilling the sides of the hole and some ramps to get in and out of the hole. The building floor and roof need to slope towards the hole.
I'd like to end up with an isometric view with shaded walls and roof. The only 3d command I have used is presspull and it seemed useful. Is there a thread here that explains the most efficient ways to change views, draw a building, and shade vertical walls.
I am using Civil 3D 2010.
View 0 Replies
View Related
Nov 6, 2012
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.
View 5 Replies
View Related
May 22, 2012
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.
View 9 Replies
View Related
Nov 19, 2012
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. .
View 7 Replies
View Related
Nov 28, 2012
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?)
View 5 Replies
View Related
Oct 19, 2012
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?
View 4 Replies
View Related
Apr 27, 2012
I have an assembly that contains a part and a hole feature (the hole feature is at the assembly level). Using the api, I'm trying to get the hole location relative to the part's coordinate system in a without using the holeplacementdefinition.distance property, this way I can get the hole location regardless of the way it was defined.
View 2 Replies
View Related
Aug 28, 2013
i use hole feature names in hole table.
i assign hole names attribute to hole feature but dont get attribute hole table.
how to get hole names in hole table.
View 1 Replies
View Related
Jun 17, 2013
While creating holes in a part, a small counter shows (when you click on a point) of how many holes there are.
Programs:
Solidworks (1998-2011)
Autodesk Inventor (R8 - 2013)
Autodesk AutoCad 2D
Autodesk AutoCad 3D
Catia V5
SolidEdge
Anvil (Very old program!)
Pro/E
View 2 Replies
View Related
Jul 16, 2013
I'd hoped that I could change the name of a part document like I did with sketches, simply assignment:
BSTR bstrName ;pPartDoc->get_FullDocumentName (&bstrName) ;wprintf (L"
Full document name was %s
",wchar_t(bstrName)) ;pPartDoc->FullDocumentName = L"Whatever" ;
But the compiler complains about no put method on that last line.How do I change the name of a Part Document programatically?
View 1 Replies
View Related
Mar 18, 2013
I am trying to use iLogic to programatically create virtual components in an assembly. These components will by used as iProperty "buckets" to hold Machine Center specific information to be exported to production planning software. This information is hierarchical in nature and cannot be (conveniently) stored in the assembly iproperties directly.
View 3 Replies
View Related
Mar 1, 2012
Is it possible to auto-reattach dimensions programmatically?
I have an assembly that I'm suppressing/unsuppressing parts in and my drawing dimensions keep getting orphaned. I discovered the "Preserve Orphaned Annotations" option, which keeps them from disappearing on me. I can then reattach the dimensions via the design doctor, but who wants to click the doctor 6 times for 20+ dimensions?
View 4 Replies
View Related
May 17, 2012
In ipart there is an option to add and delete rows when working with inventor graphically.I have displayed the iPart table and the values in gridview using VB.Net.
The user then selects the row in datagridview and clicks the button delete.When the button onclick even is triggered i want to delete the selected row on ipart table inside inventor.
View 3 Replies
View Related
Jun 19, 2013
im trying to programatically add a parts list into a drawing whilst programatically creating the drawing - the code works fine without the parts list code. The error its showing is 'Parameter incorect' on the line that sais PartsList.add(... In the past when ive got this error with other code it has been because ive used an incorrect parameter (e.g. decimal instead of an integer).
My error is somewhere inside the oPartsList.add(>>ERROR SOMEWHERE HERE<<<)
oDrawDoc = InvApp.Documents.Add(Inventor.DocumentTypeEnum.kDrawingDocumentObject,AssyTemplate,True)
oSheet = oDrawDoc.Sheets.Item(1)
[Code].....
View 1 Replies
View Related
Aug 6, 2012
I am trying to programatically update Units of Measure on a part or document through Document Settings, but the changes are not reflected. I cannot save the file, because the file is a result of import, so I want to leave it up to the user. During import, I am recognizing what type of units the import file has, and I need to impose them on the document, and immediately show. I cannot use templates. There is a similar issue when the Units of Measure are updated manually through the screen, they are not reflected.
View 3 Replies
View Related
Nov 18, 2011
Is it possible to programatically suppress dialogs or warnings and errors when I open Inventor?
View 1 Replies
View Related
Jun 12, 2012
I have a simple Assembly for a Frame that I made with Frame Generator. I'd like to use a rule to toggle the visible of some of the framing members.
In the sub assembly (called Frame0001:1) I created a rule:
(I have a variable called LeftAngle, and the bar I want to toggle is called Bar1.)
If LeftAngle = 90 then
Component.Visible("Bar1") = False
Else
Component.Visible("Bar1") = True
End If
I am sure this is VERY basic, but I can't get it to do anything. There is no error message - just nothing happens.
I know the rule is running though - it will change other parameters in response to the If Then statement.
View 6 Replies
View Related
Sep 2, 2013
I am trying to draft an assembly - when i want to hide some components I go to the tree and right click on the part/assembly and select Visibility.
There is a square next to visibility on the right click menu (like a 'stop' button) and nothing changes when i select it.
When I right click on the tree a second time, a tick appears (like in modelling/assembly view) and when selected it disappears.
I want to turn items off in one click -
View 4 Replies
View Related
Feb 9, 2012
I have created Engineering Notes in Part and same visible in all top level assemblies (see attached image).
I searched on web for option and it is available underAplication Option>Note Tab, but I could not able to locate option in Inventor.
Inventor: Autodesk Inventor Professional 2011
View 1 Replies
View Related
Jan 23, 2012
Can we now toggle "sketch only" geometry when creating drawing view sketch transient geometry in the Inventor 2012 API?
View 2 Replies
View Related
Jun 5, 2013
I have created some custom button in VBA. I wish I can make those buttons toggling their image.
For example my custom button toggles Part/Component priority or Highligt on/off and I would like the button image will change showing the current state.
The background image color change will work too, or the some extra tiny mark on working sceen would be useful if it quite complicated to deal with ribbons.
Generally I need to see the current state at glance.
View 1 Replies
View Related
Dec 18, 2013
Is there a way in the description field of an Inventor hole table to have mixed units? Some hole sizes at fractions, some at 2 plc, and others at 3 places.
Inventor Pro 2013 or 14
View 1 Replies
View Related
Jan 30, 2013
I have a subassembly that has been patterned.
I need to toggle the visibility of a part in that subassembly in each pattern element.
How do I refer to the part?
I have declared an object for my pattern, and can toggle the suppression on any element.
But I need to get at an individual component inside the element.
I've been trying something like this:
oPattern.OccurrencePatternElements.Item(X).Component.Visible("Valance Jig Frame - 1in:1") = False
View 1 Replies
View Related
Aug 9, 2013
I am working on some VB code to reterive the dimensions fron an IDW and put them on an excel spreadsheet for an Inspection report. I found some code to which gets the linear dimensions and have added tolerance type and tolerance bands.
I have been unable to get the hole notes off the IDW. Got the general notes to work with the following
Dim invDrawNotes As Inventor.DrawingNotes
Dim invActDrawNotes As Inventor.DrawingNote
Set invDrawNotes = invActSHT.DrawingNotes
[Code]....
View 3 Replies
View Related
May 16, 2013
I need to add thread to a hole but cannot do this under the edit command. How to do this ?
View 7 Replies
View Related
Dec 14, 2011
Is there a way to tell Inventor to use the mean value for threaded holes? As it is IV always puts the Minor-min value for the hole size, which is a PITA for any and all CAM software.
The thread data can be extracted in CAM, but the hole size still remains what it's modeled as. I know I can edit the spreadsheet and cheat it, but that isn't exactly the correct way to go about it.
View 5 Replies
View Related
Feb 5, 2012
I'm trying to get hole tolerance by Inventor API using c++ but the value returned is not correct.
the code is:
Parameter* diam = m_Feature->GetHoleDiameter(); // m_Feature is a given HoleFeature
double tol = diam->Tolerance; // returned 1.0
BSTR str = diam->Tolerance->HoleTolerance; // returned "0".
// The correct value is 2.89
How can I get the correct tolerance value?
View 1 Replies
View Related
Feb 7, 2013
I want to use the Hole command to place tapped holes to hold a pair of shafts in place inside a part using setscrews. I can make the holes for the shafts without issue. While cutting the holes for the setscrews I thought I could use the "To" Termination option and select the shaft hole as the terminating plane. However, when I do this I get en error:
"The attempted operation did not find any intersection between the Toolbody and the selected 'To' termination face/plane. Change the termination definition or the feature (profile) position."
I can work around the problem by using the fixed "Distance" termination option but this is obviously inferior as it would require manual adjustment should the shaft holes need to be repositioned. Am I missing something?
View 5 Replies
View Related