AutoCAD Inventor :: How To Locate Orphaned Dimensions On Drawing Document
Apr 16, 2012
After looking thru the api, i'm finding it hard to get a list of orphaned dimensions.
I can get a list of all the dimensions...easy.
I've basically deleted a part from the assembly and now want to remove that dimension in a section view on the drawing document.
But looking / comparing the properties of a non-orphaned vs an orphaned shows nothing.
Is there an orphaned list?
Is there a color override switch somewhere?
Or can I somehow get the object that the dimension is trying to reference and check to see if it is valid or has a valid file reference...or something?
I'm working on a routine to find orphaned objects in .idw files. So far, I've found it relatively simple to find orphaned dimensions, balloons, surface texture symbols and centerlines/marks, but I'm having trouble with leaders (such as for tapped holes, etc.) and weld symbols.
I've tried iterating through a drawing's SketchedSymbols collection, but it seems that this collection always has zero size, and unlike the items I've been successful with so far, I cannot find a specific collection for those items either within the sheet or drawingview objects.
I'm trying to reposition dimensions in a drawing through the API. The output of my code seems to indicate the method is working, but after it runs the drawing is unchanged. Here's the code (in VBA):
Dim oDoc As DrawingDocument Set oDoc = ThisApplication.ActiveDocument Dim oSheet As Sheet Set oSheet = oDoc.Sheets.Item(1) Dim oLdim As LinearGeneralDimension Dim oLeaderNote As LeaderNote Dim oDimLine As LineSegment2d ' Dimension Line Dim oStartPt As Point2d ' Dimension Line Start Point Dim oEndPt As Point2d ' Dimension Line End Point
[code]....
Looks like it moved my vertical dimension left, but it doesn't actually do anything. Is this not a viable method for repositioning a dimension?
I created a sketch then tried to retrieve dimensions in a drawing from the sketch. When I used the retrieve function, no dimensions appeared. I made sure that the box in the Application Options under the Tools tab was checked for retrieving all dimensions upon placement. I have tried numerous ways to retrieve the dimensions, and while I can place them manually, I really need to be able to retrieve all at once as seen on the sketch.
I have been able to use the retrieve function before on files that I downloaded from a website so I know to use the function.
I'm attaching a file which I am having trouble retrieving dimensions. I am using Inventor 2013 educational version.
I'd like to take a set of ordinate dimensions and multiply all the values by 10. Is this possible, without overriding the values and making them static?
The reason I'm asking is because I'm making a flat layout sketch for pockets around a drum. So imagine taking a drum and rolling it out flat. In the direction along the drum I drew it as 1" = 1" and for the circumfrence direction I did 1" = 10° so I don't have sketch that is 13" x 360". So I need to scale the dimensions in 1 direction up by 10.
I got a new computer recently and installed Inventor 11. I found I could not change the drawing dimensions (It chanced in the Edit Box and shown the changes in the dimensions, but after click "OK", the Edit Box closed and the dimension did not change).
I remember there were the similar problems before and I installed KB918118 fixed it. So I tried to install KB918118. But my computer shown a message saying my computer system is newer and do not need the KB918118 update.
I am wondering how best to apply drawing dimensions to a view. I am using VBA (Inventor 2010 x64) to modify a template skeletal assembly and save it. I have succeeded at generating the models, drawings, and drawing views, but have hit a wall when I attempt to automate the process of applying drawing dimensions.
I attempted to use GeneralDimensions.Retrieve with the DimensionsToRetrieve parameter, as I wish to retrieve only a few dimensions. My testing, however, indicated (and the helpfile confirmed) that the DimensionsToRetrieve parameter only work if the DimensionConstraint objects belong to a drawing sketch, and I'm retrieving dimensionconstraints from a model sketch. It appears to me that I will have to retrieve all dimensions and then somehow delete the unnecessary ones. This seems unusual to me--is there a better way? Can I, for example, retrieve a single dimensionconstraint at a time from the model rather than all of them at once? Perhaps its suitable applying drawing dimensions without retrieving them from the model?
I got a new computer recently and installed Inventor 11. I found I could not change the drawing dimensions (It chanced in the Edit Box and shown the changes in the dimensions, but after click "OK", the Edit Box closed and the dimension did not change). I remember there were the similar problems before and I installed KB918118 fixed it. So I tried to install KB918118. But my computer shown a message saying my computer system is newer and do not need the KB918118 update.
I use parametric base-model which automatically generates drawing (look "Pic1"). I change parameters I need and new drawing is generated (scale stays the same). However, dimensions on new drawing are displayed in random way (look "Pic2"). Is there a way (iLogic, VBA or smth els) to fix/link dimensins so - that they could stay in an appropriate way (space between dimensions, space between dimension and edge, dimension is centered on line with arrows) when the model size is changed (in this example I have changed the base diameter from 830 to 1280)?
Function "Arrange dimension" does not solve the problem!
I have an asssembly stack and I have a known bending moment at a given place (ie the datum). I want then to create a drawing of this stack up and show the bending moments at known locations beside the relative dimension.
Now I can do this manually no problem...but I would like this drawing to update automatically. ie the stack up height(s) change and i want the bending moment figure to update accordingly.l
Is there a way to do this with drawing dimensions? ie dimensions created in drawing mode?
One of the drafters I work with has been having an intermittent problem with Inventor 14 deleting dimensions and notes when he prints a .idw to a .pdf. The problem first popped up when we transitioned to 14 from 12. It only happens once out of every 2 dozen or so prints and is usually caught on the redlines, but it has been overlooked once already requiring the part to be remachined at cost to our employer. No one else in our office has had the problem and it continued to happen after a reinstall; which leads me to think it's some hardware issue.
Included is a screenshot of his system information. We're running Synergis Adept file management software, that may be pertinent as well.
I am trying to figure out how to properly define the dimensions of an exponential curve in a drawing to make it easiest to have the piece machined.
I am starting to wonder if inventor refers to this type of curve as something else entirely, as well. Since an exponential curve is like the shape of an airplane wing and doesn't have a "consistent" angle.
I know you can obviously set the tolerance in the styles to round to the nearest 1/16 or 1/32, but is there a way to make it always round a dimension up instead of to the nearest? IV2012
Windows XP SP3 32-bit Intel Core 2 Duo 6400 @ 2.13 GHz Nvidia Quadro FX 3450/4000 SDI 256MB Vram 2 GB Ram 160GB HDD
While working with an Inventor 2013 *.idw some of the dimension lines, extension lines, and learders became invisible, even though you can still see the dimension values and even the arrow heads of the no-show dimensions. Even when printed, the same lines are not there. 2013 Glitch?
I want to retrieve dimensions in a drawing with ilogic. I found some code but how to translate it into a ilogic code.
I always use assembly models in these drawing and all the parameters have unique names. So in my drawing i want to retrieve some specific dimensions in a view.
Is it possible to link the dimensions in my .idw to the table in the upper left corner? I want the information in the table to reflect what is in the drawing.
I'm using Inventor 2012
Inventor 2013 Windows 7 Professional 64-bit SP1 HP EliteBook 8470w Processor: Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz Memory: 16 GB AMD FirePro M2000 3D Connexion SpacePilot
Recently when I have placed a view of an assembly into an idw drawing, then try to dimension distances between parts it gives me strange looking dimensions, or no dimensions at all. It looks as though the dimensions are going from the edges of each part at different angles, when I want them to be parallel to the view. I just want the dimension from a line to a line in that view as though it is 2d, but it is acting like it is still in 3d. I do not know if their is a setting that will change this or not.
I attached a screen shot of what the dimensions look like.
Is it possible to use the Measure.ExtentsLength in a drawing to get model dimensions?
What I am trying to do is get the overall dimensions of the model and place them in a sketch block in the drawings so our machinist can easily reference the stock material. I can't figure out how to get the overall model dimensions.
I have a automated ilogic model that is then used within a 2D drawing, this 2D drawing then has dimensions on it referenced to the the model.
This model changes in its length the dimension associated with its length then changes but the dimension text then goes outside of the dimension boundary (does not stay central). Is there any code that can scan the dimensions and in effect tidy them up?
I found that I can right click a dimension in a drawing and select "Move Dimension" which then prompts me to select an alternative view in which I want the dimension placed. Is it possible to control-click multiple dimensions once to do this all in one fell swoop (e.g. I decided my view is too busy and want to move dimensions to a newly created detail view of that area)?
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?
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.
I am trying to create a new base view in drawing-document.
I can get hold of the view but cant find a way to set reference data --- would like to set the "Line Style" to "As Parts" and "Hidden Line Calculation" to "All Bodies".