TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Andrea on February 17, 2009, 10:09:25 PM

Title: DLMO Dynamic Line Modeler !
Post by: Andrea on February 17, 2009, 10:09:25 PM
 :-)

Hi all..
its me again.

After using some infographic software...
I've decided to try to create something similar with AutoCAD..

ther is my First release of:
DLMO v.1.0
Dynamic Line Modeler

How it work:
First I was trying to know a good way to modify some entity without picking, selecting, removing, filtering...entity. so i've decided to use circle as MODELER. this modeler can be resize easely with + or - key
it will change color from cyan to red when it detect entity that it can Edit.

When ready to edit, press the TAB key to switch Modeling Method. Pick and move your mouse !
It will create and modify your entity Dynamicly !

For Now, I have make these Kind of edition:
"TRIM" "PICKER" "WAVE" "BUBBLE" "TRAPEZE" "SQUARE" "ROUNDED" "TWISTED" "SMOOTHTWISTED" "CANDLE"

If you have any idea to create some other kind...please let me know or feel free to add it !  :-)

Tested on LINE, POLYLINE, ARC, SPLINE,.
Need to check the closed entity.

Note: by Modeling the end point of entity, this allow you to extend it.

Let me know what you think of.

Thanks.  :angel:

Some pics...
(http://www.theswamp.org/screens/Andrea/DLMO0.gif)

(http://www.theswamp.org/screens/Andrea/DLMO1.gif)

(http://www.theswamp.org/screens/Andrea/DLMO2.gif)

(http://www.theswamp.org/screens/Andrea/DLMO3.gif)

(http://www.theswamp.org/screens/Andrea/DLMO4.gif)
Title: Re: DLMO Dynamic Line Modeler !
Post by: AndyM on February 18, 2009, 07:45:22 AM
Very cool.  I'm envious!
Title: Re: DLMO Dynamic Line Modeler !
Post by: mjfarrell on February 18, 2009, 07:48:40 AM
Definitely SMOOTH!

and Twisted!
Title: Re: DLMO Dynamic Line Modeler !
Post by: dustinthiesse on February 18, 2009, 08:44:43 AM
 :-o  :-o
wowza
Title: Re: DLMO Dynamic Line Modeler !
Post by: James Cannon on February 18, 2009, 09:12:21 AM
That is just too awesome.

Your creativity and skill in execution is superb.
Title: Re: DLMO Dynamic Line Modeler !
Post by: GDF on February 18, 2009, 10:04:54 AM
Andrea

I could not get it to work.

Command: dlmo

Current Mode -> TRIM
Setect Line... nil


Nothing happens.

Gary
Title: Re: DLMO Dynamic Line Modeler !
Post by: Andrea on February 18, 2009, 05:29:43 PM
Andrea

I could not get it to work.

Command: dlmo

Current Mode -> TRIM
Setect Line... nil


Nothing happens.


Thanks all...

Gary...
this was tested on Line Pline ARC and SPLINE..
is that what you have selected ?  I'm curious to see.. please let me know.
thanks.

 :-)

New version 1.1 here
Title: Re: DLMO Dynamic Line Modeler !
Post by: GDF on February 19, 2009, 09:49:33 AM
Andrea

Command:
Command: (LOAD "E:/Arch_WorkOn/Code/dlmo1.1[1].LSP")
Press DLMO to start.CLEANDLMODELVAR

Command: dlmo

Current Mode -> TRIM
Setect Line... nil

Nothing continues to happen..the routine booms out.

Gary
Title: Re: DLMO Dynamic Line Modeler !
Post by: Andrea on February 19, 2009, 11:09:10 AM
Andrea

Command:
Command: (LOAD "E:/Arch_WorkOn/Code/dlmo1.1[1].LSP")
Press DLMO to start.CLEANDLMODELVAR

Command: dlmo

Current Mode -> TRIM
Setect Line... nil

Nothing continues to happen..the routine booms out.

Gary


Gary,..I can't reproduce this error.
Please check your PM i'll try to help you.

thanks.

Andrea.
Title: Re: DLMO Dynamic Line Modeler !
Post by: GDF on February 19, 2009, 11:24:21 AM
Andrea

Load your routine and enter in the command : DLMO

What should appear on the command line?
I get the following:

Command:
DLMO
Current Mode -> TRIM
Setect Line... nil
Command:


The routine does nothing...why do I get TRIM?

Gary
Title: Re: DLMO Dynamic Line Modeler !
Post by: Andrea on February 19, 2009, 01:25:48 PM
OK..

I got only an Invalid Point but the program work.
the message is because I use BREAK command with select entity.

The code below show this message.....but still work.
Code: [Select]
(setq i (car(entsel)))
(setq a (getpoint))
(setq b (getpoint))
(vl-cmdf "._break" i "_F" a b "")

The code below don't show the message but not working.
Code: [Select]
(setq i (car(entsel)))
(setq a (getpoint))
(setq b (getpoint))
(vl-cmdf "._break" i a b "")

the question....

why ? :?



Title: Re: DLMO Dynamic Line Modeler !
Post by: KewlToyZ on February 19, 2009, 05:33:22 PM
AutoCAD version added/removed some extra option?
Drawing variable interfering?

Maybe do  list of variables in a file that it works in and compare to one that doesn't?
Title: Re: DLMO Dynamic Line Modeler !
Post by: Adesu on February 20, 2009, 05:45:43 AM
I just tested on acad 2000, it got error and computer hang, why ?

OK..

I got only an Invalid Point but the program work.
the message is because I use BREAK command with select entity.

The code below show this message.....but still work.
Code: [Select]
(setq i (car(entsel)))
(setq a (getpoint))
(setq b (getpoint))
(vl-cmdf "._break" i "_F" a b "")

The code below don't show the message but not working.
Code: [Select]
(setq i (car(entsel)))
(setq a (getpoint))
(setq b (getpoint))
(vl-cmdf "._break" i a b "")

the question....

why ? :?




Title: Re: DLMO Dynamic Line Modeler !
Post by: Andrea on February 20, 2009, 04:08:08 PM
I found it... !

with using command against vl-cmdf

Code: [Select]
(setq i (car(entsel)))
(setq a (getpoint))
(setq b (getpoint))
(command "._break" i a b)

Here it is....DLMO v. 1.2
Title: Re: DLMO Dynamic Line Modeler !
Post by: Andrea on February 26, 2009, 10:09:44 PM
Hi all..

I have fixed and add some options
DLMO v.1.3
Dynamic Line Modeler


New Options:
"NODE1" "NODE2" "DBLNODE"

enjoy !

Title: Re: DLMO Dynamic Line Modeler !
Post by: kdub on February 27, 2009, 12:20:27 AM


I'm interested to know what type of work these 'dynamic' applications are being used for ...
I'd guess they'd be great for horticultural type work  ...

please note that this is not intended to be a denigration of the code, just a legitimate interest in it's potential use.
Title: Re: DLMO Dynamic Line Modeler !
Post by: Andrea on February 27, 2009, 12:40:44 AM
well...to be honest...
I don't realy know..  :laugh:

maybe some specific block creation.

but I think it is a good exercise on what we can do with grread.

 ;-)
Title: Re: DLMO Dynamic Line Modeler !
Post by: KewlToyZ on February 27, 2009, 05:19:32 PM
A little off topic, I really love this tool regardless of its use, the function is great.
What are you guys using to make those gif files?
Title: Re: DLMO Dynamic Line Modeler !
Post by: Andrea on February 27, 2009, 06:01:44 PM
CamTasia Studio (http://www.techsmith.com/camtasia.asp)
Title: Re: DLMO Dynamic Line Modeler !
Post by: KewlToyZ on March 03, 2009, 10:31:09 AM
Thanks Andrea, I have the program, just wondered if it was the same.  :-)
Title: Re: DLMO Dynamic Line Modeler !
Post by: M-dub on March 03, 2009, 10:38:43 AM
I don't know what I'd use it for, but that is yet another impressive dynamic tool, Andrea!  Great work!  :)
Title: Re: DLMO Dynamic Line Modeler !
Post by: Krushert on March 06, 2009, 12:14:26 PM
Hi Andrea,

I am trying to do this  (http://www.theswamp.org/index.php?topic=27734.0)and CAB suggested your routine.   I got it to work on the pline.  It was getting confuse with hatch residing inside the pline.  My new question is can osnap be used?  Right now your routing is turning off running osnaps and the routine exits when select an osnap.

I would like use the picker option and snap to another pline.   
Title: Re: DLMO Dynamic Line Modeler !
Post by: xiaxiang on December 30, 2010, 09:12:26 PM
I have to say that it was a great tool,Andrea!