Jump to content
michaelk

Cabinet and Countertop Scripts

Recommended Posts

I'm posting a couple of scripts that I've found useful when dealing with cabinets and countertops. I've been using them in a more hacky way for a while and just recently, (Thanks Patrick, Marissa, Hippocode, and Raymond!) made them more presentable. Still pretty ham-fisted coding, but it works!

If there is any interest in them I may make a prettier version with dialog boxes.

But first let's see if there is any interest.

It started with a wish list for a graphic way to insert cabinets.

These scripts will insert cabinets between two clicks. Just run one of the scripts, click a starting point and click an ending point. The script will insert cabinets on the "left" side of the line between the two clicks. Think of it as going counter clockwise around a room.

There are different versions:

Fast Base Cabinets +18,24,36 will insert base cabinets with a standard width (18, 24, 36 inches) and one more to fill in the remaining distance, if any. It will also create a countertop floor object on top.

Fast Base Cabinets 1,2,3,4,5 creates 1,2,3,4, or 5 base cabinets of equal length.

Fast Upper Cabinets +18,24,36 does the same thing for upper cabinets.

Fast Upper Cabinets 1,2,3,4,5 does the same thing for upper cabinets.

Fast Countertop creates just a countertop. I often find it helpful to separate this step. (You can turn off countertops in the Fast Base Cabinet scripts by changing the value for WouldYouLikeACountertopWithThat from TRUE to FALSE.)

The parameters are easily editable to your own taste.

I think these scripts should work back to 2014. Please let me know if there are any issues.

These scripts assume Imperial dimensions in inches. Metric users can change the default values in the declarations after the Procedures SetCabinetParameters and LastSetCabinetParameters.

mk

Share this post


Link to post

michaelk - thanks for posting these scripts, they look like they'll be pretty handy.

Share this post


Link to post
On 7/15/2016 at 11:03 PM, michaelk said:

I'm posting a couple of scripts that I've found useful when dealing with cabinets and countertops. I've been using them in a more hacky way for a while and just recently, (Thanks Patrick, Marissa, Hippocode, and Raymond!) made them more presentable. Still pretty ham-fisted coding, but it works!

If there is any interest in them I may make a prettier version with dialog boxes.

But first let's see if there is any interest.

It started with a wish list for a graphic way to insert cabinets.

These scripts will insert cabinets between two clicks. Just run one of the scripts, click a starting point and click an ending point. The script will insert cabinets on the "left" side of the line between the two clicks. Think of it as going counter clockwise around a room.

There are different versions:

Fast Base Cabinets +18,24,36 will insert base cabinets with a standard width (18, 24, 36 inches) and one more to fill in the remaining distance, if any. It will also create a countertop floor object on top.

Fast Base Cabinets 1,2,3,4,5 creates 1,2,3,4, or 5 base cabinets of equal length.

Fast Upper Cabinets +18,24,36 does the same thing for upper cabinets.

Fast Upper Cabinets 1,2,3,4,5 does the same thing for upper cabinets.

Fast Countertop creates just a countertop. I often find it helpful to separate this step. (You can turn off countertops in the Fast Base Cabinet scripts by changing the value for WouldYouLikeACountertopWithThat from TRUE to FALSE.)

The parameters are easily editable to your own taste.

I think these scripts should work back to 2014. Please let me know if there are any issues.

These scripts assume Imperial dimensions in inches. Metric users can change the default values in the declarations after the Procedures SetCabinetParameters and LastSetCabinetParameters.

mk

 

Hi Michael,

 

Where would i find the Cabinet scripts you wrote about? Would LOVE to try them out!

 

Thanks

 

Alan

Share this post


Link to post

Alan

 

I'll post the 2016 version.  

 

Something changed in 2017 so that the cabinets offset one cabinet from the points the user clicked.  Not sure why - I haven't had time to get into it.  Maybe one of the VS geniuses will help me out with that?

 

@JimWany news as to when uploads to the old forum will be restored to the new forum?

 

Hope this works for you.  Double click a script from the palette and then click two points on the drawing.  Cabinets will be drawn between those two points on the left side of an imaginary line connecting those points.  If you are clicking on top of already drawn walls make sure Wall Insertion Mode is off.  Otherwise some of the cabinets will be sucked into the wall.  The results are not predictable :-)

 

 

hth

 

 

mk

Cabinet Scripts~.vwx

  • Like 1

Share this post


Link to post

@michaelkNot so far, but it isn't forgotten, it may take until the second wave of forum upgrades though which I'm a good portion of the way through now.

Share this post


Link to post

Sorry, follow-up question: How do I bring your script into another file?

Thanks so much

Share this post


Link to post

Glad they work for you.

 

I find them helpful for quick layouts.  When I get time I'll make it do corners and fancy stuff.  

 

The scripts are in the resource browser.  Just import them like any other resource.

 

It might help to also copy and paste a set of cabinets from the sample drawing into your drawing so that the textures and cabinet hardware also follow.

 

 

mk

Share this post


Link to post

I don't think anyone (besides me :)) is actually using these, but just in case -  here is the 2017 update to the cabinet scripts.

 

Now the script works the opposite direction from the 2016 version.  In 2017 draw this script clockwise around the room.  The cabinets and countertops will appear on the right side of the line.

 

 

mk

Cabinet Scripts Update~ v2017.vwx

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×