+ Reply to Thread
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 28

Thread: Wall Poche lisp

  1. #11
    Forum Deity Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draftsman
    Discipline
    Mechanical
    Using
    AutoCAD 2014
    Join Date
    Oct 2009
    Location
    Lives in Abu Dhabi
    Posts
    2,633

    Default

    Registered forum members do not see this ad.

    Things like this ... ?
    Code:
    (defun c:Test (/ p1 p2 w vl) (vl-load-com)
      (if (and (setq p1 (getpoint "\n Specify first point :"))
               (setq p2 (getpoint p1 "\n Next point :"))
          )
        (vl-cmdf "_.pline" "_non" p1 "_non" p2 "")
      )
      (if (setq w (getdist "\n Specify width of Polyline :"))
        (progn
          (setq vl (vlax-ename->vla-object (entlast)))
          (vla-put-constantwidth vl w)
        )
        (princ)
      )
      (princ)
    )
    - When aim is being settled in my mind , I have to reach it and get it in hand whatever it costs and wherever it is and will never give up . Tharwat said

  2. #12
    Senior Member
    Computer Details
    Grigs's Computer Details
    Operating System:
    Win7 64bit
    Computer:
    Dell T3500
    CPU:
    Quad Core Xeon
    RAM:
    6 Gig
    Graphics:
    Nvidia FX570
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    Portland, OR
    Posts
    123

    Default

    Yeah, that works great. Thanks!!!

  3. #13
    Forum Deity Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draftsman
    Discipline
    Mechanical
    Using
    AutoCAD 2014
    Join Date
    Oct 2009
    Location
    Lives in Abu Dhabi
    Posts
    2,633

    Default

    Quote Originally Posted by Grigs View Post
    Yeah, that works great. Thanks!!!
    You're very welcome .
    - When aim is being settled in my mind , I have to reach it and get it in hand whatever it costs and wherever it is and will never give up . Tharwat said

  4. #14
    Senior Member
    Computer Details
    Grigs's Computer Details
    Operating System:
    Win7 64bit
    Computer:
    Dell T3500
    CPU:
    Quad Core Xeon
    RAM:
    6 Gig
    Graphics:
    Nvidia FX570
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    Portland, OR
    Posts
    123

    Default

    Now just to tweak it abit

  5. #15
    Forum Deity Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draftsman
    Discipline
    Mechanical
    Using
    AutoCAD 2014
    Join Date
    Oct 2009
    Location
    Lives in Abu Dhabi
    Posts
    2,633

    Default

    Quote Originally Posted by Grigs View Post
    Now just to tweak it abit
    If you need to add more options , just tell and I would be more than happy to modify it if I could make it .
    - When aim is being settled in my mind , I have to reach it and get it in hand whatever it costs and wherever it is and will never give up . Tharwat said

  6. #16
    Senior Member
    Computer Details
    Grigs's Computer Details
    Operating System:
    Win7 64bit
    Computer:
    Dell T3500
    CPU:
    Quad Core Xeon
    RAM:
    6 Gig
    Graphics:
    Nvidia FX570
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    Portland, OR
    Posts
    123

    Default

    I just need to add error detection, layer control, setting/resetting of osnaps.

  7. #17
    Forum Deity Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draftsman
    Discipline
    Mechanical
    Using
    AutoCAD 2014
    Join Date
    Oct 2009
    Location
    Lives in Abu Dhabi
    Posts
    2,633

    Default

    Quote Originally Posted by Grigs View Post
    I just need to add error detection, layer control, setting/resetting of osnaps.
    Yeah , it is possible .

    What is the name of the layer that you want lay the drawn polyline on ?
    And the osnaps modes that you want to set them on just while running the routine ?
    - When aim is being settled in my mind , I have to reach it and get it in hand whatever it costs and wherever it is and will never give up . Tharwat said

  8. #18
    Senior Member
    Computer Details
    Grigs's Computer Details
    Operating System:
    Win7 64bit
    Computer:
    Dell T3500
    CPU:
    Quad Core Xeon
    RAM:
    6 Gig
    Graphics:
    Nvidia FX570
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    Portland, OR
    Posts
    123

    Default

    Well, I think I have those figured out. It detects if the layer is there or not. If it is there, then it sets that layer current. If not, it creates it. I've got that implenented, just need to save the current layer and reset it back.

  9. #19
    Forum Deity Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draftsman
    Discipline
    Mechanical
    Using
    AutoCAD 2014
    Join Date
    Oct 2009
    Location
    Lives in Abu Dhabi
    Posts
    2,633

    Default

    Ok , just post the name of the layer and its settings (color , Lineweight , LType )
    - When aim is being settled in my mind , I have to reach it and get it in hand whatever it costs and wherever it is and will never give up . Tharwat said

  10. #20
    Senior Member
    Computer Details
    Grigs's Computer Details
    Operating System:
    Win7 64bit
    Computer:
    Dell T3500
    CPU:
    Quad Core Xeon
    RAM:
    6 Gig
    Graphics:
    Nvidia FX570
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    Portland, OR
    Posts
    123

    Default

    Registered forum members do not see this ad.

    Here is the code I came up with to deal with the layer:


    (if (tblsearch "layer" "A-Wall-Patt")


    (command "layer" "s" "A-Wall-Patt" "")


    (command "layer" "m" "A-Wall-Patt" "c" "252" "A-Wall-Patt" "")


    )
    Last edited by Grigs; 11th Jul 2012 at 08:50 pm.

Similar Threads

  1. Plan showing wall thickness need section- anybody give lisp
    By mmsmurugan1 in forum AutoLISP, Visual LISP & DCL
    Replies: 6
    Last Post: 3rd May 2012, 12:20 pm
  2. curtain wall tie to cavity wall
    By lorrayneprunty in forum Revit General
    Replies: 1
    Last Post: 23rd Mar 2010, 04:36 pm
  3. Wall LISP Request.
    By TheNewGuy in forum AutoLISP, Visual LISP & DCL
    Replies: 14
    Last Post: 9th Jun 2009, 05:23 am
  4. Replies: 10
    Last Post: 24th Aug 2007, 05:34 pm
  5. Lisp for dimensioning to the centre of a wall?
    By victoreric in forum AutoLISP, Visual LISP & DCL
    Replies: 4
    Last Post: 21st Feb 2005, 02:08 am

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts