AutoCAD Inventor :: Different Textstyles In One Sketch (Drawing)

Aug 2, 2013

I'm a student and a beginner in VBA. I'm writing a macro to automatically draw text and lines in a drawing and it goes pretty well. But now I have encountered a problem. When I add text like this:

Dim FreqBox As TextBox
Set FreqBox = oSketch.TextBoxes.AddFitted(oTG.CreatePoint2d(1.9, 1.95), GegevensForm.FrequentieVak.Value)

This is like I want it, but not the right font or size, so I add this:

FreqBox.Style.Font = "Arial"
FreqBox.Style.FontSize = 0.2

This goes well too, but then I want to add another TextBox, in another style, like this:

Dim VermogenBox As TextBox
Set VermogenBox = oSketch.TextBoxes.AddFitted(oTG.CreatePoint2d(3.7, 3.2), GegevensForm.VermogenVak.Value)
VermogenBox.Style.Font = "Arial"
VermogenBox.Style.FontSize = 0.5
VermogenBox.HorizontalJustification = kAlignTextRight
VermogenBox.Style.Bold = True

And suddenly when I run this, the other text is changing to these settings... (exept for the alignment).Is it possible to do this without the FormattedText option

View 1 Replies


ADVERTISEMENT

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 :: Can't See Sketch Lines In Drawing

Dec 18, 2013

Cant figure this out - I create a sketch in a drawing, but I cant see the lines as I'm drawing them.  The lines are on a "solid" layer set to red as defined in my standard.  The background of my drawings is black.  When the line command is done, the line appears and it's red.  Problem is I cant see it as I'm sketching.  Is there any way to modify this?  Can I have the line appear red (or white) as I'm sketching?

Product Design Suite Ultimate 2014
Vault Professional 2014
Windows 7 Pro SP1
HP-Z400: 2.67 GHz 12 Gb Ram
Nvidia Quadro FX1800 driver 276.42

View 2 Replies View Related

AutoCAD Inventor :: Sketch Drawing Rotation

Oct 2, 2013

Every time a select a plane to sketch onto, it rotates 180 degrees...... i have looked in the settings but cannot really find anything.. i have attached images for reference .

View 3 Replies View Related

AutoCAD Inventor :: Put Loft Sketch On Drawing?

Nov 22, 2013

I have created a loft from 4 different sketches. Now I want to make a drawing with the front, side view and the dimensions of the 4 profile sketches from the loft. But I can’t find a way to put the sketches from the part on my paper. It works with copy-paste ;^) but this is not the way I want it (it’ll not change when I change the profiles in the part).  

View 6 Replies View Related

AutoCAD Inventor :: Dimensioning Using Drawing Sketch Points?

Oct 8, 2012

I am trying to use sketch points in drawing for dimensioning. Below is portion of my code. The code fails when AddLinear is called. Is it even possible to use drawing sketch points for dimensioning?
 
invSheet = invDrawingDoc.ActiveSheet
Dim oTransGeom As Inventor.TransientGeometry= invApp.TransientGeometry
Dim pt1 AsPoint= oTransGeom.CreatePoint(0, 0, flangeOD / 2)

[Code]....

View 1 Replies View Related

AutoCAD Inventor :: Picking Sketch Line From Drawing?

Dec 19, 2011

 VB.NET with VS2010, Inventor 2012

I have a drawing view of a part with a sketch that contains some lines. I need to pick one of the sketch lines.

I can pick a line with sketch active using the kSketchCurveLinearFilter

I have not been able to pick it from outside of sketch. Have tried using kDrawingCurveSegmentFilter to get a DrawingCurveSegment but I can not get the sketch line from the DrawingCurveSegment

I assume there is a way to get the sketch line from DrawingCurveSegment or DrawingCurveObject but have not figured it out.

View 3 Replies View Related

AutoCAD Inventor :: Using User Parameters In Drawing Sketch?

Aug 22, 2011

