AutoCAD Inventor :: Embossed Text (Part Sketch) To Update From Custom Properties
Dec 20, 2011
I’m trying to get the embossed text on a nameplate (done in sketch on a part) to change with updating a custom property in iProperties. Right now I’m using iLogic so I can change the text in User Parameters and that updates the embossed text. So where I’m having an issue is the Export Parameters tab is grayed out so I can’t get it work with my custom properties.
I had wanted to find a way to engrave/emboss the part number on a part model and have it be parametrically tied to the part number iProperty. Since it doesn't appear that I can create a text box and insert the iProperty directly, here's what I did to work around this. (I setup my part templates to have this out of the box....)
1. Within, the IPT file, add a user text parameter called "PartNo" and set its initial value to any text value.
2. Create your sketch for your text to be engraved. Insert the User parameter you just created.
3. Create the engraving/embossing for your text.
4. Create the following iLogic rule:
' Requires a User Text Parameter called "PartNo" prior to running' Set the appropriate event trigger to tasteIf Parameter("PartNo") <> iProperties.Value("Project", "Part Number") ThenParameter("PartNo") = iProperties.Value("Project", "Part Number")InventorVb.DocumentUpdate()End If
5. I set this rule to fire using the "iProperty Change" event trigger. So if the iProperty is set or changed, your text will update. Obviously, you can set this to run with whatever trigger you like.
The attached part, created in Inventor 2012, has a formula for the number of occurances in a sketch pattern based on its length. When this number changes due to a length change, some parts of the sketch do not reposition and Inventor does not indicate that an update is required. The part can be fixed by dragging the affected geometry or performing a rebuild all. The following image shows the result when the length changes from 300 to 500.
I have a problem here. I've created a tube & pipe assembly. Now, I want to know whether I can automatically generate "Location to" and "Location From" of my tube assembly. For example, tube A origin from part A goes to part B. So I want to automatically generate those. Is there is a way or do I need to type in manually.
When I add a text to a sketch, I can constrain the rectangle to set its size, orientation and position.And I can set the text width to fit into the rectangle. But I wasn't able to set the text height to fit into the rectangle.
Am I missing something or is the fit text option doing only half the job?
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.
I'm trying to update a template which has custom drawing properties. In AutoCad LT 2012 (and obviously full autocad) there is an UPDATEFIELD command which updates the drawing properties.
This command is not known in my version of AutoCad LT 2008. Is there another command I can use?
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
I'm creating an iPart for Content Centre authoring. I have an Emboss feature that I would like to cut 2 text values into a face. I'm having trouble figuring out how to acheive this through the iPart table. I started by making 2 User Parameters multi-value but came to an abrupt halt as I can't see them in the Table. And I suspect that this approach won't work anyway.
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.
Is it possible to use a custom properties within part builder to calculate pipe sizes?
Within part builder I have created a new parametric part under the rectangular pipe chapter.
This new parametric will represent a electrical conduit ductbank that will vary in size depending on the number of conduits in the ductbank. For example a 2 x 3 ductbank would have 2 columns and 3 rows of a 3" conduit. So the width and height of the rectangualr duct bank would be calculated this configuration. I will have up to 12 rows and coluimns in a single ductbank, so I might have a 10x10, 3x12, 12x 1, etc.
I have a custom pipes catalog and within the AeccPartParamCfg.xml I have created 2 custom propertes named ROWS & COLUMNS.
My question is can this custom property be used to calculate the the height & width on the rectangular pipe within part builder? Once I draw my pipe I would like the ability to edit ROWS & COLUMNS within the Pipes Properties to change its size. is this possible? See image below.
When using Inventor with Vault, we have a problem when categorizing custom content center parts in Vault. In short, custom content center parts are incorrectly categorized as "Content Center" and automatically released - as there is no property that we can use to identify these files.
I need iLogic code to trigger when custom content center files are created/saved, wich adds the following custom iproperty "IsCustomContentCenter=True".
How to select entity filter by sketch name dan properties using VB or VBA.
for example I have 2 shape : Rectangular and Circle with different properties.
Sometimes I want to select rec and make it become construction and circle still in normal line and Sometimes I want to select circle and make it become construction and rectangular still in normal line.
I am having a problem with a sketch not updating the parameters when using a "while / end while" command.
Basically if you have a right angled triangle (as attached) with one side and the angle doing the driving then I wish to update the sketch until the last side which is a reference dimension reaches a preset dimension.
I cannot get the updated sketch to read back into the while command to stop when the limit is reached. Instead it goes on an infinite loop until the sketch breaks.
I have used every update under the sun and can get nothing to work.
Trigonometry not an option as this is a basic example of what I wish to achive.
I have seen an example of this working but only for reading the iproperties so dimensions can change until a volume is reached.
I have a function that adds many entities and constraints to a sketch, and it's very slow because it updates the sketch after each constraint is created.
Is it possible to turn off the automatic update, add all the entities and constraints, then turn on the update?
I use inventor 2012. In some projects the cc parts cannot be saved as a custom part (error message: Unable to create component), but in some project it works. I checked all projects settings are same.
How can I stack text in a custom sheet set property without editing custom properties and adding another line. The clients name is much longer than normal.
how I can update the physical properties for a part or assembly, from a drawing? My drawing template is showing the total weight for the current part/assembly, and I would love if Inventor could update this using iLogic, so I don't get the "N/A" value all the time.
Is there any way to force an update of mass property values of a component from within an iLogic routine?
I am trying to produce a calibration chart showing the volumes of an irregular shaped object by taking incremental slices off the component and accessing the "volume" of the remaining portion, then writing the the results to an external file - All from within a "For - Next" loop.
The main routine works O.K. but the resultant chart only shows the original starting volume for each slice instead of the required reducing volumes.
I am a novice with iLogic and can only assume that I must somehow "update" the mass properties of the sliced object before reading its new volume on each pass.
I'm a new 2009 Inventor user (use mostly Solidworks for other jobs) and how to make the model update after I modify a feature sketch (e.g. I only add one more circle/hole to a sketch used for a somple extrusion, but the extra hole doesn't appear on the model). Tried all update-related commands but no luck so far. If I delete the feature and recreate it again everything works fine, but I stuff up all other features and mates that use the reference geometry...
I like to keep the properties of my drawing the same as those of my model. Currently I must remember to hit the "updat copied properties" button in the drawing to discard any old drawing properties and replace them with the properties from the model.
Is there any way to automate this task (perhaps on saving the drawing?) I presume an iLogic rule could be created in the drawing template, just not sure how to go about it.
In Solidworks they had something called custom properties that were generally setup in the models where you had the property names and then values would be filled in to automatically populate drawing titleblocks. I found this, but I can't get the drawing description to keep changes and update the drawing.
I have a feature that is very similar to a CAM that I need to cut other feature with. The second feature needs to maintain its position way from the CAM feature just as a CAM follower would. The CAM is made up of arcs. If it were made from a spline I would be all set. Is there a way to either convert the arcs to a spline or make a CAM follower type arrangement in a part sketch?
I am trying to make a 3D sketch that is constrained to two different parts in an assembly. I want the sketch to be constrained to each of these parts so that if you move the parts relative to each other the sketch will adapt.
I have tried using work planes and project geometry but when I go to move the part the geometry won't always follow the part. I am using a spline for the 3D sketch so it should be able to adapt when the parts are moved but the problem is constraining it to something that follows the part.
How to create a custom ribbon with sketches cmd... I found example for assembly context... it work well but I don't find how to do that in sketch mode... The goal is to control the cmd the user can use.