AutoCAD Inventor :: Covert Decimal To Fractions In ILogic?

Aug 8, 2012

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
 
fractionString = RoundToFraction(Dim_F, 1/32, RoundingMethod.Round)
 
Here is my code that drives my table in a drawing but the dimensions come as decimal and I need fractions.
 
If Hole_F_Type = "NONE" TheniProperties.Value("Custom", "F")= "-"ElseIf Hole_F_Type = "2-Hole" TheniProperties.Value("Custom", "F")= Parameter("Dim_F")ElseIf Hole_F_Type = "S1" TheniProperties.Value("Custom", "F")= "S1"& "-" & Parameter("Dim_F")ElseIf Hole_F_Type = "S2" TheniProperties.Value("Custom", "F")= "S2"& "-" & Parameter("Dim_F")ElseIf Hole_F_Type = "S3" TheniProperties.Value("Custom", "F")= "S3"& "-" & Parameter("Dim_F")End If

View 1 Replies


ADVERTISEMENT

AutoCAD Inventor :: ILogic Inputbox / Only Decimal Value With Comma Not With A Point

May 14, 2012

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.

Work on widows 7

Autodesk design suite premium 2013 french.

View 7 Replies View Related

Illustrator Scripting :: Convert Decimal Values To Fractions For Use In Inch Measurements?

May 21, 2013

Any good way to convert decimal values to fractions for use in inch measurements? I have a script that works great but it returns values like 5.5638 and I'd rather it return the closest fraction answer like 5 9/16. 1/16ths would be great, but I'd settle for 1/8ths.
 
I started trying to come up with a large if with lots of > and < conditions, but it might be better not to reinvent the wheel.

View 13 Replies View Related

AutoCAD Inventor :: ILogic Function To Change Decimal Marker From Full Stops To Commas

Apr 5, 2013

e.g. 25,00mm instead of 25.00mm.

I have a huge list of drawings I need to apply this update to.  Updating Styles isn't really an option as we haven't enough consistency in the styles we have used.

Inventor 2013 Certified Professional

Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit

View 3 Replies View Related

AutoCad :: Type Fractions In A Text Box As Non Stacked Fractions Rather Than Horizontally Or Diagonally Stacked

Jul 5, 2012

How do I set it so that when I type fractions in a text box it automatically keeps them as non-stacked fractions rather than horizontally or diagonally stacked?

View 2 Replies View Related

AutoCAD Inventor :: Dimension In Fractions

May 15, 2012

I teach 8th grade tech and we use inventor I needed to display in fractions went to help menu. told me to go to styles & standards and then to styles editor as the help menu says and in the dialog box on the right is the browser it has in it color, lighting, & material. the help menu says there should be dimension to change the style to fraction but it not there.

View 9 Replies View Related

AutoCAD Inventor :: Stacked Fractions

Apr 6, 2011

My Inventor's playing with me... When I use Leader text and type a fraction, a message box pops up asking me if I want to stack the fractions.  I don't, which has always been the default, so I just hit "Enter".  Suddenly, it's decided to go ahead and stack them, and now the box does not come up, so I can't tell it not to.  Where do I choke it to get it back to not stacking the fractions, or at least give me the option box??  R2010, S.P.0.

View 4 Replies View Related

AutoCAD Inventor :: Change All Dimensions On All Prints To Fractions?

May 4, 2012

I have been working 4-weeks for a new customer. I Run Inventor 2011 mechanical... I have multiple iwd files that have all been done in decimals. The floor workers here want fractions to the 1/32. Is there a easy way to up-date my entire list of drawings with out creating new? Is there a easy way to create a style that I can easily switch to when I draw/design for this customer. I hate fractions!

View 5 Replies View Related

AutoCAD Inventor :: Make Fractions Round Up To The Nearest?

Aug 7, 2012

Is there some super secret option for making fractions in the drawing environment round up to the nearest, for example, 1/16th?  There has to be, there just has to be.

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

View 4 Replies View Related

AutoCAD Inventor :: Dimensions - Change Decimals To Fractions?

May 11, 2012

I need to show fractions on my drawings rather than descimals. 

I have gone into the style manager and have units in inches

I have linear format in diagonal fractions

I have precision at 1/16

I have also made several other changes to centerline color and hidden lines color etc.

I choose save

I choose done

On the drawing, the color changes are made but the dimension still reads in descimals.

How do I get fractions to be applied to the dims on the drawing?

View 7 Replies View Related

AutoCAD Inventor :: DIA Dimensions Changing To Decimal

May 3, 2012

When I save to acad my Dia dimensions are changing to a 4 place decimal. My radius dims stay the same.

INV 2009 SP 2.

View 1 Replies View Related

AutoCAD Inventor :: Dimensioning - Decimal / Fraction

Nov 14, 2011

