Hi Ron,
You're welcome and thank you for the kudo.
The angle value of Angular dimensions do not require a scale factor as opposed to linear dimensions which return a distance which has to be scaled to suit the Zoom XP factor of the Paperspace viewport.
Angles are not scaled.
This feature of Angular dimensions means that any dimension style with any scale factor can be used to place Angular dimensions in a Paperspace layout albeit not good practice to do so.
The code you provided can be modified to return the correctly scaled Radius and Arc Length but it is dependent on having the correct dimension style current with DIMSCALE, DIMLFAC etc. configured correctly and the dimension text value changed after placing the dimension.
At the moment the code is providing the dimension text value with the suffixed Radius value during placement of the Angular dimension.
The Radius value is not scaled correctly as it is the length of the line drawn in Paperspace.
As per my code, the Arc length and Radius can be calculated from the Angular dimension setout points after it is placed, but not during placement.
If the current dimension style is configured correctly, then it can be queried to determine the scaling factor to apply to the Radius and Arc Length values calculated from the setout points.
If the selected dimension is NOT associative, my code is still dependent on the dimension style of the selected Angular dimension to be configured with the correct values for DIMSCALE, DIMLFAC etc..
Associative dimensions are actually easier to query for the correct scale factor because a link to the Paperspace viewport is saved with the dimension and the scale factor calculated from the Paperspace viewport Zoom XP factor and not the DIMSCALE or DIMLFAC values of the dimension style.
At the moment, my code does not take into account dimension Overrides i.e. DIMLFAC or DIMSCALE which can be applied to the dimension.
The dimension style used to place dimensions in a Paperspace layout will have to be configured to be one of the following:
- Associative which requires:
AutoCAD system variable DIMASSOC to be set to 2.
DIMSCALE of the dimension style to be set to 0.
DIMLFAC of the dimension style set to 1.
Placed dimension will use the Zoom XP factor of the Paperspace viewport in which the dimension points were selected.
- Not Associative which requires:
AutoCAD system variable DIMASSOC to be set to 1.
DIMSCALE of the dimension style to be set to 1.
DIMLFAC set to suit the Zoom XP factor of the Paperspace viewport.
If there are multiple Paperspace viewports using different Zoom XP factors then a dimension style for each will be required.
I hope my explanation makes sense.
Regards,
Trevor