We are trying to add reference lines to the idw drawing for a sub-assembly.  These lines represent centerlines of parts of the main assembly. The main assembly is not the reference file for the drawing.  However, the required dimension setting the centerlines is a User Parameter in the sub-assembly.  (The centerlines are represented by work planes in the sub-assembly file).  Using iLogic, we were able to populate the User Parameter from the sub-assembly into the idw file.  We can see it as a User Parameter in the idw file.  However, when we go into sketch mode the User Parameter is not an option.    In sketch mode, we pull a dimension between the two centerlines (d4).  When you look at the parameters d4 does not exist so we cannot set d4 equal to our User Parameter (and we've looked there are no filters on).      We need this dimension to be able to adjust as the length of the sub-assembly adjusts for different cases.  Each case is unique and done on a job by job basis. 

There are several places in our drawings where being able to place reference lines and set their relationship to the part would be very useful. 

1.  Why are the User Parameters not available for use in sketch mode on a drawing?

2.  Why can the dimension IDs (ex. d4) not be seen by looking at the parameters? 

3.  alternative way of putting reference lines on a drawing? 

View 4 Replies View Related

AutoCAD Inventor :: Reference A Sketch Within Drawing View

Jan 8, 2013

Using Inv 2013 and VB 2010.  I am trying to reference a sketch within a drawing view, but I am having a hard time figuring out which view number and sketch number to use.  I thought I had it figured out, but apparently I was wrong.

For example, see the 2 attached pics, Drawing A and Drawing B.  For Drawing A I had the sketch reference set as

Dim oSheet1_View As DrawingView = oDrawDoc.Sheets(1).DrawingViews(3) Dim oSketch As DrawingSketch oSketch = oSheet1_View.Sketches.Item(1)

Drawing View 3, as it was the 3rd Drawing View in the list, and Sketch #1 within that Drawing View.  I thought this was how it worked, because it worked with my code and it hid the sketch.  However, moving on to Drawing B, I used the same code, and it does not reference that sketch at all.  It did nothing to it.  Even though the Flange_Holes sketch is in the same position.  3rd View down the list, 1st sketch.

So how does Inventor reference these views and sketches?  Is it in order of creation?  Is there a way to reference it by the what the sketch is named instead of trying to decipher the number it's assigned?  I have a lot of drawings already made, and I'm not positive the views were taken and created in the same exact order each time.

View 1 Replies View Related

AutoCAD Inventor :: Copy Lines To Sketch In Drawing

Oct 12, 2012

I have a question regarding copying geometry in drawing mode.

When I was working in V5 and making drawings I sometimes had to "fake" geometry, the world is not perfect I know, copy geometry in the 2d, like center lines and such. I am trying to do the same in Inventor and use the project geometry button and geometry is created but it does not show up when exiting sketch.

View 5 Replies View Related

AutoCAD Inventor :: Display Model Sketch In Part Drawing

Mar 20, 2013

How can I display a sketch or projected geometry that is not a closed loop in a ipt drawing? Historically I have to use a closed loop and emboss in order to display the geometry in a drawing.  

Then move that forward to a DXF file for its intended use.  I think there should be a way to just have lines placed on the model and display it on a drawing without it having to be a feature. 

View 8 Replies View Related

AutoCAD Inventor :: Can't Use Model Sketches Within A Drawing View Sketch?

Apr 16, 2012

I can "Get Model Sketch" to make it appear visible in a drawing view. But I can find no way to use these "edges" or "lines" or "entities" or whatever they are, later in a drawing view sketch. No way to project them from Model Sketch to Drawing View sketch. I can attach leaders and dimensions to these Model Sketch entitites but I can find no way to use them in a sketch owned by the drawing view. Am I missing something?

IV2012 SP1

View 8 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 :: Sketch Within Drawing View Loses Dimension Reference?

Jan 14, 2013

I have a VB program that auto updates the size of a door and frame assembly, and in turn, updates the shop drawings to reflect this change.  I have a view on my shop drawing that I have drawn a sketch in.  I start the sketch, add my dimensions, and I use 'Project Geometry' to project the edges of the actual part around the sketch to constrain my sketch and keep it in place.  The problem is, as the program runs, and the door/frame changes height, the sketch loses it's dimensional references to the projected geometry.  When I go back and reopen the drawing after running the program, all the dimensions that went to the projected geometry are gone. 

Is there another way to anchor a sketch to a drawing view part instead of dimensioning to projected geometries?  This doesn't seem to be working, and I've tried it every which way I can think of.  Oddly enough, I have another sketch in a different view that is set up the same way, and it never misses a beat.

View 4 Replies View Related

AutoCAD Inventor :: Drawing Sketch While Making DWG - How To Change Line Colors

Feb 14, 2012

When I draw a sketch while making a dwg drawing, the lines are light green that is nearly invisible on the background color. How can I change the line color?

I'm using Inventor professional 2012 student edition.

View 6 Replies View Related

AutoCAD Inventor :: Removing Sketch Image From Drawing Border Definition

Nov 13, 2013

What is the proper syntax for removing a bmp file inserted into a drawing border defintiion?  I am using VB.net. 

I got all the way into editing the sketch of my border defintion... 

I know the name of the sketch image I want to delete it's something like "C:Temp12345678.bmp"

So I wanted to use the name to get the image file and set it to a variable.  Then run the .Delete() command on that.  But it's not working. 

This is what I have, where oCSTicBorderDef is equal to the border defintiion of the active document..

Dim oSketch As DrawingSketch
oCSTicBorderDef.Edit(oSketch)
Dim strImageDirectory AsString

[Code].....

View 1 Replies View Related

AutoCAD Inventor :: Cannot Make Component Sketch Show In Assembly Drawing

Dec 8, 2011

I have a sketch on a component. That component is being used in an assembly. The assembly drawing (.idw) does not show the sketch on that component. I have made them visible on the component, but don't want it visible on the assembly model. (only the assembly drawing)

View 1 Replies View Related

AutoCAD Inventor :: Create Independent Scaled Sketch In Drawing Environment?

Oct 29, 2013

I'd like to add a sketch to my drawing - a sketch that is independent of any other views. Is it possible to make this sketch have a scale associated with it instead of being 1:1?

Right now I am just overriding all of my dimensions.

View 1 Replies View Related

AutoCAD Inventor :: Hide Dimensions In Sketch Mode In Drawing Environment

Sep 28, 2012

I was giving a hand drawn wiring diagram (original.jpg) and it is a rats nest!!

I was asked to re-draw this and put it on our drawing template.

I have the plugs and terminal blocks drawn up and now I am about to attempt to add in the wires, but the sketch is so filled with dimension lines and values, it is going to be a task to try and make sure every line I draw is correct. This would be much easier to do if the dimensions could be turned off as the wires I am drawing will not be constrained.

I don't think there is layers options inside a sketch mode, or a if i start a new sketch I don't think I can project that sketch to the new one?

The only other options I can think of was to delete all dimensions and apply FIX constraint to everything! or

I guess I could have modeled the plugs and blocks in position and added them to the drawing, projected the geometry to a new sketch and added in my wires??

There must be someway to toggle the dimensions??

Inventor Professional 2014-Update 2 - AutoCAD Electrical 2014
Win7-x64 | ASUS P8Z77-V | i7 3770 -3.4 GHz | 32GB RAM |
240GB SSD | nVidia GTX 670 4GB - 320.49

View 9 Replies View Related

AutoCAD Inventor :: Sketch To Create A Break Out View In One Type Of Drawing

Sep 9, 2013

I use the same sketch to create a break out view in one type of drawing. I may be blind, but I can't seem to find a way to save that sketch and reuse it when I want to create a break out view.

View 4 Replies View Related

AutoCAD .NET :: How To Add TextStyles In A DimStyle

Sep 2, 2011

i created a method that creates a "DIMSTYLE":

private ObjectId CreateDimstyle() { DimStyleTable dimStyleTable = (DimStyleTable)transaction.GetObject(database.DimStyleTableId, OpenMode.ForRead); DimStyleTableRecord dimStyleTableRecord = null; if (dimStyleTable.Has(configuration.EXTDIMStyleName) == false) { if (dimStyleTable.IsWriteEnabled == false) dimStyleTable.UpgradeOpen(); dimStyleTableRecord = new DimStyleTableRecord(); dimStyleTableRecord.Name = configuration.EXTDIMStyleName; dimStyleTable.Add(dimStyleTableRecord); transaction.AddNewlyCreatedDBObject(dimStyleTableRecord, true); } else { dimStyleTableRecord = transaction.GetObject(dimStyleTable[configuration.EXTDIMStyleName], OpenMode.ForWrite) as DimStyleTableRecord; } dimStyleTableRecord.Dimscale = configuration.EXTDIMScale; dimStyleTableRecord.Dimtdec = configuration.EXTDIMPrecision; dimStyleTableRecord.Dimlunit =

[code]...

Works well. But I think it would be more correct to put the text style in the style of the dimension. As in AutoCad.

I was looking at the properties of "DIMSTYLE."

[URL]

But found no one to set "TEXTSTYLE" pattern to my "DIMSTYLE".How can I do this?

View 4 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 :: 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 2013 :: Unknown Textstyles Appearing In New File?

Jun 26, 2013

while working on a new file, which only has our 4 standard textstyles, something happened at some point during the work period where multiple textstyles named "AUDIT_1_12030....." and counting up appeared. over 40 of them.

they are all somehow embedded within the each object in the file, even lines, which confuses me. Noweven if i wanted to just copy most of the project excluding blocks, dims, leaders and text, (which was my original assumption that the textstyles were in there somewhere),  I cant. I usually am able to remove unwanted textstyles through the TXTMRG LISP/VBA macro. It has no effect this time.

View 9 Replies View Related

AutoCAD Architecture :: Unknown Textstyles Appearing In File

Sep 4, 2013

I created a new mtext leader and it is set to one scale of 1/4" it shows fine in model space and paper space. Then when edit my drawings to try to add hatch or dim. there is a large text that appears in the background.

View 5 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 :: 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