AutoCAD Inventor :: Why Does Round() Require Object For Decimal Places
Sep 5, 2012
Why does the Round() function require that the number of decimal places be either a number or an object if you want to use a variable? It seems that a Single should work here, but iLogic won't accept it.
See sample code below which is rounding off dimension values. If I dim the variable "somenumber" as Single or Double, I get this error message from the Round() function: "Overload resolution failed because no accessible 'Round' can be called without a narrowing conversion."
When I dim "somenumber" as an object it works, but this seems unnecessary when all it is storing is a single digit number. Why wouldn't Single or Double work for this variable?
Here's the code snippet:
'Dim Current Sketch & Count Constraints
Dim oSketch As Sketch = ThisApplication.ActiveEditObject
Dim oDimCount As Single = oSketch.DimensionConstraints.Count
I have a couple of strange angles and moving parts going on in an assembly. there is 1 constraint i am happy for inventor to predict the offset for. the problem is I am using other constraints i later want to bin, to pin it in position then try to apply this constraint. it looks like the predict offset tick box only measures to 3 dp, so as soon as i apply this constraint my model goes sick. I have to take a measurment and copy and place the measurment with all dp's into the constraint to make it work.
Is there a setting to specify the predict offset number of decimal places?
Way to round decimal dimension values to the nearest 1/16"? For instance, 43.0599 would display as 43.0625 (On a drawing). Tried playing with tolerances, but thought it would be better addressed as customization.
I am running AutoCAD Map 3D 2011. When i use the ID command to acquire x,y coordinates by snapping to an object, it gives me only one decimal place. When i do the command out in space, it gives me 4 decimal spaces. I need to get at least two decimal places while snapping to objects. Examples below:
id command (out in space, not using osnap)
X = 4006431.3366 Y = 359556.5635
id command (snapping to entity)
X = 4006252.3000 Y = 360712.5000
by the way, my units precision is set to .00 and it doesnt seem to make any difference with the id command.
I have used stringer connect in the past and it seemed that my traverse shots (which went to four decimal places 0.0000) that were in my raw file were converted to a fbk file and it held the decimal places. Now when I use it, the program rounds my shots to three decimal places (0.000) which changes the locations just slightly. I don't think I changed any settings deliberately. How can I get my four decimal places back?
My professor wants all of our dimensions to have 2 decimals places except for a few that he wants to have 3 decimal places. How do I change those few to have 3 places while everything else has 2?
How to change the number of decimal places of the elevation of points?
as the points are labeled with their elevations, I couldn’t find how the number of the decimal places of the elevation be chosen. In this case, I wanted to let the number of the decimal places to be zero.
How to set the number of the decimal places to be zero or 1, for example? how to sepcify it height (size)?
The defaul label style for the Elevation of points is set to 3 decimal places. We are trying to change the elevation display to 2 decimal places. We have tried the directions in the following discussion: [URL].......
Which is:
Toolspace
->Settings -->Drawing name --->Edit Drawing Settings ---->Ambient Settings ----->Elevation ------>Precision -> We modify from 3 to 2 decimal places.
It does not modify the display settings.
Also:
Toolspace
->Settings -->Drawing --->Point ---->Label Styles ----->(right-click) Edit label styles ------>Layout ------->Text -------->Contents --------->click on the "..." (three points) button
(Open "Text Component Editor - Contents"
--------->Select Point Elevation in the driop down list. ---------->Precision: Set to 0.01 ------------>Ok, Apply, etc...
I'm wondering if it's possible to change the decimal place accuracy to default to only rounded numbers i.e. 1mm instead of 1.325. I want EVERYTHING to snap to the nearest mm (Axis, Dimensions etc.) rather than 1.233 for example.
Yes, I can manually type into the dims / axis boxes everytime but thats a chore.
I work with ANGTOS and ANGTOF quite a bit. I'm working with latitude and longitude conversions in MAP 3D for an application where accuracy is top priority. Most of the time ANGTOS (and RTOS, for that matter) return an accurate result for the number if decimal places requested, but then I run into a situation like this:
I was trying to use the guides to make a triangle and everything was fine until I used a third guide on one of the triangles points (2 guides; 1 at 90 degrees and 1 at 60 degrees). When I used the dimension tool on it to measure from the bottom of the page to that point, the measurement did not match the numbers in the 90 degree guide's info. It was like .0000007 or .00000007 inches off. I know that's not much but I really needed precision for my particular drawing and I dont know how to get more accurate measurements with the program rounding to the nearest 6th decimal place (the highest setting on drawing precision). If it says it's centered in the intersection, then why do I see a tiny micro right triangle when I zoom in?
Is it possible to automate the rounding of font sizes if they are in decimal form? I have a few thousand files I have to prepare for upload and they can't have font sizes such as 8.214 which several do. With AppleScript would it be possible to identify and then round up or down such font sizes?
I´ve been building an airplane. After sculpting in rivets and some detail onto the wing i wanted to retopologize to get a lowpoly. But the new surface doesn´t always stick to the original object, when i try to let it go around the whole object it connects the vertices through the wing instead of sticking to the surface. This usually happens when i start at the top of the object-i place loops around it and when i try to close them at the bottom it "steals" the working surface on the top and pulls it down.
I have a problem with shortcut keys in inventor 2013.Example:
-In 2012 when pressing "s", it would create sketch.
-In 2013 when pressing "s", it needs enter/spacebar to confirm that sketch creation.
I can't seem to find a setting that changes this, or a thread here on the forums describing anything about this. Only threads about shortcuts suddenly not working anymore, which is not the problem for me at this moment.
is there any way of making one object appear in multiple places?
The problem is that we are designing some objects (call them "buttons") whose design we have not finalized how they will look yet. i.e. The shape, size, layout of components of these buttons is still undecided, although we know that they will be in use in a large number of places (on a large number of pages).
So what I want is to have a single master copy of the object that I can edit in one place, and for those changes to ripple out across multiple places on multiple pages.
P.S. I thought Edit ==> Clone Shape would do this, but it appears to create separate, un-linked copies. In fact all it seems to do is in effect the same as Control/C and then Control/Shift/V!
Is there a way to create an object/group in Illustrator and then copy it across one document in multiple places (multiple art boards, etc.) - allowing the designer to then update the original and seeing the changes cascade to all copies?
I know this can be done using InDesign by linking an Illustrator file and making subsequent updates to that Illustrator file. But I do not want to use InDesign, I want to use Illustrator. What I want is much like creating Symbols in Flash, updating one will cascade throughout the file.
I need to have one assembly constrained to three places on along a bar. Should I ( and how would I?) open another assembly drawing, insert said bar and some how insert those three assemblies into the drawing?
Is there a way to set the decimal place for the columns in Autodesk Inventor 2011? I have a length column I am trying to use for the p/n but I need it to be 2 places and they show up from zero to 4 dec places. I have set it inside excel but it never retains the setting.
I found out that if you have a dimension that is keyed you cannot use the custom property format in the fx. so how do I get ilogic to convert to fractions rounded to a 32nd.
When I put this (see below) in my code it changes my custom iproperty to a yes-no
I have had a problem with retrieved dimensions decimal precision. I set the precision to 1 decimal place in the ipt but when I retrive the dimension it set the precision to 3 decimal places. I then go to the precision control in the drawing and change it to 1 decimal place.
If I then go back to the ipt and edit the dim, the drawing precision then jumps back to 3 decimal places. (This is particular to the decimal precision for the tolerance of a dimension). How to sort this out?
At our plant we try to place all the parts for an assembly on one drawing. i am now working on an assembly with most of the components being fabricated in the shop and using fractional dimensions. However there are a couple of parts that will be machined and should be dimensioned with decimals. When I select a dimension and attempt to alter it it changes the dimension style of the entire drawing. Is there a method of changing only the desired dimensions and not all of them? I could use dual dimensioning and maybe hide the undesired set but I don't know if that would work either.
I have a piece of steel from the content centre 165mm long. The balloon (stacked format) quantity reads 165.000mm. I've had to format the parts list to get rid of the decimal places but I can't find a way of getting rid of them in the balloon. Any format setting somewhere?
I did, a couple of months ago, a part with a rule containing some input boxes. It worked without a bug and set it as a specific template, on Inventor 2012.
I tried to reuse it as a template without changing its rule on Inventor 2013. When the input box pops out and ask the value it needs, if I type "0.2" it says that "string's conversion "0.2" in a 'double' type isn't valid". But if I type "0,2" I have absolutely no problems.