disable selection cycling while measuring
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
; Just drag the script to the autocad window.
|
; Just drag the script to the autocad window.
|
||||||
; The script automatically starts after loading, no command needed.
|
; The script automatically starts after loading, no command needed.
|
||||||
|
|
||||||
; Version 1.4
|
; Version 1.5
|
||||||
; Created by Peter Gyetvai
|
; Created by Peter Gyetvai
|
||||||
; gyetpet@mailbox.org
|
; gyetpet@mailbox.org
|
||||||
; git repo: https://git.gyetpet.dynu.net/infeeeee/revitDwgImportCleaner
|
; git repo: https://git.gyetpet.dynu.net/infeeeee/revitDwgImportCleaner
|
||||||
@@ -177,8 +177,9 @@
|
|||||||
|
|
||||||
; --------------------------------- unitCheck -------------------------------- ;
|
; --------------------------------- unitCheck -------------------------------- ;
|
||||||
;CHeck units with measurement, change if wrong
|
;CHeck units with measurement, change if wrong
|
||||||
(defun unitcheck (/ setunits currunit domeasure testdist dochange newunit newunitnum)
|
(defun unitcheck (/ setunits selectioncycling currunit domeasure testdist dochange newunit newunitnum)
|
||||||
(setq setunits (getvar "insunits"))
|
(setq setunits (getvar "insunits"))
|
||||||
|
(setq selectioncycling (getvar "selectioncycling"))
|
||||||
|
|
||||||
(cond
|
(cond
|
||||||
((= setunits 0) (setq currunit "no units"))
|
((= setunits 0) (setq currunit "no units"))
|
||||||
@@ -212,7 +213,9 @@
|
|||||||
(if
|
(if
|
||||||
(= domeasure "Change")
|
(= domeasure "Change")
|
||||||
(progn
|
(progn
|
||||||
|
(setvar "selectioncycling" 0)
|
||||||
(setq testdist (getdist "\nMeasure now"))
|
(setq testdist (getdist "\nMeasure now"))
|
||||||
|
(setvar "selectioncycling" selectioncycling)
|
||||||
|
|
||||||
(initget 1 "Yes No")
|
(initget 1 "Yes No")
|
||||||
(setq dochange (getkword (strcat "Measurement: " (rtos testdist) " " currunit "\nChange unit? [Yes/No]")))
|
(setq dochange (getkword (strcat "Measurement: " (rtos testdist) " " currunit "\nChange unit? [Yes/No]")))
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
(defun c:unitcheck (/ setunits currunit domeasure testdist dochange newunit newunitnum)
|
(defun c:unitcheck (/ setunits selectioncycling currunit domeasure testdist dochange newunit newunitnum)
|
||||||
(setq setunits (getvar "insunits"))
|
(setq setunits (getvar "insunits"))
|
||||||
|
(setq selectioncycling (getvar "selectioncycling"))
|
||||||
|
|
||||||
(cond
|
(cond
|
||||||
((= setunits 0) (setq currunit "no units"))
|
((= setunits 0) (setq currunit "no units"))
|
||||||
@@ -33,7 +34,9 @@
|
|||||||
(if
|
(if
|
||||||
(= domeasure "Change")
|
(= domeasure "Change")
|
||||||
(progn
|
(progn
|
||||||
|
(setvar "selectioncycling" 0)
|
||||||
(setq testdist (getdist "\nMeasure now"))
|
(setq testdist (getdist "\nMeasure now"))
|
||||||
|
(setvar "selectioncycling" selectioncycling)
|
||||||
|
|
||||||
(initget 1 "Yes No")
|
(initget 1 "Yes No")
|
||||||
(setq dochange (getkword (strcat "Measurement: " (rtos testdist) " " currunit "\nChange unit? [Yes/No]")))
|
(setq dochange (getkword (strcat "Measurement: " (rtos testdist) " " currunit "\nChange unit? [Yes/No]")))
|
||||||
|
|||||||
Reference in New Issue
Block a user