Message 1 of 10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So, I have a LISP command that automatically creates a new layer and allows me to draw a polyline. Once you close the polyline it converts it to a rev cloud and insert hatch within the boundaries. It also inserts a block from a library in my workstation as the last step. It has worked great until a few weeks ago. Now all the sudden, when it inserts the block, it angles it. Please watch the demonstration video I attached. I have a few of these types of LISP's where it will insert the block for you as the last step. EVERY one of them default to just a fraction of a degree off from exactly 0°. Why?
;THIS SECTION OF CODE IS FOR TAR ONLY CLOUDS AND INFO
(defun c:NOTINSERVICE (/ la) ; = NOT IN SERVICE CLOUD
(setq la (getvar 'clayer)) ; Store the current layer
(command "_.layer" "_make" "NOT IN SERVICE" "Color" 252 "" "") ; Create or set the layer "NOT IN SERVICE"
(command-s "_.pline") ; Start a polyline command
(command "_.revcloud" "a" "0.1875" "0.1875" "o" "_last" "no"
"_.pedit" "last" "width" "0.00" ""
"_.-hatch" "_advanced" "_island" "_no" "" "" "_properties" "ANSI37" 1.0 0 "_select" "_last" "" ""
) ; Complete the revcloud, pedit, and hatch commands
;; Automatically insert the DAILY MAINTENANCE REV TRIANGLE block from the specified path
(command "_.insert"
"C:\\Users\\xxxxx\\OneDrive\\folder\\AutoCAD\\pidblks_dyn\\NIS_BOX_DYN.dwg"
"\\" "" "1.0" "1.0" "0.0"
)
)
Solved! Go to Solution.