AutoCAD .NET :: How To Add Hatch Pattern Within Rectangular Boundaries In Block
Feb 28, 2013
I am in the process of translating existing VBA code into its equivalent in VB.NET (developing VS Professional 2010 and testing in AutoCAD 2010)
My problem is that I have never done hatching in VB.NET before, and now I am required to hatch a rectangular area (defined by lines) within an AutoCAD block. How to go about accomplishing this task.
To create my block, I am using a DBObjectCollection to store my lines, and then append them to the block definition, creating a reference to see what I just created.
If I were to define a rectangular outline within this block, how can I possibly hatch it?
How can I make a circular pattern of a single occurence of a rectangular pattern?
A shaft has a rectangular pattern of holes (along its axis) on its surface. I want to pattern the 4th occurence of this hole pattern as a circular pattern? Can I do it in Autodesk. I can not select the a specific occurance of a patterned feature to pattern it again.
As you see in the template photo (the photo was scanned by Microsoft Security Essentials, healthy) I wanted to extrude my circle, and I made 28 pieces with circular pattern feature; now, do I have to choose all the pieces by one by to be able to choose all?
The sum of the problem: while using the Circular Pattern feature or rectangular pattern feature in Inventor, sometimes I want to extrude (join) or cut the drawings that I made (augmented) with using circular pattern feature, rectangular pattern feature. in this case do I have to choose all the augmented members one by one (for instance I make 42 augmented members), it can take a lot of time.?
I am having trouble hatching multiple "Arc & line" boundary objects. If there is ony 1 shape mape up of Arcs & Lines it works ok, but if there is more than one, it fails,
TVLn(0) = New TypedValue(0, "line") Dim FilterLn As New SelectionFilter(TVLn) ' Selection Filter: Arcs Dim TVArc(0) As TypedValue TVArc(0) = New TypedValue(0, "Arc") Dim FilterArc As New SelectionFilter(TVArc) [code]...
is there a way to extend the hatch if the region is later extended? bd.png
the yellow highlights show the regions that are “empty” in hatch after the boundary has been changed. My current approach is to first delete the hatch, then re-apply it, but it can be very inconvenient if there are multiple regions to change.
Is there a way to automatically associate the existing hatch with new boundary (either extended or shrunk)?
When I was using AutoCad 2010 I could HATCH within a cube, circle or within any object that was joined together even if it had text in it would HATCH within the boundaries of the area to be hatched. Now that I use AutoCad 2013 this option does not work as if there is text in the object only a partial area will become hatched. This means I have to MOVE the cube or whatever shape to a place where there is no text inside it, HATCH and then move it back to where I wanted it in the first place.
I have a lot hatches with no boundary around. i need recreate boundaries of these hatches but it take too late time doing it. i am an intermediate in autocad.
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.
Can an equation be used to calculate equal distances when using the rectangular pattern.Regarding the attached .ipt file i would like to place 25 holes in the X direction with equal gap size between each hole.Also how to calculate the number of holes in the Y direction again with equal distance between each hole.I have not done this before with equations but was thinking that i would need to use the Length x Width in the equation.Do i need to add figures into the Parameters box also?
The attached file with the Hole feature the sketch is not constrained for the purpose of using an equation so i know how far from the start of the part to get equal distances between each hole to the end of the part .
I am using Inventor 2012. I have a horizontal feature that terminates at a vertical plane on one end and an angled plane at the other end. I want to pattern it down but when I use Adjust, the patterned features do not adjust to the angled plane. They just go strait down from the first feature.
Does Adjust only work if the terminator is a solid surface instead of a plane?
I am having a problem with an iPart. I created a rectangular patern in an iPart. When I place the member of the iPart in the Assembly file the pattern is not there. I need it to constrain another part to it.
I am currently trying to model a multi cavity mould tool. The cavities themselves do not follow either a circular or rectangular pattern.I have modelled one of the cavities using a revolve internal to the tool. I have also sketched out on the upper surface centre points where I need the cavities to be.
I was hoping I would be able to copy the cavity feature, select a base point and then use the centres from my second sketch to place the cavities.
I don't seem to be able to find this option. The copy and paste feature will likely work but it is hugely long winded positioning each cavity individually. Any method I might be able to use to model such a part?
Looking for some sample code for patterning a hole in a part using Inventor 2010. I dont need it to be selected because it is the only hole i have in the part. My main trouble is that I am having trouble withobjectcollection idea. As you can guess I am a newbie at Inventors API.
I need to know what sketch is associated to either a "Rectangular"or "Circular"array. This is so I can filter out sketches that are not repeated in an array.
Here is my code so far (Circular Array).
Dim oCP As CircularPatternFeature For Each oCP In oDef.Features.CircularPatternFeatures THIS IS THE TROUBLE LINE If sketch = oCP.Parent Then Set oCP = oDef.Features.CircularPatternFeatures.Item(oCP.Name) [code]........
I have a simple test part containing an extruded disk (Sketch1) and 8 holes on a pcd (Sketch2). I only want to array a sketch if it is arrayed.
I'd like to make a rectangluar pattern of a part that is groove welded into a plate. Inside the pattern command I can select the part but not the weld. How to avoid having to do each weld individually?
While using the Circular Pattern feature or rectangular pattern feature in Inventor, sometimes I want to extrude (join) or cut the drawings that I made (augmented) with using circular pattern feature, rectangular pattern feature. in this case do I have to choose all the augmented members one by one (for instance I make 42 augmented members), it can take a lot of time. also after applied any of these features I can't use trim feature, can I ? but sometimes using the trim feature after applying the Circular Pattern feature or rectangular pattern can be necessary.
The problem: I want a circular pattern for rectangular shaped holes, and I don't want the holes to rotate. The circular pattern doesn't have an option to retain the orientation.
I would like to use a sketch as the basis for a rectangular pattern which is set up to use the curve length for both directions of the rectangular pattern so that when I update my rectangle in a sketch, the pattern automatically adjusts to the new sketch. I have sketched a rectangle, and used one leg of the rectangle to establish the direction and length of one dimension of the array.
However, when I try and choose the Direction 2, my only options are the entire rectangle or faces- I can no longer select other and choose a single side of the rectangle.
I was able to accomplish what I wanted by using two sketches, with the second sketch simply projecting one leg from the first sketch. Using one sketch just seems inherently safer than trusting projected geometry.Is there a way to accomplish this with one sketch instead?
Any work around for rectangular patterns in assemblies?
I want to pattern a screw using an existing Part Feature Pattern; I have figured out depending on how the part is assembled you get two outcomes and if the part is mated opposite side to how the feature was patterned you get the parts going the wrong way (see attached pic).
Is there a “flip direction” option anywhere or do you just have to be super diligent on how the seed feature orientation is in relation to the assembled pattern?
We are using Inventor 2011 and I would like to make a small app that allows my users to graphically select one or more occurrences of a rectangular pattern feature Then allow them to suppress them if desired.
I have determined the code to loop through the pattern occurrences and toggle suppression for any instance. What I do not know how to do is determine which occurrences have been graphically selected.
At this time I am only concerned with round hole features. (Perforated metal)
I recently downloaded new hatch pattern that were not in the AtoCAD hatch list and I really need..step to install them to the hatch list so AutoCAD can recognize them?
I have a bit of code that I use to create hatches but the names are just coded inside (like "BRICK" or "CLAY"); I would like to list all available patterns for the curent drawing(on a form, using a combobox, etc), which is the best way to go?
I have a hatch Pattern 'DOTS' (A default AutoCAD Pattern) filled in an area in my drawing. The layer is plottable. The pattern is in proper scale (I have attached a screen shot). Now, when I publish a PDF, though it shows up in the preview, it is missing in the pdf.