AutoCAD Inventor :: How To Change Drawing Note Format In VBA
Aug 13, 2012
How to change drawingnote text format in vba? such as color, font, size.
call drawingnote.text.color.setcolor (255,0,0)
seems not working.
Autodesk Inventor Professional 2014
Autodesk Product Design Suite Standard 2013
Microsoft Office 2007 & 2013
Windows 7 64bit
Synergis Adept 2013
Visual Studio Express 2010
I'm in sketch mode and my drawing dimensions are all in decimal format. How do I change that to a fractional format?
I thought it would be in the styles editor, but when I open that up, I don't see ANY dimension style listed (see picture). I also tried right clicking the actual dimension to view the properties, but that only lets me change the decimal precision (also attached). The help file mentioned the "ANNOTATE" tab, but I don't even have that tab on my ribbon so I'm guessing it's unique to autocad?
I have found an problem with change text on drawing note trough API.
Situation:
Create leader note in empty drawing
Change text on this note with following
Public Sub Run()Dim oDoc As DrawingDocumentSet oDoc = ThisApplication.ActiveDocumentDim oNotes As DrawingNotesSet oNotes = oDoc.ActiveSheet.DrawingNotesoNotes(1).FormattedText = "abcd"Debug.Print oNotes(1).Color.ColorSourceTypeEnd Sub
Then edit text stnadrda dialog, result is that color of text is changed from bylayer to overwited color.Strange is that trough api is color still set as bylayer.
Any way, using iLogic, to get the K-Factor from a flat pattern sheet metal view on an idw drawing and add it as a note.
I'd like a rule that would access the flat pattern on the drawing, get the K-Factor value and then create a note that says, for example, "K-Factor Value = 44".
I see in the iLogic Snippets there's a Get Active KFactor under the Sheet Metal section, but I don't know where to start.
How can I change thread note from M12x1.75 to M12?
For our drawing standard, we don’t put the standard thread pitch into the thread note, and we have to manual to over write the thread note. But when the thread size changes and the note never get updated. Is there any other way to get the note to link to the thread size?
Is there any way to control the priority of what information Inventor displays "on top" in a drawing when you have two elements that overlap?
My specific situation is I have a text note whose boundary (where the text 'box' would be if that was turned on) overlaps a detail of a section view and seems to be preventing the display of the hatch layer in one of my section views.
I have attached 3 pictures to show this problem. The pictures show the section view in 3 slightly different positions relative to the text box. I selected the text box before taking the screen capture so you can reference the green "handles" to know where the boundary of the text box would be. Notice how the hatching of the welds, flanges, and pipe as well as a portion of the extension line and arrow for the 3/16 dimension are 'covered' by the boundary of the text box.
Is there a way to control the priority in which different layers are displayed, or is there a function similar to the "Bring Forward/Send Backward" options in Microsoft Word?
Using 2013 sp1.1...After I change the hole size in the part, the callout in my hole note does not update. (crazy, I know).
If I pull a new hole note after the change, it has the correct dimension. But, if I change the hole size again, this new hole note does not update.I put the part on a new idw and it updates correctly, so somehow the idw is hosed.
I have an older drawing with an outdated sheet format. I'm wanting to update to a new custom sheet format without having to redimension and recreate views. Is it possible to just update the sheet format?
See attached pic what is supposed to be a "D" size format/border is now an "E" size. I have many sheets in this idw and every D size was like this. it was not like this when i closed it a couple of days ago.
win 7 64 bit sp1 cpu intel xeon E5-2687W0@3.106 eight core two solid state hard drives 32 gig of ram Autodesk product design suite premuim 2014 64bit Nvida quadro 4000 Space Pilot ver. 1.6.2 2010
I am attempting to change the thread format in inventor under the dimensions style editor, but it is grayed out and does not let me select anything from the drop down box. I want to display the thread information so it includes the unit. For example, this is what it shows now: 1/2 - 14 NPT. I want to change it to 1/2" - 14 NPT. What I need to do to be able to change the thread format in the dimension style editor?
By the way, I have a lot of drawings to do, so manually typing in 1/2" - 14 NPT will take sometime, so I am looking for a quick and easy fix.
Is there a way to change the marker style on general note labels that are already in the drawing without having to select them all and change it in the properties? I want to change the marker style from "basic" to "none" on the note labels but I'm not seeing a ToolSpace setting to change them all at the same time without having to individually change it...
Is it possible to edit text formatting (e.g. font, font size, alignment) on mulitple text boxes, rather than having to right click each and click Edit Text? Ctrl+right click doesn't bring the option up to edit text.
I have a document for a book with 1400 superior note numbers in it. At the end of the document is a list with the 1400 connecting note texts. Unfortunately they are NOT connected! How can I connect the note-numbers with their connecting note text?
I have a frame fabrication / assembly with a Custom iProperty called "FINISHED MATERIAL SIZE". I have set the following parameter for this property:
FINISHED MATERIAL SIZE = <Stock Number> x <G_L>mm
This returns the stock size and length to my drawing cutlist. The problem is that the <G_L> Parameter returns the trailing zeros and unit string.
I would like to set all the frame members in the assembly such that the G_L parameter returns a value rounded off to 0 decimal places with no trailing zeros and removes the unit string as well.
Is there a way I can achieve this from the assembly so I don't have to manually open each frame member and make the changes in the fx parameters dialog one at a time?
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.
how to change a picture that he took with a web-cam holding a placard. The note he's holding say some random thing on it, and I want to replace it with something outlandishly silly. How would I go about doing this, AND how would I go about adding a placard/note like that to pictures of his where he isn't holding anything
I am creating a drawing that has some 40+ notes on it. Maybe half of these notes need to have a square, squircle, or some shape around them so I can later use that same shape enclosed number to point to a feature on the drawing that it is referencing. In the past when I had fewer notes I would just use the user symbols and losely place the squircle number in line with the other text and then use that same squircle number to point to the desired feature. The problem it is hard to align everything properly and if I move the text I then need to move the squircles.
In Pro/E I remember being able to type "@[1@]" and it would create a box around 1 in the text. Is there anything similar in Inventor?
Is there a way to add the all around symbol to a note or dimension? I see how to add it to a weld symbol and a feature control frame, but that doesn't work for me too much just yet...
In the drawing, i annotate a thread. the automatic text for thread depth is always, as far as i see, incorrect, for example if the thread depth is 50 it writes, i don't remeber, but something like 250.
Maybe it has to do with the font, altough i doubt. i am in israel, and the quantity of threads, also an automatic text, is written backwards, for example 4x instead of x4.
I create a hole feature in part and use Hole and Thread function in drawing view. All info displayed correctly, but if the model changes - note does not! the only way to get the new thread/hole designation is by using the Hole and Thread function again.
see print screen attached - I kept changing the model and using Hole and Thread tool couple of times. They all point to the same hole but look at the results..
Is it possible to get a Limit/Fit tolerance included in a Hole Note call out, such as H7 etc?
Currently, when I am dimensioning Counter Bore holes, I have to use a general dimension for CBore dia incuding the Limit/Fit tolerance and manually add the hole dia (or visa versa). This means I have to manually update any changes to hole dia.
Is it possible to attach a sketched symbol to a leader note? I tried the following code, but an error occurs in the line adding the sketchedsymbol. The geometry intent, which seems to be created correct, isn't a valid input for the sketched symbol.
Private Sub AttachSketchedSymbolToLeaderNote()Dim oDrawDoc As DrawingDocumentSet oDrawDoc = ThisApplication.ActiveDocumentDim oLeaderNote As LeaderNoteSet oLeaderNote = oDrawDoc.ActiveSheet.DrawingNotes.LeaderNotes.Item(1)Dim oSketchedSymbolDef As SketchedSymbolDefinitionSet [Code] ........
The "tap drill" option in hole note in idw drawing is gray out. so I was playing around with it and fix the problem luckily.
I go to hole feature model and change thread class from 2B to 3B. then, the "tap drill" option is turn on in idw drawing.
is this correct way to do it? i have few drawing to fix it. is there a faster way?
inventor 2013 sp2 and window 7
Autodesk Inventor Professional 2014 Autodesk Product Design Suite Standard 2013 Microsoft Office 2007 & 2013 Windows 7 64bit Synergis Adept 2013 Visual Studio Express 2010
In drafting while creating note of hole there is no breaking point for arrow there is only straight arrow line( pls find attached file of DIM 01). I am not getting any setting for the same.
I want notation having breaking point. ( Ref attachment Dim -2)
I've attached a sample part & drawing of a hollow cylinder with 6 equally spaced radial holes drilled around it.
If you change the depth of the hole you will get a different quantity of holes in the drawing hole note.
I get a hole note quantity of 6 holes which is correct if I set the hole depth to 1". Change the hole depth to 2" and the hole note quantity shown changes to 5. Change the hole depth to 3" and the hole note quantity changes to 4.
I often draw bushings with radial holes like this and have to take care to not let this behavior create a wrong drawing.
What is the best export/import format for sending 3D files. I need some neutral format files, possibly Solidworks but I am not sure. Also any export settings to make sure I get decent quality files.
Nothing like getting a surface model when you want solid model.
IV2014 sp1.2 PDSU / Sim Mech 2014 / Win7-64 EVGA X79 - Classified, iCore7 3930k 32Gb Quad-Channel 950Gb (2 x 500Gb Sata III SSD RAID0 Adaptec 6805E Controller) Nvidia GTX-690 Classified - 331.82 SpacePilot Pro 3.17.1, 6.17.7, 4.11