Author Topic: Flex Duct Creator  (Read 71255 times)

0 Members and 1 Guest are viewing this topic.

Krushert

  • Seagull
  • Posts: 13679
  • FREE BEER Tomorrow!!
Re: Flex Duct Creator
« Reply #30 on: February 20, 2008, 06:44:28 PM »
Man, I'm a pain...grouping didn't work for me...ACAD 2008 b.t.w.

Make sure your pickstyle system var is set to 3
My pick style is set to 3 and I am getting 2 polylines no groups. 
but I am getting malformed list to if I hit the editor's load button.  Could be a bad copy and paste on my part though.

**edit**
Yep my bad.  The very last (princ) was missing its closing bracket.   :-P
« Last Edit: February 20, 2008, 06:48:02 PM by Krushert »
I + XI = X is true ...  ... if you change your perspective.

I no longer CAD or Model, I just hang out here picking up the empties beer cans

Dommy2Hotty

  • Swamp Rat
  • Posts: 1127
Re: Flex Duct Creator
« Reply #31 on: February 20, 2008, 07:27:32 PM »
Dom,
Change this in the code to zero dot zero and it will draw the collar.
Quote
(setq collar 0.0)      ; collar length at
each end

That will suffice.  I did like the collars at the ends.  Can't have it all, though!!!

Make sure your pickstyle system var is set to 3

It was set to 0, I changed it to 3, but it still isn't grouping them.  Is it Monday?

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Flex Duct Creator
« Reply #32 on: February 20, 2008, 09:35:52 PM »
Dommy,
I just returned, so make a group from the command lien using -group
note the dash.
Enter * for group name
If it creates a group please paste the sequence from the command line here.

As for the collar, you can make it any length you want but for now there is no way to set one to zero & not the other end.
I assume you got the layer & color set the way you want.
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.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Flex Duct Creator
« Reply #33 on: February 20, 2008, 10:53:11 PM »
Bit of a tangent (it is me after all) ... the latter part of this thread reminded me you could do this.

:)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Flex Duct Creator
« Reply #34 on: February 20, 2008, 11:44:19 PM »
Thanks Michael.
I'm not into groups, so you saved me from the command.  8-)

I'll investagate in the morning.
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.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Flex Duct Creator
« Reply #35 on: February 21, 2008, 09:04:49 AM »
You're very welcome Alan, hope it contributes to our fun in some way. :)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Flex Duct Creator
« Reply #36 on: February 21, 2008, 09:46:53 AM »
I found the error in the routine. So i updated the code & also attached a copy to this post as well.
I will replace the command with Michael's method in the next version.  :-)
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.

Dommy2Hotty

  • Swamp Rat
  • Posts: 1127
Re: Flex Duct Creator
« Reply #37 on: February 21, 2008, 11:57:04 AM »
I found the error in the routine. So i updated the code & also attached a copy to this post as well.
I will replace the command with Michael's method in the next version.  :-)


Okay, everything works exactly the way I want it, save one thing.  Is it possible to shorten the line/polyline that is used as the center of the duct by -5.125" at each end before the duct is created?

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Flex Duct Creator
« Reply #38 on: February 21, 2008, 12:14:11 PM »
What is the purpose?

Do you want the duct to be shorter than the center line?
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.

Dommy2Hotty

  • Swamp Rat
  • Posts: 1127
Re: Flex Duct Creator
« Reply #39 on: February 21, 2008, 12:58:32 PM »
Fast response...I like that!
The problem I'm trying to get resolved is that the collar extends past the main duct and the diffuser (see attached images).
If you can remedy this, cool, if not, no big deal, you've done more than enough already!  Thanks CAB!

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Flex Duct Creator
« Reply #40 on: February 21, 2008, 01:12:26 PM »
Set collar to 0.0
Code: [Select]
  (setq collar 0.0)      ; collar length at each end
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.

Dommy2Hotty

  • Swamp Rat
  • Posts: 1127
Re: Flex Duct Creator
« Reply #41 on: February 21, 2008, 01:39:26 PM »
Set collar to 0.0
Code: [Select]
  (setq collar 0.0)      ; collar length at each end

Yeah, but I like the collars!  I just added the lengthen command to the code that prompts the user to select the line at each end to shorten, but I'd rather have it done programatically from when you select the centerline.  I just don't have the knowledge (nor time) right now to do it myself.  It's not a big deal, as I've already dealt with it, but it would be nice.
« Last Edit: February 21, 2008, 01:44:27 PM by Dommy2Hotty »

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Flex Duct Creator
« Reply #42 on: February 21, 2008, 02:18:37 PM »
Try this. Make sure you have a straight segment at each end.
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.

rbeldua

  • Guest
Re: Flex Duct Creator
« Reply #43 on: April 09, 2009, 08:06:37 AM »
thanks mr. cab...mr lee mac and stykeface showed me your works..this is a very good lisp, make jobs so easier and fun..hope i can learn from all of you guys..thanks

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Flex Duct Creator
« Reply #44 on: April 09, 2009, 08:12:32 AM »
Thanks and welcome to The Swamp. :-)
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.