AutoCAD Inventor :: Change Drawing Dimension Text And Symbols Font With ILogic
Nov 2, 2012
I was looking to change the fonts in a drawing for the Dimensions and Symbols that might have been inserted in the Dimension text entries.
This can be done manually bu editing the dimentions text after placemement, but I was ooking to set this as a default.. I cannot see where exactly this is controlled in the Styles Manager - I am only able to change the Dimension text font but the diameter symbol font is always on AIGDT.
I was therefore looking for an iLogicvb code that could do the trick, but I am not able to even change the dimension fonts... The code runs with no errors but nothing gets updated in the drawing...
Dim oDoc As DrawingDocument
oDoc = ThisApplication.ActiveDocument
Dim oSheet As Sheet
oSheet = oDoc.ActiveSheet
[Code]....
InventorVb.DocumentUpdate()
View 3 Replies
ADVERTISEMENT
Jun 17, 2012
My iLogic ability is quite limited outside of what I use regularly?
I am trying to change the font style in every text definition in all my sketch symbols in one go. Actually I have started it based on only a selection set but I would be happy with just all symbols too. Below is where I got to, I am stuck on the For Each line to cover each text box in the symbol. Some of the other syntax may not be right either but I can't test it all the way through.
Dim oDoc As DrawingDocument: oDoc = ThisApplication.ActiveDocumentDim oSheet As Sheet: oSheet = oDoc.ActiveSheetDim i As LongDim oSymDef As SketchedSymbolDefinition: oSymDef = oDoc.SketchedSymbolDefinitions.Item(i)Dim oText As TextBoxesFor i = 1 To oDoc.SelectSet.CountFor Each oText In ............oSymDef.TextBoxes.Item(i).FormattedText ="<StyleOverride Font='ARIAL'>...< /StyleOverride>"NextNextInventorVb.DocumentUpdate()
Also the XML style override is not complete if this is the only way to achieve this result.
Inventor Professional 2013, Autodesk Simulation Multiphysics 2013
Windows 7 x64 Core i7 32GB Ram FX2000
View 6 Replies
View Related
May 17, 2012
So my problem is that I need to include a line on a part drawing that isn't related to the part itself. I need to be able to override the dimension of the line I sketched so that I can include it in my drawing and update the dimension without having to change anything else on the part.
Basically, I want an iLogic rule to overide a dimension, and I don't know how to do that.
View 1 Replies
View Related
Sep 10, 2011
I am trying to dimension a drawing and have tried everything under the sun to change the text size but despite everything it keeps producing the text at a tiny size .
View 3 Replies
View Related
Jul 8, 2013
I have a spreadsheet and iLogic driven mater assy to generate different iterations.
I would like to change the scale of a base view on a drawing based on a parameter in my assembly. The idea is to get iLogic to change the view using a simple If / Else statement.
This is what I tried:
If Parameter("0 Generic Assembly v2.2.iam.BP") < 1570 Then
ActiveSheet.View("VIEW1").Scale = 1/8
Else
ActiveSheet.View("VIEW1").Scale = 1/10
EndIf
So basically the value of "BP" parameter (excel parameter in my assy) would drive the scale of the views. But its not working. Is it actually a sensible method? Can I use in the drawing environment the excel parameters in my assembly?
This is the error message I get when the rule is run:
"Error in rule: View Scale, in document: 0 Generic Assembly v2.2.idw
Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))"
Also using the same thinking I use iLogic to populate the drg number field on the drawing based on an excel parameter. The rule works but does not always updates the drawing no upon the parameter change or update/rebuild commands.
View 1 Replies
View Related
Apr 10, 2013
I want to be able to change the header on a PL in a drawing using iLogic.
I'm able to "find" the PL(s) on a drawing but can't seem to figure out how to access the header property My goal to to change the header to show the P/N of the assembly/part it's created from.
My Current code is below:
doc=ThisDrawing.Document
oBOMs=doc.DrawingBOMs
For Each oBOM In oBOMs
MessageBox.Show("Found a PL", "Title")
Next oBom
In between the for/next loop is where I want to access the current BOM and change it's header depending on the related .iam/.ipt.
View 2 Replies
View Related
Oct 9, 2013
I seem to recall being able to do this in 2013...
Say you've dimensioned something but end up wanting to change the dimension definition points...drag the end point to another location that you want dimensioned.
I thought it used to snap to a new location, but now it will not. I have to redraw the dimension (including all text I added).
Here is what I get when I try to move the dimension definition point:
Here is what I get when I try the auto-reattach feature in "repair". Still nothing to snap to.
View 3 Replies
View Related
Jun 3, 2013
Im looking to make a simple ilogic rule that can toggle an option in the document settings, the setting I would like to change is the Document settings> Modeling> Participate in assembly and drawing sections
I would like a form to switch the option on and off quickly, its a really usefull function however I know a few of my colleagues wont use if they cant find it easly.
View 1 Replies
View Related
Sep 2, 2011
I am trying to have one drawing with B size and E size sheets I am trying to get the border, title block and standard to change when the sheet format changes. I can get it to work when I run the rule but have hard time find information to just change when sheet format changes. And I can't find anything or I should say a sample of how to. I think I found the code just don't know how to make it work. Here is what I have so far.
SubMain()
IfActiveSheet.Size="E"Then
ActiveSheet.TitleBlock="G&T (E)"
ActiveSheet.Border="G&T Border (E)"
EndIf
IfActiveSheet.Size="B"Then
[code].......
View 9 Replies
View Related
May 28, 2013
I have one problem in ilogic "How to convert the normal dimension to driven dimension through ilogic"
View 4 Replies
View Related
Jul 22, 2013
I am trying to piece together some code for an ilogic rule. This rule should look for a drawing view that is a flat pattern, if it finds one it should change the object layer to our "CNC" layer.
View 3 Replies
View Related
Nov 13, 2013
I am currently working with fx parameters and iLogic to drive a model and it's corresponding drawing to change based on a single user parameter.
I have managed to get the drawing to update both the scale of the views I need and the size of the sheet with the change in parameter using the following rule:
IfParameter("EB75551.ipt.Rise")<1801Then
ActiveSheet.ChangeSize("A1", MoveBorderItems :=True)
ElseIfParameter("EB75551.ipt.Rise")>1800Then
ActiveSheet.ChangeSize("A2", MoveBorderItems :=True)
EndIf
However when i attempt to use this with the title block using the function:
ActiveSheet.TitleBlock="My Title Block"
in place of the sheet change size it brings up the error message:
Error in rule: Drawing Title Block, in document: Drawing
The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
I have read elsewhere that this is due to me having prompted entries for the scale and drawn by fields, however when i use the function designed for prompted entries: ActiveSheet.SetTitleBlock("Other Title Block", "promptedEntry1", "promptedEntry2")
It fills in the prompted entry fields from the code and if i change these entries in the "edit field" option they are overwritten when it is updated.
Is there a way have the prompted entries when you open the drawing fill in the "promptedEntry1" field in the rule so that I can use the rule? Or am I going about it the wrong way?
I should point out i'm new to iLogic and no-one in my workplace can use it so each person changing the "promptedEntry1" field to the scale they wish isn't a wise move.
View 2 Replies
View Related
Aug 27, 2011
How to change the color of layer that will be used within a drawing files for special purposes.
Ideally the code will make the color Red, but change to Black prior to printing.
The "logic" behind the code currently is to differentiate a layer called "Burn" to a highly visible color for the purpose of review by others then, prior to printing, change the color to Black. The firm I'm currently working for uses gray-scale B sided printers only. The firm currently uses Blue for dimension and extension lines so to produce drawings that portray both type of objects "lightly".
View 2 Replies
View Related
Aug 14, 2013
See the attached image. I'd like to rotate the text of the dimension shown to be horizontal relative to the page.
The best I've found in searching for a solution is here (on the bottom):
[URL].....
however, following those instructions actually changes the dimension value to the distance projected in the plane of the sheet.
View 4 Replies
View Related
Feb 13, 2013
How do you change the dimension text size in an .idw 2D drawing? The dimension text and arrowhead size is too small and I would like to make it sligthly larger.
View 3 Replies
View Related
Jul 2, 2013
How do i increase the dimension text height in my drawing.When i go thro the styles and standards editor and increase the text height all the text in my sheet border also increases.Surely there must be a way to isolate the dimension text from the sheet text.
View 2 Replies
View Related
Jun 24, 2013
I want to replace view labels in drawings with sketch symbols to get a different appearance to my drawings. (As far as i know it is not possible to change the appearance of the standard view label.) See attached snap of my desired view label.
I have used i logic on several occasions successfully but im not experienced at all. The way I see this working is for a sketch symbol to be inserted below a view when it is created,the standard view label being omitted & the Scale/Name/Sheet details linking to the sketch symbol through parameters.
View 3 Replies
View Related
Jul 31, 2013
how could I change all text-fonts from ISOCP to ISOCPEUR for all text-elemts in the drawing (in the frame, title etc.)?
View 2 Replies
View Related
Sep 18, 2012
I am trying to rewrite Curtis Waguespack's ilogic code to modify drawing view labels from this post http: [URL]...
The completed label should appear like this
<Description> - Mk <Part Number>
Est Unit Mass = X kg
(Scale 1:1)
At this point I have 2 problems
1. I want to add the physical mass to the second line and would prefer to use the calculated physcial property rather than the a custom iproperty. If editing the view label, it would the property access under physcial properties.
2. I want to rewrite the code so it is selective or per view - in otherwords, I only want it to modify a single view I select once the code is run. At this point I know I need to remove the For loop but I dont have a clue as to how to make it selective.
'start of ilogic codeDim oDoc As DrawingDocument: oDoc = ThisDoc.DocumentoModel = ThisDoc.ModelDocumentDim oSheets As SheetsDim oSheet As SheetDim oViews As DrawingViewsDim oView As DrawingViewoSheets = oDoc.SheetsFor Each oSheet In oSheetsoViews = oSheet.DrawingViews For Each oView In oViews oView.ShowLabel = True
[Code] ......
View 5 Replies
View Related
Jan 2, 2012
Inventor 2012.
How to make a macro that changes the font for a specific Text Style. The name of the Text Style is eg. "3mm", which I want to change from RomanS to Verdana.
View 1 Replies
View Related
Feb 21, 2013
Can i change the length of the dimension line 'extension' when my dimension text placement is beside the dimension line (see attached image)?dim line length.jpg
View 6 Replies
View Related
Dec 29, 2010
every one now a day i am making isometric drawings so i m little bit confuse in that i am using dimension and change the oblige angle text of dimension so is it right way or not ????
View 9 Replies
View Related
Jun 12, 2013
I am mechanical drawing and search a better way for the drawing generation. I have to learn some of VBA (or VBS?) for use Ilogic rules. My questions are:
1.- How learn or search more easily and faster the inventor objects for drawings and how to use this objects, undestanding the relationship between its function names and another properties for writing the correct mode in VB? I know some of VB buti see that the library objects from Inventor are "a lot of stuff".
2.- Is there a rule that can get, automatically, the centerlines from a drawing, when the drawings is generated in a idw file? (10 drawing in one idw file ).
Intel i7 2630 processor
6 Gb Ram
Nvidia GT350
View 4 Replies
View Related
Oct 8, 2010
I have a complete gearbox drawing from a previous work and I would like to use it again but with different dimensions.
If I edit the dimensions and enter different values its not enough because when I hit the inquiry tab and dimension, obviously it will be the old measure value.
My question would be how to change the whole drawing to a new dimension values? I think there is no need to redone the whole gearbox again with new dimensions. My drawing is in metric (millimeters).
View 9 Replies
View Related
May 30, 2013
I am trying to find a way to have iLogic code that looks at a part with only one extrusion, such as bar stock or angle stock and automatically export the length to iProperties. As per the request of the other engineers however, this code cannot be based on a common renamed parameter. Also, since no one draws things the same exact way, it can't be based off of a common dimension parameter either. At least not in terms of d0,d1..etc.
Is there such thing as a code similar to variable=standard.extrusionextentslength that I can imbed within an if then that would pull this information from the model?
View 4 Replies
View Related
Jan 28, 2013
Is it possible to change the text height of a drawing view label through VBA?
I have tried to change it by creating a new text style manually with the text height I require and then through VBA set the view label to use that style.
The View label takes on the new style but does not change the text height.
I have tried to use 'StyleOverride FontSize=' but I have text that is multi lined and using this command converts all my text onto one line.
Is it possible to change the text height of a drawing view label through VBA?
Below is my code so far,
Sub HoleDetailSheetLabels()
' Declare the Application object
Dim oApp As Inventor.Application
' Obtain the Inventor Application object.
' This assumes Inventor is already running.
'Set oApp = GetObject(, "Inventor.Application")
[code]...
View 3 Replies
View Related
Oct 11, 2012
I have created various symbols to be placed into drawings when required, rather than having to re-create the same sketch every time the drawing is produced.
When I place the symbol I am given the option to select where to insert it, based on the insertion point. The problem is... once the symbol is placed there is no way (that I can figure out) to constrain to the view or dimension to it.
View 8 Replies
View Related
Jul 5, 2012
The company I am working for has dragged their CAD kicking and screaming into the late nineties and have upgraded to 3D! Recreate their drawings using 3D models, I have noticed the symbol gallery doesn't provide such things as Rev Balloons or Rev Triangles.
View 1 Replies
View Related
Nov 16, 2011
How do I create an Inventor part with a cost that will update according to the part dimensions changing. For example, we design products using aluminum extrusions and our cost is determined by foot length. How can I create the extrusion part to have a per foot cost that will dynamically update when I change the parts length for an assembly? It seems to me to be a fundamental need for many industries.
I will happily take any links to information that will explain this process. I cannot find anything online that clearly explains the process of creating parts with costs and variables.
View 1 Replies
View Related
Aug 17, 2012
I was working with inventor 2010, and i am want to link surface roughness symbols and text. so that they will be grouped together.
View 1 Replies
View Related
Aug 20, 2009
I have recently upgraded from LT06 to LT09.Why am I having trouble changing the text height on my dimension? I used to be able to double click on a specific dimension and change the text height to anything I wanted and than using the "match properties" icon change all the others.
View 9 Replies
View Related