AutoCAD .NET :: How To Cut A Hole In A Hatch

Nov 11, 2013

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].....

View 2 Replies


ADVERTISEMENT

AutoCAD Inventor :: Hole Table Formatting - Different Text Depending On The Type Of Hole

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

AutoCAD Inventor :: Ultimate 2013 - Cannot Add Hole To Existing Hole Chart

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

AutoCAD Inventor :: Can't Select Hole Edges When Creating Hole Table

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

AutoCAD Inventor :: Control Hole Dimensions Called Out On Hole Chart?

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

AutoCAD Inventor :: Use Hole Command To Place A Hole In A Part

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

AutoCAD Inventor :: How To Get Hole Location Without Using Hole Placement Definition

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

AutoCAD Inventor :: How To Get Hole Names In Hole Table

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

AutoCAD Inventor :: Hole Count During Hole Creation?

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

AutoCAD Visual LISP / AutoLISP :: Entmake A Hatch Entity From A Hatch Template?

May 2, 2013

I am trying to entmake a hatch entity from a hatch template.

After entget the template hatch entity, i get the followings

Select object: ((-1 . <Entity name: 7ed11b78>) (0 . "HATCH") (330 . <Entity
name: 7efc7c10>) (5 . "737") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 .
"SECTION-LABEL") (62 . 255) (100 . "AcDbHatch") (10 0.0 0.0 0.0) (210 0.0 0.0
1.0) (2 . "SOLID") (70 . 1) (71 . 0) (91 . 1) (92 . 1) (93 . 8) (72 . 1) (10
633596.0 5.79713e+006 0.0) (11 633519.0 5.79713e+006 0.0) (72 . 1) (10 633519.0
5.79713e+006 0.0) (11 633519.0 5.79708e+006 0.0) (72 . 1) (10 633519.0
5.79708e+006 0.0) (11 633500.0 5.79708e+006 0.0) (72 . 1) (10 633500.0

[code]....

Now I  wrote the following code using the above data as follows

(entmake (list (cons 0 "HATCH") (cons 67 0) (cons 410 "Model") (cons 8 "SECTION-LABEL") (cons 62 255) (cons 10 (list 0.0 0.0 0.0)) (cons 210 (list 0.0 0.0 1.0)) (cons 2 "SOLID") (cons 70 1) (cons 71 0) (cons 91 1) (cons 92 1) (cons 93 8) (cons 72 1) (cons 10 pt1) (cons 11 pt2) (cons 72 1) (cons 10 pt2) (cons 11 pt3) (cons 72 1) (cons 10 pt3) (cons 11 pt4) (cons 72 1) (cons 10 pt4) (cons 11 pt5) (cons 72 1) (cons 10 pt5) (cons 11 pt6) (cons 72 1) (cons 10 pt6) (cons 11 pt7) (cons 72 1) (cons 10 pt7) (cons 11 pt8) (cons 72 1) (cons 10 pt8) (cons 11 pt1) (cons 97 0) (cons 75 0) (cons 76 1) (cons 98 1) (cons 10 (list 0.0 0.0 0.0)) (cons 450 0) (cons 451 0) (cons 460 0.0) (cons 461 0.0) (cons 452 1) (cons 462 1.0) (cons 453 2) (cons 463 0.0) (cons 63 5) (cons 421 255) (cons 463 1.0) (cons 63 7) (cons 470 "LINEAR")))

The point variables pt1, pt2....pt8 are all defined. But when I run the code the hatch is not being created? Why?

View 1 Replies View Related

AutoCad :: Change Hatch From ANSI31 To GRAVEL Some Of Hatch Shows Outside Boundary

Aug 24, 2011

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 using AutoCAD 2011.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Automatically Pick Up All Hatch And Solid Hatch Patterns

Aug 6, 2008

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.

View 9 Replies View Related

AutoCAD 2010 :: Open Hatch Edit Dialog With Double Click On Existing Hatch?

Apr 17, 2010

It is no more possible open Hatch Edit dialog with double click on existing hatch. Now, this way opens only Properties

View 9 Replies View Related

AutoCAD 2013 :: Missing Hatch Patterns In Hatch Library?

Jan 2, 2013

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) 

View 9 Replies View Related

AutoCAD .NET :: Block Reference Hatch - Deleting Loops Within A Hatch

Feb 22, 2013

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.
 
Hatch thisHatch = new Hatch();thisHatch.Layer = layerName;thisHatch.SetDatabaseDefaults();thisHatch.SetHatchPattern(patternType, patterName);thisHatch.Color = Color.FromColorIndex(ColorMethod.ByColor, colorIndex);thisHatch.Transparency = new Transparency((Byte)(255 * (100 - 60) / 100));tSpace.AppendEntity(thisHatch);transaction.AddNewlyCreatedDBObject(thisHatch, [code]........

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.

View 1 Replies View Related

AutoCAD LT :: Hatch Button Does Not Activate Hatch Dialog Box

Dec 17, 2011

I have AUTOCAD LT 2012 - windows 7 - SP1

Neither the button for Hatching or the Draw Hatch menu do not activate the HATCH DIALOG BOX?

This means I cannot Hatch?

I have also added the Hotfix for the Ribbon and it made no difference.

View 6 Replies View Related

AutoCad 2D :: Hatch Command To Match Existing Hatch

May 6, 2013

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.

View 3 Replies View Related

AutoCad :: Why Is Hatch Offset From What Want To Hatch

Feb 11, 2012

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?

View 5 Replies View Related

AutoCAD Inventor :: Get Hole Notes From IDW?

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

AutoCAD 2013 :: Cut Hole In 3D Model

Jul 2, 2013

I am working with a cylindrical shape (solid) and I have revolved it around an axis, but I need to "cut" two holes through the part.

View 6 Replies View Related

AutoCAD Inventor :: How To Add Thread To Hole

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

AutoCAD Inventor :: Use Mean Value For Threaded Hole

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

AutoCAD Inventor :: Getting Hole Tolerance By API Using C++

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

AutoCad 3D :: Add Hole Back Into Solid?

Mar 26, 2012

Can you add a hole back into a solid after you have subtracted it without remodeling.

View 4 Replies View Related

AutoCAD Inventor :: Hole To Termination Option?

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

AutoCAD Inventor :: Punch Hole Not Working?

Dec 7, 2012

Sheet Metal Parts > Punch Holes (Contintued). 

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? 

I am using the Autodesk Inventor 2012.

View 1 Replies View Related

AutoCAD 2010 :: Sweeping Threads In A Hole

Nov 7, 2012

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.

View 9 Replies View Related

AutoCAD Inventor :: Turning Off Hole Threads

Oct 29, 2011

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?

View 1 Replies View Related

AutoCAD Inventor :: Constraining A Hole To A Slot

Mar 26, 2012

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?

View 9 Replies View Related

AutoCAD Inventor :: Hole Table Dimension

Apr 23, 2012

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?

View 1 Replies View Related

AutoCAD Inventor :: Hole Tolerance Dialog Box (VBA)

Jan 11, 2014

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.

I show you what I want on screen.

View 1 Replies View Related







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