+ Reply to Thread
Page 2 of 5 FirstFirst 1 2 3 4 ... LastLast
Results 11 to 20 of 44
  1. #11
    Senior Member Cymro's Avatar
    Using
    AutoCAD 2008
    Join Date
    Jul 2006
    Location
    Gwynedd Wales
    Posts
    165

    Default

    Registered forum members do not see this ad.

    Hi, me again. I am using the above routine quite often now,

    I have tried and tried to change the code to rotate the text by 180 degrees without success. If there is anyone out there who can do it quickly, it would be greatly appreciated. It takes a long time to manually rotate text.

    many thanks

    Cymro

  2. #12
    Senior Member
    Using
    AutoCAD 2010
    Join Date
    Jul 2010
    Posts
    347

    Default

    This part including the rotation text for the Att. text tags .

    Code:
    (vla-put-rotation at_obj (/ pi 2)); <-- this is 90 degree to make it 180. replace the (/ pi 2) to pi
    And when the routine asks you for rotation, hit NO to let the routine gets your angular degree that you added to the routine.

  3. #13
    Senior Member Cymro's Avatar
    Using
    AutoCAD 2008
    Join Date
    Jul 2006
    Location
    Gwynedd Wales
    Posts
    165

    Default

    chainage.jpg

    Hi thanks for getting back,
    I may not have explained myself fully.
    What I would like is when asked for text perpendicular to pline the output is rotated 180 to what is produced at present.

    The left is what the code produces after confirming text rotated perpendicular to line, the right is the output that i would like.

    Hope someone can help

    many thanks

    Stephen

  4. #14
    Super Member irneb's Avatar
    Computer Details
    irneb's Computer Details
    Operating System:
    Win7 Pro 64bit
    Computer:
    Antec One Hundred
    Motherboard:
    ASUS P8P67-Pro P67
    CPU:
    Intel i7 2600 @ 3.4GHz
    RAM:
    16GB-1600MHz
    Graphics:
    GeForce GT 430 (1GB)
    Primary Storage:
    Seagate1TB SATA2 - 7200rpm
    Monitor:
    Samsung 2333TN 23" 1920 x 1080 Full HD LCD Monitor2GW
    Discipline
    Architectural
    irneb's Discipline Details
    Occupation
    Architectural Technician and Programmer
    Discipline
    Architectural
    Using
    AutoCAD 2013
    Join Date
    Sep 2010
    Location
    Jo'burg SA
    Posts
    1,666

    Default

    It seems you want to "reverse" the polyline first. There are a few things which can do such, as a sample see alanjt's over here.

  5. #15
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    6,050
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

  6. #16
    Forum Newbie
    Using
    Civil 3D 2012
    Join Date
    Jul 2011
    Posts
    1

    Default

    Hi fixo your lsp is great, but can chainage continue to for example 30 000 meters.
    Because when it com to 1+990 it start's again from 0+000,00, Can you help me Fixo with this so that the chainage go to 30+000,00 or more.

  7. #17
    Junior Member
    Using
    AutoCAD 2010
    Join Date
    Jan 2012
    Posts
    23

    Default

    Hi all. Im always using "defun c:" type lisps. So i could not run Fixo's lisp, how can i run it ? What should i type to use it ? Many many thanks.

  8. #18
    Super Member irneb's Avatar
    Computer Details
    irneb's Computer Details
    Operating System:
    Win7 Pro 64bit
    Computer:
    Antec One Hundred
    Motherboard:
    ASUS P8P67-Pro P67
    CPU:
    Intel i7 2600 @ 3.4GHz
    RAM:
    16GB-1600MHz
    Graphics:
    GeForce GT 430 (1GB)
    Primary Storage:
    Seagate1TB SATA2 - 7200rpm
    Monitor:
    Samsung 2333TN 23" 1920 x 1080 Full HD LCD Monitor2GW
    Discipline
    Architectural
    irneb's Discipline Details
    Occupation
    Architectural Technician and Programmer
    Discipline
    Architectural
    Using
    AutoCAD 2013
    Join Date
    Sep 2010
    Location
    Jo'burg SA
    Posts
    1,666

    Default

    You could try his c:d10 defun, though it uses a block named Station. You could edit it I suppose.
    Knowledge is proportional to experience, but wisdom is inversely proportional to ego!
    My little bit of "wisdom": Hind-sight is useless, unless used to improve the next forethought!

  9. #19
    Super Member fixo's Avatar
    Computer Details
    fixo's Computer Details
    Operating System:
    Windows 7
    Motherboard:
    E7500
    CPU:
    Intel(R)Core(TM)2 DUO CPU 2.93HGz
    RAM:
    4098 Gb
    Graphics:
    1024 Gb
    Using
    AutoCAD 2009
    Join Date
    Jul 2005
    Location
    Pietari, Venäjä
    Posts
    1,613

    Default

    Quote Originally Posted by Tomica View Post
    Hi fixo your lsp is great, but can chainage continue to for example 30 000 meters.
    Because when it com to 1+990 it start's again from 0+000,00, Can you help me Fixo with this so that the chainage go to 30+000,00 or more.
    I've found a typo in this routine, try edited code from post #5 again
    And also it would be goog to see your stationing format
    sou you could be want to attach the picture of small piece of
    your polyline, to be frankly it's looking ugly (this one is from my very oldies)
    Think I'll back to it to rewrite some parts in there
    The soul is healed by being with children. - Fyodor Dostoyevsky, novelist (1821-1881)

  10. #20
    Junior Member
    Using
    AutoCAD 2007
    Join Date
    May 2009
    Posts
    21

    Default

    Registered forum members do not see this ad.

    Code:
    (defun answer (quest / wshl ans) 
    (or (vl-load-com)) 
    (setq wshl  (vlax-get-or-create-object "WScript.Shell")) 
    (setq ans  (vlax-invoke-method   wshl   'Popup quest 7 "Answer This Question:" vlax-vbYesNo)) 
    (vlax-release-object wshl)
     (cond  ((= ans 6)  (setq  opt T)) 
                ((= ans 7)  (setq opt nil)))
                 opt )
    ...................
    (setq opt (answer "Rotate text perpendicularly to pline?"))
    ...................
    Hai Oleg,

    This function is new to me. I like it. And I'll keep in my lib.

    Thank you.

    mardi

Similar Threads

  1. Join 2d polyline to 3d polyline
    By Tconn in forum AutoCAD Drawing Management & Output
    Replies: 4
    Last Post: 12th Jul 2007, 05:59 pm
  2. Create array from text to draw polyline
    By Nugg in forum AutoLISP, Visual LISP & DCL
    Replies: 5
    Last Post: 8th May 2007, 02:29 am
  3. How do I draw a 3D boxes along 3D polyline
    By free2fly in forum AutoCAD General
    Replies: 3
    Last Post: 5th Jan 2006, 07:12 am
  4. how do you draw..
    By James281 in forum AutoCAD General
    Replies: 3
    Last Post: 16th Nov 2005, 12:09 am
  5. how to draw in 3d
    By Dan in forum AutoCAD Beginners' Area
    Replies: 1
    Last Post: 6th Dec 2002, 10:15 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