AutoCAD Inventor :: VBA Creating Path From Derived Sketch Block

May 21, 2013

I've got a problem with creating Path in Inventor VBA. I've created a source block definition in SourcePart.ipt, derived it in DestPart.ipt, placed this derived SketchBlockDefinition in Sketch3 and draw 3 extra lines. Now i want to add a SplitFeature with SplitTool as a Path of 3 lines, but first i need to create this Path. There is no problem with creating path from this 3 extra lines, but when i want to create path from lines that belongs to derived block - an error occurs. 

Below is sample code (also included in attached file - DestPart.ipt). Try run it with DestPart.ipt as an active file. When Inventor is prompting for Selecting Sketch Entity first select one of 3 extra lines, macro ends with no errors. Then run it again, this time select one of 3 lines that belongs to SketchBlock - an error occurs.

When you try to add SplitFeature (Trim Solid) by UserInterface Button "Split" there is no problem with any set of 3 lines.
 
Sub CreatePathTest() Dim oPartDoc As Inventor.PartDocument Set oPartDoc = ThisApplication.ActiveDocument Dim oPickedSketchEntity As Inventor.SketchEntity Set oPickedSketchEntity = ThisApplication.CommandManager.Pick(kSketchCurveFilter, "Select Sketch Entity") Dim oNewPath As Inventor.Path Set oNewPath = oPartDoc.ComponentDefinition.Features.CreatePath(oPickedSketchEntity)End Sub
My System is Windows 7 32bit/64bit, Inventor 2012 

View 1 Replies


ADVERTISEMENT

AutoCAD Inventor :: Text In Derived Sketch

Nov 10, 2011

I've got a sketch in a part that I want to derive into its own part and place in an assembly. I can do that no problem, but the text on the sketch is just empty boxes. Is there any way to bring the text through to the derived part?

The text is orientation information that I want in both the part and the assembly, not for permanent display but just to hover and display or switch on when needed. Maybe there's a better way of doing it if what I'm asking for is impossible.

IV2013

View 1 Replies View Related

AutoCAD Inventor :: Creating A Cutout With Derived Parts

Jul 31, 2013

I am using Inventor 2012.  I have a part that has 3 different inserts of a different material that I have to cut out.  So I create 3 different assemblies with the part and the the 3 different inserts.  Then I create 3 parts to derived the cutouts. Then 3 new assemblies to create the final assembly with the part and its insert.

Does Inventor 2014 have a way to do this with an i Assembly?  I can't seem to derive a member of an i Assembly now. In my old CAD system I was able to create a table with one assembly that contained one part, three different inserts and 3 different cutouts.  Right now this seems like a lot of work. 

View 2 Replies View Related

AutoCAD Inventor :: Derived Part With Block Crash?

Jun 26, 2012

Create part 'A'  with a sketch containing a block e.g. the block might be a circle.

Derive part 'A' into part 'B'.

Create a feature in part 'B' using the derived circle e.g. an extrusion.

Delete block from part 'A'.

Open part 'B' & update.

View 1 Replies View Related

AutoCAD Inventor :: Hole Patching When Creating Derived Part

Aug 17, 2012

I am trying to patch up a bunch of small holes in a derived assembly. I've tried going to the options tab that comes up when deriving the part/assembly and plugging in values for the range of hole sizes to be patched, but I get no results when clicking ok. I have scaled down the assembly to 1/10 the original size. I set the range of holes to be patched from 0 to 0.25". The diameter of the holes in the assembly are only 0.017" after scaling down.

Inventor Professional 2013
Intel Xeon W3680 @ 3.33Ghz
12GB DDR3 RAM
NVIDIA Quadro 2000 GPU
Windows 7 Professinal 64-bit

View 2 Replies View Related

AutoCAD Inventor :: Make Derived Part Into IPart Without Creating More Parts?

Feb 8, 2013

I have a part that was derived from an assembly.  However now I need to make this part have different center dimensions.  Is there a way to make a derived part into an iPart without creating more parts? see attachment.

I am using Inventor 2012.  BTW the part is more detailed than I am showing in the attachment.

View 2 Replies View Related

AutoCAD Inventor :: Block Attribute In Part Sketch Block

Feb 28, 2012

Is it possible to create a text block attribute in part sketch mode?

View 2 Replies View Related

AutoCAD Inventor :: Use Edit Sketch To Change Path Geometry

Dec 19, 2013

"Path has discontinuous segments. Use Edit Sketch to change the path geometry"

View 5 Replies View Related

