ACADuser Posted March 20, 2020 Share Posted March 20, 2020 My units are in inches for the plan work but the Wall Schedule also displays in inches for the lengths. I changed the DBX using the NUMBER STYLE button in the DBX bit that length did not update to Feet & inches. So do users have any control of the number format in the schedules? Link to comment Share on other sites More sharing options...
robdyck Posted March 20, 2020 Share Posted March 20, 2020 Yes and No. Read the first sentence of the number style dbx. It doesn't do what you'd assume it does I believe you need a macro to control the dimension display in schedules. Link to comment Share on other sites More sharing options...
robdyck Posted March 20, 2020 Share Posted March 20, 2020 Link to comment Share on other sites More sharing options...
ACADuser Posted March 20, 2020 Author Share Posted March 20, 2020 That's too bad. I did not see a way to insert custom fields in that schedule so a macro would not be possible? Link to comment Share on other sites More sharing options...
Alaskan_Son Posted March 20, 2020 Share Posted March 20, 2020 18 minutes ago, ACADuser said: That's too bad. I did not see a way to insert custom fields in that schedule so a macro would not be possible? You don't insert custom fields in the schedule. You insert them in the wall. You only display those columns in the schedule. Link to comment Share on other sites More sharing options...
ACADuser Posted March 20, 2020 Author Share Posted March 20, 2020 OK, thanks for the clarification. I was able to add this: begin wlength = (owner.length / 12.0).round(2) wlength.to_s rescue "Error" end But it displays as "10.2 in" and needs to be feet. What causes the "in" to display at all? Link to comment Share on other sites More sharing options...
Alaskan_Son Posted March 20, 2020 Share Posted March 20, 2020 8 minutes ago, ACADuser said: OK, thanks for the clarification. I was able to add this: begin wlength = (owner.length / 12.0).round(2) wlength.to_s rescue "Error" end But it displays as "10.2 in" and needs to be feet. What causes the "in" to display at all? It's because length is a Measurement. Either convert it to a float first with something like length.to_f or use the Measurement class to your advantage with something like length.to_ft Link to comment Share on other sites More sharing options...
ACADuser Posted March 20, 2020 Author Share Posted March 20, 2020 Great, Thanks And the .to_ft does the division for you! begin wlength = owner.length.to_ft.round(2) wlength.to_s rescue "Error" end Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now