I need to cut a hole in the hatch pattern. A hole is a area which is not hatched. I have two closed polylines. I need to hatch the poly1 - poly2 area.
I tried adding both to the ObjectIdCollection, but that throws up an error. I tried creating Regions and subtracting it. However, we can create Region for the closed polylines, but not the hatch.
Here is the code to create the hatch
[CommandMethod("TestHatchHole", CommandFlags.UsePickSet)] public static void CreateHatch() { Document doc = Application.DocumentManager.MdiActiveDocument; Database db = doc.Database; Editor ed = doc.Editor; try { using (Transaction Tx [code].....
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?
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.
I have a hatch (ANSI31) enclosed by a closed polyline. Whenever I change the hatch from ANSI31 to GRAVEL some of the hatch shows up outside the boundary. The Polyline consists of both arcs and line segments, and the hatching errors are occurring within the radius of the arc segments. Changing it from Associative to Non Associative makes no change.
I am in need of a lisp routine which will automatically pick up all hatch and solid hatch patterns within a drawing and change the colour to colour 254.
Just downloaded Autocad 2013 and am missing quite a few of the standard hatches (siding, soldier, board and batten, etc.) What should I do to get them back. When I open old drawings with these hatches in them, they load just fine...but I am unable to hatch any new areas with these hatches (because they are not listed in the hatch library)
I want to be able to add a Block Reference to a hatch. I'm adding the block reference to an ObjectIdCollection and the hatch is not taking it when using AddLoop().
So I thought maybe I needed to add the location of the polyline (curve-like) object that is member of the blockreference to the hatch, but I don't know how to get its ObjectId.
Also, I'm trying to delete certain HatchLoop that is associated to a polyline but I don't know how to do it. I'm going through the loops in the hatch but I don't know what to do there. I wanna do this so I create a new and different hatch on top.
I think one could also copy all the loops except the one one wants to delete, but I'm not sure how to tell which one is the one I want to delete that is the one associated to a polyline or that is in certain region.
I've migrated from 2005 to 2014 LT and wondered if they have added to the hatch commands. I've looked and haven't found anything. Is there a command that you can pick a hatch pattern already shown on the drawing and make that pattern the existing one to use? I sometimes have multiple hatch patterns and scales, and wanted a quick way to go from one to another without lisp help.
Why is my hatch off set from what I want to hatch? I pic the points of the area in 3d i want to hatch but it ends up hatching out of the points i select?
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
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.
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
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?
I picked the ADSK-METRIC-120 to change the hole size from 25 to 120, but the new hole size ADSK-METRIC-120 is RED color and I cannot refresh or finish it. why size 25 worked, but not the 120?
How to use sweep to successfully put threads in a hole. Attached is the drawing with a helical coil and an object in two different orientations (A and B). To the right of that, you can see the path they took for each. The object rotated from the original position before following the path. Tried changing the position of the object to sweep, but either it sweeps it 180 degrees from what it is already doing (still wrong) or the program says it is invalid and won't do anything till I put it back in the original rotational position and try again.
My part does everything I want with threads but the other option I need to program is a straight hole with no threads. I assume I can do this with Param for the existing hole but not sure what it would be called? Is there a list or method of determining what these parameters are called so I'll be able to find them in the future?
Is there a way to do this? 2 parts, 1 has a hole in it and the other has a slot. I want to constrain the center of the hole to the center of the slot. How do I do this?
I have a drawing of a sheet metal part that I did late last year. I used a Hole Table to dimension all the holes.
Fastforward to today. I added two holes that are different in size than any other hole. So when I opened the drawing it automatically added them to the Hole Table and gave them tag #'s in a new group and it kept the grouping in Alpha order. A, B, C were there before and it added D. Great, that's the way to do it.
Then I decided I needed to change the hole size. The change would keep the size different than any other hole on the part still. I go into the drawing and it change the size in the Table BUT, it also moved them up to the top of the list but kept the tag # as D*.
How do I get those two entries back to the bottom where they belong to keep them in order?
I have the simple (for you ) question about hole tolerance window: I want to open hole tolerance dialog box and "click" OK button (ofcourse I want to do that via VBA code). Only this, I wouldn't change tolerance type or value of tolerance.