V4 Wish List
 1-12  …  533-552  553-572  573-574

Previous
Next
 From:  Michael Gibson
6925.573 In reply to 6925.571 
Hi Larry,

re:
> Is the value of the decimal precision property preset (Options / Dimensions / Formatting / Decimal display)
> available for read access via the API anywhere? Thanks.

Yup, you can get a list of annotation presets using moi.geometryDatabase.getAnnotationPresets(); , and then each preset object has a whole bunch of properties on it:

   presetName
   presetIndex (read-only, position in preset list)
   setFont() (function that will show font picker dialog)
   fontName
   fontPtSize
   fontStyleName
   fontWeight
   fontStyle
   fontUnderline
   fontStrikeout
   textDisplayMode
   textAlign
   scaleMode
   height
   textAnchor
   textBoxOutline
   textBoxOutlineWidth
   textBoxOutlineWidthModelUnits
   textBoxPaddingX
   textBoxPaddingY
   textBoxPaddingXModelUnits
   textBoxPaddingYModelUnits
   arrowheadType
   arrowheadArrowLength
   arrowheadArrowLengthModelUnits
   arrowheadArrowWidthFactor
   arrowheadOpenArrowLength
   arrowheadOpenArrowLengthModelUnits
   arrowheadOpenArrowWidthFactor
   arrowheadTickLength
   arrowheadTickLengthModelUnits
   arrowheadTickLineWidth
   arrowheadDotSize
   arrowheadDotSizeModelUnits
   arrowheadReverse
   arrowPosition
   outsideLineLength
   outsideLineLengthModelUnits
   outsideDrawLineAcross
   extensionLength
   extensionLengthModelUnits
   extensionGap
   extensionGapModelUnits
   arrowLineExtension
   arrowLineExtensionModelUnits
   formattingDistanceDisplay
   formattingFractionalPrecision
   formattingDecimalPrecision
   formattingDecimalShowTrailingZeros
   radialDimensionRadialType
   radialDimensionCrossSize
   radialDimensionCrossSizeModelUnits


The one for Formatting > Decimal display is the formattingDecimalPrecision property, it can be an integer number from 0 to 7 for the number of decimal places to show.


- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Larry Fahnoe (FAHNOE)
6925.574 In reply to 6925.573 
Awesome Michael, you've thought of everything!! I'll give it a whirl.

--Larry
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages:  1-12  …  513-532  533-552  553-572  573-574