CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.097.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator and the updated Barcode generator. New AutoCAD 2026 commands and variables.
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedChoose the level line broken vertical lines, used

 Post Reply Post Reply
Author
lijinsong View Drop Down
Groupie
Groupie


Joined: 06.Dec.2014
Location: China
Using: 2014
Status: Offline
Points: 27
Direct Link To This Post Topic: Choose the level line broken vertical lines, used
    Posted: 06.Dec.2014 at 18:46
(defun c:dk()
   (setq en    (entget(car(entsel))) 
            pnt1 (cdr(assoc 10 en)) 
            pnt2 (cdr(assoc 11 en))
            stn   (ssget "C" pnt1 pnt2(list(cons 0 "line"))) 
            stnl  (sslength stn) 
            n     0
   )
   (repeat stnl
       (setq stne(ssname stn n) 
                stnen(entget stne)
                pnt3(cdr(assoc 10 stnen)) 
                pnt4(cdr(assoc 11 stnen))
                intpnt(inters pnt1 pnt2 pnt3 pnt4)
       )
       (command "break" stne  "non"intpnt "non"intpnt)   
       (setq n(1+ n))
   )
)
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 07.Dec.2014 at 18:52
Why should a CAD tech use this routine? 
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,066 seconds.