Dynamic Blocks

Reply
Contributor
ugsquish
Posts: 12
Registered: ‎04-07-2006
Message 1 of 5 (527 Views)
Accepted Solution

Dynamic Beam LISP help

527 Views, 4 Replies
11-06-2013 10:45 AM

I have recently began working with lisp's and am a little out of my league with a lisp I need if anyone is willing to help that would be great.

I am working at an engineering firm. I have had to basicly redraw all the openings since our clients seem to be using wipepout blocks for their doors and windows. Well I want to make a beam lisp that will ask the user to click an insert point, width, and angle then draw an appropriate  wipeoutblock with a dashed line down the center to represent our beam then rotate it into place.

 

Thank you for any help on this you all can give me.

**Master
dmfrazier
Posts: 2,722
Registered: ‎05-13-2003
Message 2 of 5 (452 Views)

Re: Dynamic Beam LISP help

11-21-2013 06:54 AM in reply to: ugsquish

It "sounds" like you're asking for a LISP routine, yet you've posted in the DB forum.

Based on your comments, it seems to me that what you want can be done with a DB.  The only thing that isn't clear to me is what the DB should look like in general.

Can you draw a (static) block that represents the "base condition" and post it here?

Contributor
ugsquish
Posts: 12
Registered: ‎04-07-2006
Message 3 of 5 (448 Views)

Re: Dynamic Beam LISP help

11-21-2013 07:36 AM in reply to: dmfrazier

Here is a representation of the block. But I need to write a command that will allow me to just drop it in and set its size. I have this same post over in the lisp section and they reccomended me to post it here. Basicly I want my users to have to click twice. Once for insertion point, second for length and rotation. If this is at all possable anyway. Thanks in advance for any help.

*Expert Elite*
Charles_Shade
Posts: 8,196
Registered: ‎04-10-2005
Message 4 of 5 (441 Views)

Re: Dynamic Beam LISP help

11-21-2013 10:43 AM in reply to: ugsquish

Something like this a starting point?

Regards, Charles Shade            Win8 FAQ
CSHADEDESIGN|AUTOCAD LT|LT-KB|DYNAMIC BLOCKS

 
Please mark Accept as Solution if your question is answered. Kudos gladly accepted.
**Master
dmfrazier
Posts: 2,722
Registered: ‎05-13-2003
Message 5 of 5 (440 Views)

Re: Dynamic Beam LISP help

11-21-2013 10:48 AM in reply to: ugsquish

"Basicly I want my users to have to click twice. Once for insertion point, second for length and rotation."

It was fairly straightforward to get a Polar Stretch (with some Constraints) to effectively combine "length and rotation" into one action for the "beam" and the mid-line.  I had some initial trouble with (and mounting doubts about) how well the WIPEOUT would behave, but after a few trials (and tribulations) the block in the DWG in the attached ZIP file seems to do what you have described.  (I drew some random lines to test the WIPEOUT.)

I assumed you wanted the insert point to be the upper-left corner (as it was in your block).  Because of this, I also assumed you would want that point to be center of rotation and the stretch grip to be at the upper-right corner.

 

I re-named the block "db_Beam" (just one of my conventions).

 

I edited the block with AutoCAD 2013, but saved the file as 2010 (to match the format you sent).

 

I don't know what your plan is to make this block available to other users.  If I were doing this, I would probably put it on a Tool Palette (drag-n-drop the block from its container DWG via DesignCenter).  If so, the users will actually have to click more than twice - once on the palette, once in the model to place it, once to select the stretch grip, and once to place it - but I think it's essentially what you're after.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community