Is there a way that i can Double Dimensioning? as to have one dimension in decimal and one in fraction all in the same dimension line?

 Im using 2011 RS

View 1 Replies View Related

AutoCAD Inventor :: Set Decimal Place For Columns

Jul 18, 2012

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. 

View 9 Replies View Related

AutoCAD Inventor :: How To Change G_L Parameter From Decimal To Fraction

Dec 2, 2011

How to change the G_L parameter from decimal to fraction (1/16)? I've attached some screenshots.

View 9 Replies View Related

AutoCAD Inventor :: Decimal Precision For Retrieved Dimensions

Sep 21, 2011

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?

View 1 Replies View Related

AutoCAD Inventor :: How To Change Decimal Separator In Fx Parameters

Aug 31, 2011

How do change the decimal separator from point to comma(in model and FX-parameter)

View 1 Replies View Related

AutoCAD Inventor :: Using Decimal And Fractional Dimensions On Same Sheet

Dec 28, 2011

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.

View 3 Replies View Related

AutoCAD Inventor :: Balloon Quantity (length) To 3 Decimal Place

Nov 18, 2011

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?

View 4 Replies View Related

AutoCAD Inventor :: Rounding Decimal Dimensions To Nearest Fraction

Dec 9, 2011

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.

View 7 Replies View Related

AutoCAD Inventor :: Bend Angle Macro Decimal Point (VBA)

Dec 11, 2013

I have a short macro to add the compliment angle to all the bend angles on an Inventor 2014 drawing. I want it to always show one decimal point on the compliment angle, but if that would be '0' then it doesn't show it. I.e. in the attached picture I want it to be 58.0 (122.0) DOWN. 

Sub Test()
    Dim oDoc As DrawingDocument
    Set oDoc = ThisApplication.ActiveDocument
        Dim oView As DrawingView
    Set oView = oDoc.ActiveSheet.DrawingViews(1)
        Dim oNewDimStyle As DimensionStyle
    Set oNewDimStyle = oDoc.StylesManager.DimensionStyles.Item("RASOR")

[code]....

View 6 Replies View Related

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

[Code]....

View 3 Replies View Related

AutoCAD Inventor :: Close ILogic Form With VBA Or ILogic Rule

Aug 19, 2013

how can I close an iLogic Form from either an iLogic Rule, or a VBA Rule (VBA is the Preferred method)?

View 5 Replies View Related

AutoCad 3D :: Covert 3D Face To Polymesh

Nov 2, 2011

How we can convert a 3d face drawing as in attached drawing or can be using autolisp routine.

View 5 Replies View Related

AutoCAD Inventor :: Setting Decimal Precision For Text Derived From Number

Jul 14, 2012

I'm using ilogic to automatically build standardized descriptions that are linked to a field in our PDM system for future searches.  The problem is that the variable "Length" (shown below) can sometimes be a whole number so it drops the trailing zeros and I want it to always be a two decimal value.  

Formula:

iProperties.Value("Custom", "2ND_SUBTITLE")=CStr(ID)+" ID x "+CStr(OD)+" OD "+CStr(Round(Length, 2))+" LG"

Computed String Value

2.701 ID x 3.253 OD x 8 LG

View 1 Replies View Related

AutoCAD Inventor :: Round Decimal Dimension Values To Nearest 1/16"?

Jun 14, 2006

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.

View 2 Replies View Related

AutoCAD Inventor :: Setting To Specify Predict Offset Number Of Decimal Places?

Sep 13, 2013

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?

View 4 Replies View Related

AutoCad 2D :: Covert Entire To 2D But With Saving Groups?

Feb 2, 2014

I have got 3D drawing with a lot of groups (block inserted on lines) created by lisp functions. If I use FLATTEN command to put everything to 2D, my groups are lost (everything is separated). Is there any way to put entire drawing to 2D without losing groups?

View 3 Replies View Related

AutoCAD Inventor :: Imperial Dia Arch Units Turning To 4 Place Decimal On Save As To DWG

Jul 10, 2013

This happens every time I save as to dwg, it's very annoying.

View 3 Replies View Related

Photoshop :: How To Covert PSD To JPG Photo

Jun 25, 2013

How to convert a PSD photo to a JPG photo?

View 2 Replies View Related

Photoshop :: Covert To Profile (RGB)

Oct 23, 2013

i do not understand what show Source Space field of Covert to profile dialog box.
 
If i have an image open (without any embedded RGB profile) and i decide to convert to sRGB - i see in Covert to profile box Source Space Profile: Adobe RGB (1998)
 
Adobe RGB (1998)? What? Why?

Yes, Adobe RGB (1998) is my defaut color space but my image not have any profile embedded! What i have not understand?

View 2 Replies View Related

Photoshop :: Unable To Covert Raw Files To DNG

Sep 20, 2013

using photo cs 3 ,unable to convert raw files to dng?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved