I'm using Inventor 2013 and I'm trying to create a new dimension style that shows a box or parenthesis rather than a dimension. The purpose is so the workers in the field can measure a part and fill in the dimension.
So far the best I can do is make a dimension style that is white so that it comes out as a space. The other option was to manually override the dimension, but I don't want to go into every drawing and change every dimension.
What I would truly like is if the dimension would automatically come out looking like this [ ]
I am working with a template, that doesn't allow me to change the dimension style. In the project the Use Style Library is set to Read/Write. I have created my dimension style, at this point just a copy of the ANSI standard with a text size difference. I went to my template and set that syle as my default, and saved it. Now the fact that it doesn't automatically update the drawing I had alreadycreated is a nuisance, however if I creat a new drawing, the style has reverted to a different standard, that is not even the ANSI default. If I right click a dimension and change the dimstyle to what I saved it does update, but if I try to change the style again it defaults to a random dimstyle, AND changes the style even if I hit cancel. So... the question is how to make the changes stick?
Is there a way to override a dimension and have it shown as a GD&T Basic dimension. I can override a dimension with the text option but not with a box around the letter. It sounds strange to do this but the letter represents a dimension in a chart format that are Basic dimensions.
I'm working on a drawing that was converted into cad and it seems like every dimension has its own style. When I copy use the move comand or try to change the dimension the text changes from being above the dimension line to centered and the text gets closer together horizontally. When I compare a copied dimension to the original it has all the same properties including the text pos vert still being above text. The actual dimension style hasn't changed at all but what is showing up on screen is different.
Here a image showing three dimensions with the same properties, the top 2'-10" is what it should look like, the bottom is what it looks like when I copied it and the 1'-2" is when I make a new dimension.
I am trying to edit my drawing template dimension style to always do a diameter (if it is a circle). Right now it defaults to radius and I manually right click and change it. I found all sorts of styles for how it displays the radius and diameter, but didn't find where to set the default.
I'm chasing the syntax on what i hope is a very simple procedure.
We have a project for re-design and manufacture here (Australia) of a machine that has been designed and detailed in one of our US offices. For this reason, we will be wanting all dimensions in mm etc, rather than inch.
My intention is to open the idw(s), update the styles library (done, i think...), change the active standard to "AS Metric" (got the code sorted for that too), and then change all dimensions to AS Metric.
So far i have each of these 3 processes in a different sub, called from a master. But my problem is in changing the style. I could change a dimension's style to match that of another existing style:
Set oGeneralDimensions = oSheet.DrawingDimensions.GeneralDimensions.Item(1)
but I am having trouble setting is to the active style.
My module:
Sub ChangeStyle() Dim oIDWDoc As DrawingDocument Set oIDWDoc = ThisApplication.ActiveDocument Dim oSheet As Sheet Dim oDim As DrawingDimension Dim oDimStyle As DrawingStandardStyle Dim oGeneralDimensions As GeneralDimension
I'm still learning autodesk inventor, I have problem about tolerance. My tolerance more big than my primary dimension. How to edit this text..? or how to reset style editor for factory setting..?
We have, as our standard library default dimension style, a 1/32 fractional style, called "1/32-FRACTION". Various Object Types, like Linear Dimension are set to this Object Style. When I create a drawing, then these Object Defaults are in effect.
This means that, doing nothing while executing a dimension command, I get fractional dimensions by default. This works good.
However, sometimes I want to create a drawing where the default dimension style is "X.XXX-DECIMAL" without changing the Object Defaults found in the style library. I've tried to make the changes from within the style library and then save this as a template. However, when I try to make a drawing based on this template, Inventor states that the styles in the template differ from the styles in the library" and then busily goes about undoing what I careful did.
So I'm hoping there is something in the API I can call on to do this with a macro. Is it possible to write a macro that after you start a drawing, flips all the various Object Styles from "1/32-FRACTION" to "X.XXX-DECIMAL"?
We have a waterjet and machine shop at my place of employment, and currently my work flow is to draw the parts. Then for parts that need material left for machining I create a new part and using the derive tool I place my base part which I then apply extrusions to fill the holes and use thicken to add material to the surfaces that need machining.
I like to change the dimension of the length from 388mm to 400mm to represent another similar part with another part number. Yet I still need the old part.
What is the easiest way to do so? When I use 'save as" and then change the dimension, I need to recreate the dimensions in the dwg files. Is there a way to avoid creating the dimensions?
I don't want to create a table on a sheet, I want to define a new style and then assign the style to the existing table.
I have no problem assigning the style once it is defined in the drawing to the existing table.
Dim oTableStyle As Inventor.TableStyle oTableStyle = oDrawingDoc.StylesManager.TableStyles("BOM") Dim oTable As Inventor.CustomTable oTable = oSheet.CustomTables.Item(1) oTable.Style = oTableStyle
There doesn't seem to be a TableStyles collection with an add or create event. I stumbled upon the "TableFormat" object but that seems to only override an existing style.
looked at the "StylesManager" but again I am not finding a create method.
From a VB.Net program, I'm trying to create a dimension on a drawing document between two parts in an assembly. I can get the parts using component occurrence. The line marked below throws the following error: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)).
As you may see, I have allocated memory for both "Edge" and "Face" (Dim oEdge1 As Face) albeit one is commented out. Attached is the screen shots from the attribute helper add-in. In it, you will notice that the attributes are of type: "Face".
Public Sub CreateDrawingDimension(ByVal Part1 As String, ByVal Part2 As String, ByVal AttName1 As String, ByVal AttName2 As String) ' Get the Active Drawing document Dim oDrawDoc As Inventor.DrawingDocument oDrawDoc = invApp.ActiveDocument [code]........
I have copied the "Diamond Plate" from the Inventor Apperance Library to my document. Now I want to edit the texture that this style is using.
1. Where is the texture map that this style using located? When I edit the style, I can't tell what is telling it the filename. I have mundged every file on my hd that it could possible be (hoping it would cause an error), but that didnt work either. Another thing I tried was in the QAT "Duplicate as Generic", but that did not show me the texture file either.
2. Is there a way to change the angle of the texture?
we have just upgraded from Inv 2011 to 2013. I am trying to create the drawing templates in 2013 by using the blank 2013 template and then copying our border from 2011 onto it. This works a treat apart from 1 thing.
The i properties do not get copied over as well so the sheet is blank from drawing number, title and the custom properties etc.
I have a macro that I acquired somewhere (possibly these boards, can't remember now) for placing a parts list. I have modified it somewhat to change the location on the sheet where the list gets placed, as well as a sub that starts the autoballoon command afterward.
The macro is set up to place the parts list in the upper left corner, by adding the parts list width to the Mini Point of the border. This works perfectly well, except that we have two parts list styles, and they are differently sized.
What I would like to do is have the macro detect the parts list style, and change the offset value depending on which style it finds. I am an extreme novice with the API, who basically knows just enough to tweak sample code a bit, and have not been able to find anything close enough to use as an example.
How I should go about this, or even post some samples of something similar? Current code is shown below.
Public Sub CreatePartsList() On Error Resume Next ' Set a reference to the drawing document. ' This assumes a drawing document is active. Dim oDrawDoc As DrawingDocument Set oDrawDoc = ThisApplication.ActiveDocument 'Set a reference to the active sheet. Dim oSheet As Sheet Set oSheet = oDrawDoc.ActiveSheet ' Set a reference to the first drawing view on ' the sheet. This assumes the first drawing ' view on the sheet is not a draft view. Dim oDrawingView As DrawingView Set oDrawingView = [code].......
The macro does not have to set the parts list style - that is controlled by the drawing Standard. It just needs to detect what it is, and place the list accordingly.
API enhancement/fix in SP1: Cannot create a radius dimension on circular drawing curves projected from spline edges.Does it in some way trying to refer to the issue with nonplanar arcs turning into splines in drawings saved-as AutoCAD .DWG?
I have approximately 800 library files that I would like to change the Dimension Style on. Is there a way or some program out there that would allow me to change the Dimension Style on all 800 drawings at once or do I need to open each one up change and save?
Each time I open a drawing, on my arrow dimension I get a style override which is always scaled at 96. Even if I delete the style override, when I close the drawing and open it again, it's back. It's always on the "arrow" dimension, never any other dimensions. I don't know why it's been doing this, it just started one day out of nowhere. Is there a way I can get rid of it? I'm using AutoCAD 2005.
I am having a problem with my dimension style on Acad mech 13. In my template I have set my modified dimension style as current and saved. I have set my template dwt. file to open in Qnew, but when I start a new drawing from Qnew, dimstyle reverts back to default style.
I am trying to solve a problem which all 3 of us in the Drawing office are battling with. The standard dimstyle we use is called "MP2013" , we are finding that somehow ACAD is adding something resembling a "$" sign at the end of the dimstyle and the properties are out of whack. We cant work out what brings it on but its been happening for a week or 2 now.