nzoro99 Posted February 12, 2022 Posted February 12, 2022 Hello, Sheet is exported from Revit. Running two lines of lisp on viewport (setq v (car(entsel))) (vla-get-Standardscale (vlax-ename->vla-object v)) getting 24 (vla-get-customscale(vlax-ename->vla-object v))getting 0.0104167 web says.... 24 is scale factor for 1/2"=1"-0 My viewport displays 1/8"=1'-0 Please explain why AM i getting 24(instead of 96) or/and 0.0104167 Thank you Quote
mhupp Posted February 13, 2022 Posted February 13, 2022 You have the correct scale. 24 is a named scale and is probably the closest to 1/8"=1'-0 or 0.0104167 Use command SCALELISTEDIT. 2 Quote
ReMark Posted February 13, 2022 Posted February 13, 2022 (edited) First off, the scales shown above are used in civil engineering drawings (ex. - site plans, road layouts), not architectural drawings (ex. - houses, industrial/commercial buildings). nzoro99 is using architectural scaling. Choose your scale. For example: 1/8” = 1' Invert the fraction and multiply by 12 to get: 8/1 x 12 = 96 Your scale factor is 96. It is not 24. That would be 1/2" = 1' Edited February 13, 2022 by ReMark 1 Quote
nzoro99 Posted February 13, 2022 Author Posted February 13, 2022 WARNING: Not sure what I'm talking about.:) (vla-get-Standardscale (vlax-ename->vla-object v)) getting 24 (vla-get-customscale(vlax-ename->vla-object v))getting 0.0104167 (= 96 (/ 1. (vla-get-customscale (vlax-ename->vla-object viewport))) getting 96 ) I've accepted the fact that revit exported a drawing of 1/8"=1'. The third line gave this result 96. Original revit file displays the scale on this sheet as well 1/8"=1' Quote
ReMark Posted February 13, 2022 Posted February 13, 2022 (edited) You're not following the math (i.e. - scale factor) I posted previously? Edited February 13, 2022 by ReMark 1 Quote
mhupp Posted February 13, 2022 Posted February 13, 2022 You guys are not understanding. The viewport is @ the correct scale. With command SCALELISTEDIT you can pull up all your "named" viewport scales . it doesn't matter what scale it is you can give it any name you want. You could have the name of 1/8"=1' set to "Bob's Wacky Scale". where it's blue This would make (vla-get-Standardscale (vlax-ename->vla-object v)) = Bob's Wacky Scale (vla-get-customscale(vlax-ename->vla-object v)) = 0.0104167 if you type the command SCALELISTEDIT you are going to find a scale just named "24" that matches or is close to 1/8"=1'. Rename it with a better name. Quote
nzoro99 Posted February 14, 2022 Author Posted February 14, 2022 Quote if you type the command SCALELISTEDIT you are going to find a scale just named "24" that matches or is close to 1/8"=1'. Rename it with a better name. I don't see scale named 24 in the list Quote
mhupp Posted February 14, 2022 Posted February 14, 2022 idk then please attach a sample drawing. Quote
nzoro99 Posted February 14, 2022 Author Posted February 14, 2022 I can't share the original drawing. I copy paste the viewport frame to layout 1 VP_test.dwg Quote
mhupp Posted February 14, 2022 Posted February 14, 2022 (edited) Must be something bugged with the export. Ran this on the viewport. ;;----------------------------------------------------------------------------;; ;; Dump all properties for selected objects (defun C:VDumpIt (/ SS) (if (setq SS (ssget)) (foreach ent (vl-remove-if 'listp (mapcar 'cadr (ssnamex ss))) (vlax-Dump-Object (vlax-Ename->Vla-Object ent) t) ) ) (textscr) (princ) ) ; CustomScale = 0.0104166666666667 ; StandardScale = 24 ; StandardScale2 = NIL Look in Revit to see if their is a "named" scale of 24 there. or its the 24th viewport or its on the 24th tab. Also used this lisp to double check the scale. Model size X:3826.145 Y:2171.501 View port: X:39.856 Y:22.620 Ratio: 0.010416 When trying to change the text size of the dimensions i did notice. input 5 it became 12.7 input 10 it became 25.4 50 to 127.00 Edited February 14, 2022 by mhupp 1 Quote
SLW210 Posted February 14, 2022 Posted February 14, 2022 I have moved your thread to the AutoCAD 2D Drafting, Object Properties & Interface Forum. It doesn't seem to be a LISP problem. 1 Quote
nzoro99 Posted February 15, 2022 Author Posted February 15, 2022 Hello, Doubled checked Revit file, no 24 found in properties or scales. Could it be the fact that template was originally metric or not? Quote
mhupp Posted February 16, 2022 Posted February 16, 2022 I don't know. Tried changing the scale to see if that would do anything and something weird happened. this is the list off all my standard scales I have in BricsCAD. If you count down to from "custom" to 1/8"=1'-0" its 24th in the list. and StandardScale = 24. So i was like "huh that's weird". When I changed the viewport to 1:1 the StandardScale = 2. also 2nd in the list. Changed to 100:1 StandardScale = 13 and you guessed it 13th in the list. Doesn't seem to be anything wrong with the view port. its just how (vla-get-Standardscale (vlax-ename->vla-object v)) displays as. 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.