AutoCAD Inventor :: Hiding Sketch Or Changing Lineweight?

Dec 26, 2012

(Image attached). I am using Inventor 2013 and Visual Basic 2010 Express.  I created a sketch within one of my views on my .idw.  I would like to turn this sketch on or off based on the input from a variable that is read elsewhere.  I have used the following code from the help file with no luck so far.
 
Public Sub SketchEdit() Dim oDrawDoc As DrawingDocument oDrawDoc = _invApp.ActiveDocument ' Determine if there are any sheet overlay sketches. Dim oSketches As DrawingSketches oSketches = oDrawDoc.ActiveSheet.Sketches If oSketches.Count = 0 Then Exit Sub End If ' Set a reference to the first sketch. Dim oSketch As DrawingSketch oSketch = oSketches.Item(4) oSketch.Edit() If vValue_Closer = "" Then oSketch.LineWeight = 0 Else oSketch.LineWeight = 0.007 End If ' Return from edit mode. oSketch.ExitEdit() End Sub

The code errors out on the line 'osketch = osketches.item(4)'.  I have tried using a number like that, and I have also tried using the actual name of the sketch.  Neither works.

oSketch = oSketches.Item("Closer_Reinf")

what to edit here to get it to look at my Closer_Reinf sketch to hide it/unhide it ?

View 8 Replies


ADVERTISEMENT

AutoCAD Inventor :: Changing Extrusion By Changing Sketch Results In Errors

May 9, 2013

The attached files are two sprockets. The original part has 30 teeth. I need 34 teeth.

The MODIFIED part has one of my attempts at making 34 teeth. I have tried the following with the same error dialog box (see below):

1. Edit Sketch_6 (associated with Extrusion1) by deleting all but one of the teeth lines (2 arcs and 2 lines that make up a tooth) and making a circular pattern of 34.

2. Same circular pattern, except this time I "Close the Loop" (right-click on one of the teeth line segments > Close Loop > click on all the segments until the loop is closed).

3. Same circular pattern, except this time change the resulting patterned lines into construction lines, trace these lines with arcs and lines of my own (not construction lines), and close the loop on my own lines.

When each of the 3 attempts failed, I tried deleting Extrusion1 and making a new Extrusion feature from Sketch_6. I cannot select what I want in Sketch_6 in order to make the teeth.

I'm at the point where I'm just going to take the dimensions from the circular pattern sketch of 34 teeth, delete Extrusion1 and Sketch_6, and make my own sketch and extrusion.

For the future, I really would like to know - why is it so difficult to alter features like this? Yes, I understand that Sketch_6 is not fully constrained, and on top of this I am not privy to how it was generated in the first place (this is a part file from a vendor). But it does not strike me as something overly complicated for the Extrusion feature to recognize a change in its associated sketch. This is not the first time I have encountered something like this.

View 1 Replies View Related

AutoCad 2D :: Lineweight Is Not Changing?

Jan 9, 2014

I already change the lineweight on the properties but nothing happens to the line. What's the matter?

View 2 Replies View Related

AutoCAD Inventor :: Changing Dimension Text Size Of Any 2D Or 3D Sketch?

Feb 29, 2012

I am having trouble changing the dimension text size of any 2d or 3d sketch..

the default has changed for some reason (i might have accidentally changed it while looking for something the other day) but i need to know how to change it back.. I can't do anything without a dimension getting in the way!

View 2 Replies View Related

AutoCad :: Change Lineweight Of Specific Line In Project Without Changing All Other Lines?

May 20, 2012

How to change the lineweight of a specific line in my project without changing all other lines?

View 2 Replies View Related

AutoCAD 2010 :: Add And Delete A (lineweight) From The Lineweight List?

Feb 13, 2012

How to add and delete a “lineweight” from the lineweight list?

I’m wondering if there is a way to add and delete lineweight from the lineweight list?

Software: AutoCAD 2014, AutoCAD C3D, AutoCAD M3D, Revit
Windows 7 (Ultimate 64 bits),
Firefox 20.0,
Kaspersky 2013.

View 9 Replies View Related

AutoCAD Inventor :: Shared Sketch Generates Sketch Doctor Error - Feature Suppressed

Sep 21, 2011

I've created a shared sketch and have used it with various features. Sometime those features are suppressed. The model works fine but the shared sketch generates a sketch doctor error because the feature that created it has been suppressed. Is there anyway to make the sketch suppressed so it doesn't trigger a sketch doctor error? Inventor 2013

View 2 Replies View Related

AutoCAD Inventor :: Copy Part Sketch Into Drawing Sketch

Sep 20, 2012

How do I duplicate the 2D line work from a part level sketch into a drawing level (overlay) sketch?

I started a simple 2D piping system diagram sketch by opening a new part file and using a sketch to stick draw the system schematic including some annotations.  Then I opened a new drawing file and made a base view of the part file to bring a view of the original sketch into the drawing.