AutoCAD Inventor :: Creating Dimensions On Sketch?

Dec 17, 2012

One of our senior designers seems to think there is a setting when creating a sketch that will automatically dimension.

So if a straight line is draw and 5 mm length is entered a 5 mm line will immedialtey be created, he seems to think that you can then immedialtey Dimension said line??

I can't find anything, settings wise?

View 3 Replies View Related

AutoCAD Inventor :: Creating Rectangle In Sketch In Assembly

Oct 2, 2013

I have problem with creating of a Rectangle in a sketch. I would like to make a profile in assembly and then make a "revolve".

Dim oAsmDoc As AssemblyDocument
Set oAsmDoc = ThisApplication.ActiveDocument

Dim oCompDef As AssemblyComponentDefinition
Set oCompDef = oAsmDoc.ComponentDefinition
[code]..........

View 1 Replies View Related

AutoCAD Inventor :: Creating Sketch - How To Center It About Origin

Aug 26, 2013

After I create a sketch, how do I center it about the origin? The origin is projected, I just can't figure out how to set the sketch about it.

View 4 Replies View Related

AutoCAD Inventor :: 3D Sketch Equation Curve - Creating Coil?

Jul 26, 2013

I am trying to create a coil which from above, retains equal and thus parallel pitches whilst at the same time adheres to a semi-circular form in the cross section. You can see from the images attached that the first two revolutions are larger than the semi-circle outline.
 
These are the values I have used:
 
Cylindrical

r (t):     134.56924424045517662353735770102mm * t * 0.5
q(t):     1 deg * 360 ul * 3.0 ul * t
z(t):      10 mm * 6 ul * 0.5 ul *  t  * (1.5 * t) * t

tmin: 0 ul
tmax: 0.916 ul

View 9 Replies View Related

AutoCAD Inventor :: Sketch Panel Don't Open When Creating New Part

Apr 18, 2012

I have a problem when I`m creating a new part in assembly.

I`m in assembly and I push a create button. Then I give it a name and OK. Then I push a plane where I want to make the part. New sketch comes but no sketch panel. I have to push right button from mouse and click finish sketch. Then when I go edit sketch the sketch panel comes like it suppose it to be.

View 9 Replies View Related

AutoCAD Inventor :: Toggle Sketch Only Geometry When Creating Drawing?

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

AutoCAD Inventor :: Creating Extrusion With Sketch Containing Multiple Circles

Mar 18, 2013

I am trying to creating an extrusion with a sketch containing multiple circles. However, the AddForSolid() Method is not working properly, returning non-NOERROR is C++. Below is the code that I used to create a sketch(which is succeeded) and then try to create a extrusion (in my case cutting). 

ApplicationPtr pInvApp;pInvApp.GetActiveObject("Inventor.Application");DocumentPtr pItem;pItem = pInvApp->GetActiveDocument();PartDocumentPtr pDoc;if(pItem->GetDocumentType() == kPartDocumentObject)pDoc = pItem;SelectSetPtr selectedItem;selectedItem = pDoc->GetSelectSet();FacePtr face;//printf("
[code]....

View 6 Replies View Related

AutoCAD Inventor :: Create Macro To Get Constraint Rec Block In Sketch

Jan 16, 2013

I am using inv2011. I have to create rec. blocks very often and in inv2011 . I have to constraint it in middle.

Can i write a Macto that gives me constraint rec block in sketch. This feature already available in Inv12.

View 5 Replies View Related

AutoCAD Inventor :: ILogic Code To Turn Sketch Block Visibility On And Off

Jul 28, 2013

I've managed to cobble this code together to turn some sketch visibilities on and off. However, what I'd really like to do is have a single sketch containing some blocks, and turn the visibility of the blocks on and off... How to call the blocks -

'Iterate through the sketches collection'Turn the edging indicators On And Off
For Each oSketch In oDoc.ComponentDefinition.Sketches Select Case
oSketch.NameCase "Front Edged"If E01 = True Then
oSketch.Visible = TrueElse oSketch.Visible = FalseEnd IfCase "Top Edged"If E02 = True Then
oSketch.Visible = TrueElse oSketch.Visible = FalseEnd IfCase "Back Edged"If E03 = True Then
oSketch.Visible = TrueElse oSketch.Visible = FalseEnd IfCase "Base Edged"If E04 = True Then
oSketch.Visible = TrueElse oSketch.Visible = FalseEnd IfEnd SelectNext

View 2 Replies View Related

AutoCAD Inventor :: Creating Custom Dialogue To Edit A Sketch Symbol Text?

