Author Topic: Truly dynamic blocks  (Read 3078 times)

0 Members and 1 Guest are viewing this topic.

Bhull1985

  • Guest
Truly dynamic blocks
« on: January 09, 2014, 09:12:21 AM »
Just spitballing here, but...
Via using a dynamic block, and having lisp draw a bounding box around this block in a new layer, then freezing the bounding box after setting the corners to variables. This would put an invisible bounding box around the inserted dynamic block, and I've seen some samples of this from Lee, read about them from others......but would it be possible to have the visibility state change on the dyn block once the mouse cursor moves within the bounding box? This would in effect create a mouse-over changing block, that could be neat to play with and use as simulations perhaps, for a variety of disciplines.
I know this isn't delving too deep but before I spend any good amount of time with it I was hoping to hear some others thoughts on if this is possible or no...?

Bhull1985

  • Guest
Re: Truly dynamic blocks
« Reply #1 on: January 09, 2014, 09:53:49 AM »
No takers? Perhaps I need to do more research...

kruuger

  • Swamp Rat
  • Posts: 637
Re: Truly dynamic blocks
« Reply #2 on: January 09, 2014, 10:33:47 AM »
No takers? Perhaps I need to do more research...
not 100% sure but i think this can be done with grread and nentsel.
when grread is run we serach with nentsel for specific block name and then change visibilty.
reminds me this:
http://forum.cad.pl/download/file.php?id=1208&mode=view
k.
« Last Edit: January 09, 2014, 10:37:58 AM by kruuger »

Bhull1985

  • Guest
Re: Truly dynamic blocks
« Reply #3 on: January 09, 2014, 11:47:26 AM »
Yes, actually, this is exactly what I was hoping for....well, not exactly but the process would be very similar.
Excellent, this opens a whole new door for block capabilities.
Do you happen to have or know the source code for the program shown in the .gif??

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Truly dynamic blocks
« Reply #4 on: January 09, 2014, 12:27:36 PM »
https://www.theswamp.org/index.php?topic=35456.0

I also think there were some in the grread thread but no time to look.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

kruuger

  • Swamp Rat
  • Posts: 637
Re: Truly dynamic blocks
« Reply #5 on: January 09, 2014, 12:31:24 PM »
Yes, actually, this is exactly what I was hoping for....well, not exactly but the process would be very similar.
Excellent, this opens a whole new door for block capabilities.
Do you happen to have or know the source code for the program shown in the .gif??
thats my program with Lee grtext.
http://www.cadtutor.net/forum/showthread.php?54230-Group-command-routine&p=401608&viewfull=1#post401608
more here:
http://forum.cad.pl/lisp-grupy-t76510.html
maybe you can use google translator.


what is a real life sample for this ? where do you want to use this ?
kruuger

ymg

  • Guest
Re: Truly dynamic blocks
« Reply #6 on: January 11, 2014, 02:54:28 PM »
kruuger,

Quote
thats my program with Lee grtext.
http://www.cadtutor.net/forum/showthread.php?54230-Group-command-routine&p=401608&viewfull=1#post401608
more here:

Was looking at your program, nicely done!

You realized that you could use regular text if you entmake it instead of the Vector text?

ymg

kruuger

  • Swamp Rat
  • Posts: 637
Re: Truly dynamic blocks
« Reply #7 on: January 11, 2014, 04:53:10 PM »
Quote

Was looking at your program, nicely done!

You realized that you could use regular text if you entmake it instead of the Vector text?

ymg
Thanks ymg. Yes i saw some sample with entmake but i was to try play with Lee sub routine.
k.