I realize now that it would have been much easier to have created the schematic directly in a 2D sketch at the drawing level, which would have made editing the annotations much easier at the drawing level, and there is really no need for the part file to exist.  I have no intention of creating a 3D model or "real" part in the .ipt file, was just using it as a jumping off point to sketch.

I was thinking that I could correct my error in judgment by just copying the sketch and pasting it into a new sketch on the drawing, but it doesn't want to work that way.  I have tried copying both the whole sketch at the browser level, and the entire sketch contents (all of the lines and annotations) from the opened part sketch, but when I attempt to paste either of those into the drawing, paste does not seem to be an option.  I'd rather not have to draw the whole thing again, as in typical fashion, my once simple sketch has grown in proportion and complexity from its simple beginning.

View 4 Replies View Related

AutoCAD Inventor :: How To Get Sketch Point Data From Sketch Entity

Dec 3, 2013

I was trying to query some sketch points data from a profile Path using code as below. However the program stopped without telling the reason.

Code below:
i = 0;
foreach (ProfileEntity oSourceProfileEntity in oProfilePath) { switch (oProfilePath[i].SketchEntity.Type) { case ObjectTypeEnum.kSketchArcObject: { SketchArc srcSkArc = default(SketchArc); srcSkArc = (SketchArc) oSourceProfileEntity.SketchEntity; // error points[i] = srcSkArc.StartSketchPoint.Geometry; break; } default: { SketchLine srcSkLine = default(SketchLine); srcSkLine =(SketchLine) oProfilePath[i].SketchEntity; // error points[i] = srcSkLine.StartSketchPoint.Geometry; break; } } i++; } 

View 2 Replies View Related

AutoCAD Inventor :: Converting 3D Sketch To 2D Sketch From IGS File Using Wires?

Aug 1, 2011

First we imported an ".igs" file to inventor, which produced "wires".  Then by promoting the wires it produced a 3-d sketch. 

The model is in one plane and 2-D, and we are trying to use Ansys 2-D analysis, but in-order to do so it needs to be in a 2-D sketch.

The model is too large to be redrawn on a 2-D plane, how to convert it to a 2-D sketch

View 9 Replies View Related

AutoCAD Inventor :: Change Sketch 2013 Into Sketch Of 2010?

Dec 14, 2012

want to change sketch 2013 into the sketch of 2010 

View 1 Replies View Related

AutoCAD Inventor :: Sketch Disappears When Editing Another Sketch?

May 30, 2013

When I edit certain sketched some other sketches disappear. see attached.

This is causing modelling to slow down as I can not project lines from the sketch that has disappeared.

View 8 Replies View Related

AutoCAD Inventor :: Modify The Sketch From Projected Sketch?

Aug 22, 2012

After I create a adaptive part from projected sketch. How to modify the sketch? Please see the part attached.

View 6 Replies View Related

AutoCAD Inventor :: Difference Between Sketch And Planar Sketch?

Mar 4, 2012

what is the difference between a sketch and a planar sketch?

View 2 Replies View Related

AutoCAD Inventor :: Hiding BOM Column

Sep 25, 2012

Is it possible to have a column in the BOM but i do not want to show it on the drg.

like you can do it for rows for example...

View 9 Replies View Related

AutoCAD Inventor :: Constraining A Sketch To Another Sketch?

Aug 16, 2012

I'm having trouble with constaints, I'd like to constrain my sketch to a point in another sketch on a different plane. Is this posible in Inventor? If so how? If Inventor works differently how would you get a points in one sketch to be linked to points another?

View 2 Replies View Related

AutoCAD Inventor :: Hiding Bodies In A Drawing?

Jun 28, 2012

I have created a part with multi bodies (concrete block with reo bar), in the drawing I want a view that shows just the reo bar - concrete hidden.  Can this be done?

View 2 Replies View Related

AutoCAD Inventor :: Hiding Features In One View

Nov 29, 2012

I am making a multiview drawing with isometric of a certain sheet metal part. Due to manufacturing reasons, they have to make the part longer than necessary to get a bend in it then I will have them shear off the extra. Is there a way I can show the multiview and flat pattern WITH the extra material and show the isometric WITHOUT that extra? In the model I remove the excess with a cut but I don't know how to suppress a feature for one view and not another.

View 2 Replies View Related

AutoCAD Inventor :: Hiding Features In One View Of IDW

Jul 17, 2013

I am trying to hide an extruded cut in one view of my .idw.  I have tried supressing in one view but this does not work. I need to show a before and after of this cut in the same model.  I can not make two models because this is a controlled document.

View 5 Replies View Related

AutoCAD Inventor :: Hiding Extrusion (cut) In Assembly

May 17, 2012

I am working on detailing an assembly that requires two parts to be bolted together and then have a hole bored through both parts.  I want to show the assembly without the bore and then with the bore. I do not want to have to create a derived part.  There should be a way of toggling this extrusion in the assembly view, but I have not yet found it.

View 4 Replies View Related

AutoCAD Inventor :: Hiding Drawingcurves In Assembly Drawingview Through API

Aug 22, 2011

I want to hide some drawingcurve in my assembly drawingview,but can't make it.

My code is as follows:

Public Sub HideDrawingcurves()
Dim oDoc As DrawingDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oSheet As Sheet
Set oSheet = oDoc.ActiveSheet
Dim oDrawingCurve As DrawingCurve
Set oDrawingCurve = oDoc.SelectSet.Item(1).Parent
oDrawingCurve.Visible = False
End Sub

I'm reminded that there is no such method as the bolded .How to hide or delete drawingcurves

View 3 Replies View Related

AutoCAD Inventor :: Speed Up Part List Hiding Process?

Jul 10, 2012

I'm writing code to split long part list in new sheets. Infact it's finished but very slow. Because each time I hide the line part list start to refresh itself...

I tryed to use

oDoc.DrawingSettings.DeferUpdates = True

But in this case I can only see empty part list on each page?!...

I just want to speed up process and I want to refresh part list view after than hiding process finished completely...

View 2 Replies View Related

AutoCAD Inventor :: Allows Hiding Of DIMENSION Lines And ARROWS In IDW Files?

Sep 23, 2011

Inventor 2010 suite

If IV2010 allows hiding of the DIMENSION lines and ARROWS in an IDW files? I found a thread from 2009 that says it is impossible.

However, I found a way to hide them on some RETRIEVED dimensins, but not on others.

How to MANUALLY, or to create STYLE that hides MY choice of:

1. EXTENSION LINES,

2. DIMENSION LINES,

3. ARROWS

View 1 Replies View Related

AutoCAD Inventor :: Hiding Solid In Drawing For A Single Part File

Feb 1, 2012

I have a part file  that contain 7 separate solid. But in the drawing i want to show only 4 solids.

 For this reason i put invisible command  to other 3 solids in the part file . but in the drawing,  i still see  all the seven parts. 

View 1 Replies View Related

AutoCAD Inventor :: Cannot See Sketch

Oct 22, 2013

Just installed inventor on a new PC. When I go to sketch a line it appears to be drawn but nothing is being created.

View 4 Replies View Related

AutoCAD LT :: Lineweight Not Plotting

Apr 26, 2013

I am trying to embolden lineweights to stand out on the drawing, without them getting in the way when viewing in the drawing.  I have set the lineweight in the layer dialogue box to the max size (2.xx mm), checked the "plot lineweights" in the printer dialogue and switched between none and grayscale (this is so the assigned colors will fade out in the background).  Nothing I have tried thus far has changed the print output on any of my printers (virtual PDF, HP2100, HP2600n, HP2840 they are all very old).  I have read through the lweight command and help sections, but I don't need it assigning the lw just getting it to properly print.

One possible problem: is the line weight relative to scale or is it absolute?  I am printing at 1/8" scale, and that can't change. 

View 2 Replies View Related

AutoCad :: Plotting To PDF - Lineweight Be The Same

Dec 6, 2012

Quick question about plotting to a PDF. I'm using autocad 2013 and I'm plotting to a PDF printer called bullzip, a free PDF printer. My question is, will my line-weights be the same if I have kinko's print a PDF file with my drawings in them

View 2 Replies View Related

AutoCAD Inventor :: 3D Sketch - Offset

Apr 18, 2013

Is it possible to offset this 3D sketch1, it must still follow the curvature.

View 9 Replies View Related

AutoCAD Inventor :: Sketch Will Not Offset

Apr 30, 2013

Inventor 2011 will not offset polygon in sketch mode.  I get "Method not supported for transient meta" error message.

View 9 Replies View Related

AutoCAD Inventor :: 3D Sketch From Text?

Sep 12, 2012

is it possible to create 3D sketch from text?

I need it for engraving as a toolpath and for drawings.

Emboss tool is more suitable for styling and visualisation.

Attached sample from Pro-E:

View 3 Replies View Related

AutoCAD Inventor :: How To Print 2D Sketch

Nov 29, 2003

I need to print an initial 2d sketch (without any 3d work done on it).

Printing this in sketch mode seems to output a screen capture, i.e. some lines appear wriggly and not as precise as an ordinary plot of an idw or dwg file.

A sketch w/o any 3d work will not be accepted as an idw file, thus I am not able to use all the formatting (tblocks, fonts, dimstyles, etc.) options available to idw files.

Is there a way of printing a 2d sketch (w/o any 3d work) as an idw file?

View 9 Replies View Related







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