Jul 18, 2013

What I would like to do is create a custom dialogue for each of 3 or 4 standard sketch symbols we use on a regular basis. I'd like to load 'suggsted' values out of an excel spreadsheet and allow the user to pick from them or enter in a custom text string if required.  The values would then become part of the sketch symbol.

I've spent some time looking into iLogic rules and I think I've determined that they're not flexible enough to do what I want.

If I'm correct, it is possible (or a good idea) to do this using a VBA macro? I'm a little hesitant to go down the full blown add-in route. While I'm pretty confident I could work it out.

View 3 Replies View Related

AutoCAD Inventor :: Error In RSe Clone Commander On Derive From Part With Sketch Block

Nov 19, 2012

I have a surface model of a bin that I am going to use as a master for deriving sheet metal parts for each side of the bin. After creating Sketch 9, which defines the mating flanges of the sheets, I repeatedly get the error noted in the subject when I try creating a derived part from this file.

I narrowed the problem down to the sketch block I used to define the square holes or more specifically a dimension that appears in this sketch block. I originally drew the circle with the square around it within Sketch 9 and then used the Create Block command. Then I patterned the block along the edges and made the pattern symmetric about the mid point of the edge and placed the hole half way out on the flange. (Flange width is set as a user parameter "FlangeWidth"(1.5") and distance to hole is "FlangeWidth/2" or even just a raw value of 0.75").

Now once this dimension is added to the sketch it will also appear in the block editor for the 5-16 Carriage Square block. If this is deleted from the sketch and the block definition and the pattern of holes are left unconstrained in this one direction a derived part can be successfully made. BUT if a dimension is added to the sketch it will trickle down to the block definition and now a derived part will fail...

I realized that my holes are to be on the midline of the flange so I can constrain them there without a dimension and so I can work around this. I just didn't think dimensions to geometry not included in a block were added to the block definition.

Inventor 2013 x64 sp1.1
Workstation Specs:
Dell T7500 Dual Xeon E5620 @2.40Ghz 8GB Ram
NVIDIA Quadro FX580 4GB, Windows 7 x64 sp1

View 1 Replies View Related

AutoCAD Inventor :: Assign Sketch Symbols / Title Block To Defined Layer

Apr 1, 2013

I have a need to send files saved from Inventor.dwg to AutoCAD.dwg to suppliers, however due to the quantity of files "size", I need to purge them in Autocad before I e-mail. The problem I have is that my template Inventor.dwg is 1 mg due to Sketch Symbols, plus added file size for the views etc. When I get to Autocad to purge them, my Sketch Symbols and Title Block is on the "0" Layer. I have to select everything that is on the "0" Layer and change the layer to a different layer to start a LISP routine that does a, Erase All, Purge All, to get my file size down. I have not found a way to change the layer that Sketch Symbols are created on or reside on by default or Title Block either.

Any way to do this Inside the Sketch Symbols, inside the Title Block, using the styles, anything?

I am just now going through a iLogic course and read that Layers can be hidden. Can iLogic be used to change the layer of "SketchSymbols" or "TitleBlocks" and or used to purge all Sketch Symbols during the SaveAs to Autocad.dwg process?

View 3 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

Photoshop :: Creating Work Path On New Layer The Path Is Grayish Black Color

May 6, 2013

When creating a work path on a new layer, the path is a grayish black color is there a way to create that path to be a different color, yellow for instance? Using CS6, I don't see it in preferences anywhere

View 7 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 2D :: Creating A Block With Block Table And Constraints

Aug 25, 2011

So I'm creating a block with a block table and constraints. The constraints such as Geometric Constraints work just as assumed. When adding in dimensional constraints we start to have more fun. So I have dimensional constraints that use other dimensional constraints to manipulate itself.

EX. dimconC = (dimconB-dimconA)
dimconA is 12
dimconB is 14
dimconC would be 2
Now when ever dimconA or dimconB change dimconC would populate accordingly.

With this I wanted to make an attribute that could be placed in instead of a dimensional constant.

EX dimconC = ((Att1*dimconB)-dimconA)
Att1 is 02
dimconA is 12
dimconB is 14
dimconC would be 16

However when trying to place in formula that references a attribute I keep getting an error "A DEPENDENT EXPRESSION CANNOT BE EVALUATED" So I assumed it was missing an expression from the attribute, however once entering an expression in for it I still get the same error.

(full error message attached)Constraint_Error.JPG

Is this something that is not allowed at all or have I over looked something?

View 2 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







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