Jump to content

Recommended Posts

Posted

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

Posted

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.

 

image.png

  • Like 2
Posted (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 by ReMark
  • Like 1
Posted

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'

Posted (edited)

You're not following the math (i.e. - scale factor) I posted previously?

Edited by ReMark
  • Like 1
Posted

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

 

image.png.749c9dbd03bfeb13096fb5f9ef3a6865.png

 

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.

Posted
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

 

 

sc2.PNG

sc.PNG

Posted (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 by mhupp
  • Like 1
Posted

Hello,

Doubled checked Revit file, no 24 found in properties or scales.

Could it be the fact that template was originally metric or not?

Posted

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.

 

image.png.13e8a4d89f83f797c8378f621f6df638.png   image.png.3902a814b2773900549a313896b61296.png

 

Doesn't seem to be anything wrong with the view port. its just how (vla-get-Standardscale (vlax-ename->vla-object v)) displays as.

 

image.png.3303b095ce7ea6fa6d67cb71c9a89bc4.png

  • Thanks 1

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...