slope (or angular) dimension with percentage as the unit

slope (or angular) dimension with percentage as the unit

a.apeticky
Contributor Contributor
3,268 Views
4 Replies
Message 1 of 5

slope (or angular) dimension with percentage as the unit

a.apeticky
Contributor
Contributor

Hi, I'd like to ask, is there a way of dimensioning a slope via either a dim or some kind of a block, where the units could be changed to percent instead of degrees, gradians or radians? I need to dim a slope and the units are most often in percents. Right now I'm calculating the slope manually, writing it in as a text, and every time the slope changes, I need to recalculate it and rewrite the text over again, so is there a way to automate it?

0 Likes
3,269 Views
4 Replies
Replies (4)
Message 2 of 5

Washingtonn
Collaborator
Collaborator

What is the slope currently based on? When a slope changes does it change other slopes (is one slope based on another slope)?

0 Likes
Message 3 of 5

Kent1Cooper
Consultant
Consultant

I don't know of any built-in way to do that.  If using a Dimension, I suspect it would need to be a routine that would impose a text-content override on a selected angular Dimension.  And if the angle was changed, it would be necessary to run the routine again to update the override.

 

Doing it otherwise than with a Dimension [e.g. with Text, or a Block Attribute], the number of picks involved would be slightly reduced.  But I suspect the number of picks to update such a thing after changes would be slightly increased [pick the sloping thing and the Text/Block, rather than just picking the Dimension].

 

Such a thing could use parts of ReportSlope.lsp, >here<.  One thing that does, which I assume would suit your needs, is to report the absolute slope relative to the horizontal, regardless of in which direction the object it's reporting on was drawn.  [A Line drawn at 330° gets reported as being at a slope of 30°.]  It never gives a negative result or one greater than 90° -- a slope is a slope, and whether it's "positive" or "negative" depends on which direction you're going on it, and would not be part of what you want drawn.

 

 

Kent Cooper, AIA
0 Likes
Message 4 of 5

Washingtonn
Collaborator
Collaborator

I would propose using a dynamic block

Washingtonn_1-1689478094669.png

 

0 Likes
Message 5 of 5

Washingtonn
Collaborator
Collaborator

Here is the results using a simple example block. The ATTOUT command was used to export for use in Excel. Excel results were saves as a .TXT file and ATTIN was used to  import and update the block data after processing.

 

Washingtonn_2-1689514332445.png

 

 

 

0 Likes