Глеб Тураев Posted May 24 Report Share Posted May 24 Не могу разобраться, как сделать невидимым контур маскировки! Подскажите, пожалуйста! Quote Link to comment Share on other sites More sharing options...
doctorraz Posted May 24 Report Share Posted May 24 Спойлер 5 Quote Link to comment Share on other sites More sharing options...
kpblc Posted May 24 Report Share Posted May 24 Запускать нанокад не хочу, а так - я бы посмотрел в сторону системных переменных wipeoutframe (если есть), imageframe (тоже если есть). 2 Quote Link to comment Share on other sites More sharing options...
EdwardSt Posted May 24 Report Share Posted May 24 Спойлер Но работать это будет сразу для всех маскировок 2 Quote Link to comment Share on other sites More sharing options...
doctorraz Posted May 24 Report Share Posted May 24 еще с оригинала пользую переключалку (defun C:4 () ;;вкл/выкл маскировку (if (= (getvar "Wipeoutframe") 0) (progn (setvar "Wipeoutframe" 2) (prompt "\\nВидимая маскировка непечатаемая ") ) (progn (setvar "Wipeoutframe" 0) (prompt "\\nНевидимая маскирвка ") ) ) ;_ end if (command "regen") (princ) ) ;_ end defun единственное в нано regen пришлось добавить 1 Quote Link to comment Share on other sites More sharing options...
Глеб Тураев Posted May 30 Author Report Share Posted May 30 Благодарю! Разобрался с контуром! В 24.05.2023 в 15:19, doctorraz сказал: F1 (Скрыть контент) Quote Link to comment Share on other sites More sharing options...
kpblc Posted May 30 Report Share Posted May 30 (edited) В 24.05.2023 в 14:47, doctorraz сказал: единственное в нано regen пришлось добавить А чему у тебя равно regenmode? добавлено через 2 минуты Мысля пришла тут в голову (и упорно ищет мозг): ведь рамки есть еще у изображений, верно? В качестве дополнения к коду @doctorraz (vl-load-com) (defun c:41 (/ answer) (if (/= (rem (getvar "frame") 2) 0) (if (= (type (setq answer (vl-catch-all-apply (function (lambda (/ res) (initget "С П _ H S") (setq res (cond ((getkword "\nВыберите режим показа рамки (печататься не будет) [Скрыть/Показать] <Скрыть> : ")) (t "H") ) ) ) ) ) ) ) 'str ) (setvar "frame" (if (= answer "H") 0 2 ) ) ) (setvar "frame" (- 2 (getvar "frame"))) ) (vla-regen (vla-get-activedocument (vlax-get-acad-object)) acallviewports) (princ (strcat "Рамка не печатается и " (if (= (getvar "frame") 0) "не " "" ) "показывается на чертеже." ) ) (princ) ) Edited May 30 by kpblc 1 Quote Link to comment Share on other sites More sharing options...
doctorraz Posted May 30 Report Share Posted May 30 1 минуту назад, kpblc сказал: А чему у тебя равно regenmode? 1 ------------------- нана не обновляет контур маскировки без реген автокад обновляет Quote Link to comment Share on other sites More sharing options...
kpblc Posted May 30 Report Share Posted May 30 Ну ок, поменял код Если кому-то он нужен ))) Quote Link to comment Share on other sites More sharing options...
doctorraz Posted June 20 Report Share Posted June 20 после ввода В нана включит или выключит маскировку? может всежэж Вкл/Откл))))??? а нана 20 умел правильно ЗЫ студентов набрали на импортозамещение? 1 Quote Link to comment Share on other sites More sharing options...
XPom Posted June 20 Report Share Posted June 20 29 минут назад, doctorraz сказал: после ввода В нана включит или выключит маскировку? Выключит добавлено через 0 минут 23.6276 Quote Link to comment Share on other sites More sharing options...
yum Posted June 20 Report Share Posted June 20 Записала. 1 Quote Link to comment Share on other sites More sharing options...
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.