+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Forum Newbie
    Computer Details
    CB89's Computer Details
    Computer:
    Dell Dimension E520, Win XP
    CPU:
    Intel Core 2 Duo 1.80GHz
    RAM:
    3
    Graphics:
    Zotac GeForce 9500gt
    Using
    AutoCAD 2008
    Join Date
    Mar 2008
    Location
    Texas
    Posts
    7

    Question self trimming block?

    Registered forum members do not see this ad.

    hello to every one, I was looking for a way to make a block that would trim any line that would go thru it.

    For example if i have a block of a circle and it has many lines connecting to it at various angles, Is there a way to have the lines automatically trim?

    I found this Article but I am confused of how it would work with a circle.

    http://www.afralisp.net/archive/lispa/lisp52.htm

  2. #2
    Super Moderator fuccaro's Avatar
    Using
    AutoCAD 2006
    Join Date
    Nov 2002
    Location
    Romania, Marosvasarhely
    Posts
    3,540

    Default

    CB89
    Don't try to post hyperlinks, you will get your posts moderated. That means that it will appear for public only after a moderator approves it. Read the forum rules.
    It's nice to be nice, but sometimes is nicer to be evil!.
    Tip: Please do not PM or email me with CAD questions - use the forums, you'll get an answer sooner.

  3. #3
    Quantum Mechanic ReMark's Avatar
    Computer Details
    ReMark's Computer Details
    Operating System:
    Windows 7 Pro 64-bit
    Computer:
    Thinkmate
    Motherboard:
    Intel DX58SO2 LGA1366 X58
    CPU:
    Intel i7-960 Quad-core 3.20GHz 8MB cache
    RAM:
    12GB (3x4GB) PC3-106000 DDR3
    Graphics:
    nVidia Quadro 4000, 2GB GDDR5
    Primary Storage:
    150GB Velocipraptor 10,000 rpm
    Secondary Storage:
    none
    Monitor:
    Dell P24LLH - 24" wide screen LCD
    Discipline
    See details...
    ReMark's Discipline Details
    Occupation
    CAD Draftsman/Designer...chemical manufacturing.
    Discipline
    See details below.
    Details
    I work for a specialty chemical manufacturer. I do a little bit of everything from P&IDs to civil to architectural and structural.
    Using
    AutoCAD 2013
    Join Date
    Nov 2005
    Location
    Norwalk, CT USofA
    Posts
    33,471

    Default

    I've seen this feature in AutoCAD Electrical with the blocks it inserts but I wonder, since we are dealing with blocks, if the insertion actually "breaks" the line instead.
    "I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police

    Eat brains...gain more knowledge!

  4. #4
    Senior Member Cat's Avatar
    Using
    Electrical 2008
    Join Date
    Jul 2010
    Location
    Georgia
    Posts
    147

    Default

    Quote Originally Posted by CB89 View Post
    hello to every one, I was looking for a way to make a block that would trim any line that would go thru it.

    For example if i have a block of a circle and it has many lines connecting to it at various angles, Is there a way to have the lines automatically trim?

    I found this Article but I am confused of how it would work with a circle.

    http://www.afralisp.net/archive/lispa/lisp52.htm
    That's a lot of code to break at two points. To use that code with a circle, you would have to have consistent specific points where any lines crossed through the circle.
    ~~~~~ Calling a professional drafter a cad technician is like calling an engineer a calculator! ~~~~~

  5. #5
    Forum Deity
    Using
    Civil 3D 2008
    Join Date
    Sep 2006
    Location
    Pittsburgh, PA, USA
    Posts
    3,581

    Default

    If you need to 'trim' the lines for appearance purposes you can create a block that has a circle and a wipeout with a polygon as the border. It doesn't actually trim the lines, just 'hides' them. Attached is a dynamic block that is used for property corners on survey drawings.
    Attached Files

  6. #6
    Forum Deity
    Using
    Civil 3D 2013
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    3,798

    Default

    Another way maybe if you really want to trim rather than hide would be to have 2 blocks the first being a polyline around your block just explode then "Extrim" "last" Erase last then insert block required. You could do it as a command or a lisp.

  7. #7
    Forum Newbie
    Computer Details
    CB89's Computer Details
    Computer:
    Dell Dimension E520, Win XP
    CPU:
    Intel Core 2 Duo 1.80GHz
    RAM:
    3
    Graphics:
    Zotac GeForce 9500gt
    Using
    AutoCAD 2008
    Join Date
    Mar 2008
    Location
    Texas
    Posts
    7

    Default

    Registered forum members do not see this ad.

    Wow, thank you for all the replies. That was faster than I expected. "lpseifert" that is so simple I didn't even think about it thank you. I guess for my purposes this would be the easiest and fastest way. As to the lisp commands, I just found out about the whole programming thing a couple of weeks ago. Im still a complete noob to the whole idea but I am trying to learn with all the links from this site. (they didn't teach lisp at my high school) But I will try the different approaches.

    Thank You to everyone

    PS: Sorry about the link, like I said NOOB.

Similar Threads

  1. Need some help with Trimming
    By didko in forum AutoLISP, Visual LISP & DCL
    Replies: 10
    Last Post: 25th Aug 2008, 09:22 am
  2. Need some help with Trimming
    By didko in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 8
    Last Post: 22nd Aug 2008, 07:25 pm
  3. Trimming etc
    By Simple153 in forum AutoCAD Drawing Management & Output
    Replies: 17
    Last Post: 24th Sep 2007, 09:15 pm
  4. extending/ trimming to nothing
    By everglade in forum AutoCAD Drawing Management & Output
    Replies: 2
    Last Post: 26th Jun 2006, 01:57 pm
  5. Trimming
    By jonjon in forum AutoCAD General
    Replies: 2
    Last Post: 7th Jan 2006, 07:14 pm

Tags for this Thread

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