AutoCAD Inventor :: Tessellate TextBox Contents Into Geometry?
Dec 13, 2012
I am using Inventor 2013 API for an application that imports Solid bodies and Sketches from Inventor parts.
Observed that when we import sketch entities, the Text object simply returns 4 lines representing its bounding box. What I want to do here, is to get the formated text as a collection of geometric entities. (lines, splines, arcs)
Is there any API available to "explode" text into entities, or may be a cleaner method that simply returns tesselation of formated text?
I am trying to change the titleblock definition of a drawing when I run my custom ilogic code. Currently (and for the past few years) the drawing name is defined by the drawing properties part number but when I run my code I would like the drawing name to be defined by the model properties part number as shown below:
Currently the textbox for the part number is configured as below:
And I'd like to change it to this:
The code I have to find the part number is as follows:
Dim x = 1 Dim oTxtBox As Inventor.TextBox For Each oTxtBox In oDrawDoc.ActiveSheet.TitleBlock.Definition.Sketch.TextBoxes If oTxtBox.Text = "<PART NUMBER>" Then oStuff =
This code works with no errors but does not change the text size. A user can over ride the text size (Font size) so I'm hoping it is possible thru code.
Dim oSketch As Inventor.Sketch Set oSketch = oPartDoc.ComponentDefinition.Sketches("Sketch1") Dim oText As Inventor.TextBox Set oText = oSketch.TextBoxes.AddByRectangle(pnt1, pnt2) oText.Style.FontSize = 0.1
We are expanding our OEM range. I am having trouble adding the parts to our Inventor contents center. I have linked parameters like "L1 and L2" to determine the part's size. When I place this part form the contents center I do get Key Columns for L1 and L2.
However, I am only getting one size under each column. I tried setting values to the parameters before publishing the parts, but this made no difference.
We are working with Inventor Professional 2014.Since switching every time we create a bolted connection using content center files inventor will not let you proceed without checking the bolt/washer/nut out from vault.
This causes issues as other operators are constantly out of date.Also we have custom properties created in our files to tally up with our descriptions on drawings.Every time it is checked out it clears the info and creates new version.
Is there a way to change the values available in a Multivalue list, based on another parameter?
I'd like to achieve:
When material is "MDF", available thicknesses are 6,9, 12
When material is "PLY", available thicknesses are 15,18, 25
I kinda solved this already but it's not quite right. I basically mad the list a list of custom parameters, and changed the values of these parameters based on the material parameter. :
This works pretty much, when changing between the materials the value currently selected remains in the list until another is selected from the list. Once another value has been selected, only the correct values are available, but immediately after the material has been changed the thickness for that material is incorrect and could lead to operators specifying an unavailable thickness.
I'm trying to create an ilogic rule that will look within the folders of an assembly and take the contents of each of those folders and demote them to separate sub-assemblies.
ie. Assembly1 contains NewFolder 1. NewFolder 1 contains Part1:1 and Part2:1. Upon executing the ilogic rule, I would like Assembly1 to contain NewFolder 1 and within NewFolder 1, Assembly1-01. Assembly1-01 contains Part1:1 and Part2:1. I would like this ilogic rule to look within each successive folder within Assembly1 and demote them according to their position in the browser such that NewFolder 1 - at the top of the browser list - contains Assembly-01, NewFolder 2 contains Assembly-02, etc.
I currently copy a master assembly with browser folders that contain parts and sub-assemblies to a secondary assembly where I manually demote the contents of the folders to sub-assemblies. When I create a drawing for our machine assembly department, the demoted sub-assemblies to isolate only those parts - nuts, bolts and the pieces they fit to - so it is easier for the assembly department when putting a machine together.
Is it possible, using ilogic, to demote folder contents to sub-assemblies with an assembly document?
i have a Problem with my Autodesk CAD 2012 version. I wanted to write a VBA-Skript, but then there comes up a problem i cant solve and i don't know if it's a CAD or a VBA problem. When i make a Userform with a Textbox and run the program i can't write anything into the Textbox. I have the impression the program jumps always from cad to vba and back.I tried it then in excel and in the Microsoft Visual Basic 2010 and there it was no problem.
AutoCAD 2012 is loaded on my office machine with WIndows 7 64 bit. I have downloaded the correct vba module and installed. After writing a simple program with two texboxes for user input and a calculation button with an answer box. When running, the cursor appears in the textbox but neither textbox will accept input from the keyboard and the cursor does not move nor does the tab key work even with it set in the program. Pressing the calculate button and a zero appears. In the toolbox I have added the AcFocusCtrl control, still no luck.
How in import 2D geometry into Inventor so I do not have to redraw the profile, only extrude the existing geometry. I tried to export from Autocad a IGES file, and then create a sketch plane in Inventor and project the geometry onto the sketch plane, but I ended up with a bunch of open loops. Perhaps, I have figured it out and real question is how to I close open loops?
I have a Form with a UserControl that has a Textbox on it.I want to be able to enter negative numbers in the Textbox.However, it will only allow me to input the chars [0-9 and a period '.'
I have added KeyDown, KeyPress, PreviewKeyDown events for the form, UserControl and the Textbox.
None of these receive events for characters other than the chars above.
I am displaying the form with the Application.ShowModalDialog( myForm) call.
I am guessing that the Application object is eating the keypress event.
AutoCAD 2012 is loaded on my office machine with WIndows 7 64 bit. I have downloaded the correct vba module and installed. After writing a simple program with two texboxes for user input and a calculation button with an answer box, when running the cursor appears in the textbox but neither textbox will accept input from the keyboard and the cursor does not move nor does the tab key work even with it set in the program. Pressing the calculate button and a zero appears. In the toolbox I have added the AcFocusCtrl control, still no luck.
I would like to be able to show an animation of a flat plate of material converging into a half hollow sphere (like a bowl). Its easy to model the beginning and end stae, but I do not know how to show it transitioning from one to the other.
How to do this? I need it for a presentation to convey a design concept.
I'm fairly new to the world of CAD, and I was just working on a phone case for my friend when I tried to extrude geometry text, but couldn't because the OK and Apply options were greyed out. I tried embossing and making a hole, but they were greyed out for them too. I tried messing with the settings to see if I could fix it, but I still couldn't. I'm really confused right now, I remember doing something similar for a case I made for myself.?
Currently I save all my 2D DWGs as IGES files and then import the files into Inventor. That converts all the geometry to Construction Wires in an IPT, which means MUCH improved performance (you don't have to wait for Inventor to convert every single entity in the DWG to a Sketch entity). I then start a new Sketch and Project those lines that I need from the Construction Wires.
Is there a way to do this directly (convert to Construction Wires) with a DWG, without having to save as an IGES file first?
I have a sketch on plane XY and I have another plane at an angle, which I would like to work on. How can I create a sketch on the angled plane, using the geometry from the XY sketch and which I can snap to?
I would like to know if there is a way to insert drawing no.1 into drawing no.2 (not copy sheets!) so that if I change the drawing no.1, the drawing no.2 (the one that contains no.1) also updates.
That is because I would like to have one part of the drawing that is ''standard'' and multiple drawings that contain this part (so that this part is defined in all drawings but is always the same). Because I don't want to have a separate drawing for the ''standard'' part, but only drawings that contain it.
In the attached part if I change the value of the length parameter from 19" to 20" Work Axis 1 updates to the 19" location, if I change it back from 20" to 19" it goes to the 20" position.
In the images below, the axis should be in the center of that last slot.
I've created a solid in Inventor and used the Section Analysis tool to create several cross sections. I'm trying to find a way to export the geometry of each cross section to a some format so that I could laser cut each cross section.
Is there a tutorial for importing 2D AutoCAD geomtetry and using it as a basis for your 3D sketches? I'm sure in a demo somewhere I saw someone using 2D layouts to quickly start creating 3D geometry from.
To clarify i'm not referring to the add-in in AutoCAD Labs but the actual process to do this using Inventor tools.
Why is it that when I create a dimension across geometry the dimension shows true, yet if I create sketched geometry in the drawing view it does not?
What I need to do is create an arc of swing for a door. So I create a sketched arc and then want to dimension the arc radius of the door, yet the dimension shows not true. How do I make it true? And why can't I snap to model geometry in the drawing view?
You know the square, traingle, circle, and the hexagon shapes that are used on the revision tags? How do I change the size of the geometry to be smaller? If I just change the text size, all that changes is the text, the geometry remains the same. I'm wanting to make them ultra small so that when there are lots of revisions, it doesn't clutter up the drawing too much.
I have looked thru the forum and didn't see this question anywhere. Many times I have to make mounting holes on large assemblies that have a lot of holes to project and extrude.
Is it possible for the Extrude command to pick all Projected Geometry automatically? If it looked only specifically for only projected geometry? It would save so much time instead of having to pick every single projected geometry hole to extrude.