MoI discussion forum
MoI discussion forum

Full Version: V4 Wish List

Show messages:  1-9  …  510-529  530-549  550-569  570-574

From: Mindset (IGNITER)
22 Oct 2020   [#570]
Hello Michael,

Hmm... Maybe I missed something.
Does the Detail button not provide the opportunity to copy the value of a Dimension?

Image Attachments:
Dimension_Details.png 


From: Larry Fahnoe (FAHNOE)
22 Oct 2020   [#571]
Hi Michael,

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

--Larry
From: Michael Gibson
22 Oct 2020   [#572] In reply to [#570]
Hi Mindset, re:

> Hmm... Maybe I missed something.
> Does the Detail button not provide the opportunity to copy the value of a Dimension?

It does not, but that is a good idea to put in.

- Michael
From: Michael Gibson
22 Oct 2020   [#573] In reply to [#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
From: Larry Fahnoe (FAHNOE)
22 Oct 2020   [#574] In reply to [#573]
Awesome Michael, you've thought of everything!! I'll give it a whirl.

--Larry

Show messages:  1-9  …  510-529  530-549  550-569  570-574