Frenchy1 Posted October 29 Share Posted October 29 Hi Chiefs Does anyone know if it is possible to get a cabinet schedule to produce the actual carcass height i.e without toe kick or countertop as this is the measurement used when ordering cabinets on plastic feet. I see you have two height option in the schedule. one for box height which included toe kick and carcass and one full height which included toe kick, carcass and countertop. I realize you could probably draw without a toe kick then use a polyline solid to produce the toe kick to force the size to work but would be great just work from within chief??? Link to comment Share on other sites More sharing options...
MarkMc Posted October 29 Share Posted October 29 Create a custom object information field in your cabinet defaults. Here I called it carcass. Create a new macro (height-(countertop_thickness+toekick_height). Select the field and place the macro there using the drop down. FWIW if I were doing this I would set the default box height to what I wanted and set the default height off the floor. An advantage is less likely to forget to order toe kick NOTE- be careful relying on the macro if changing cabinet construction. - IF you just uncheck toe kick the macro will still subtract that amount. To get it to read the macro to read properly you need to set the toe height to 0. Plan attached No toe.zip 1 Link to comment Share on other sites More sharing options...
Frenchy1 Posted October 30 Author Share Posted October 30 22 hours ago, MarkMc said: Create a custom object information field in your cabinet defaults. Here I called it carcass. Create a new macro (height-(countertop_thickness+toekick_height). Select the field and place the macro there using the drop down. FWIW if I were doing this I would set the default box height to what I wanted and set the default height off the floor. An advantage is less likely to forget to order toe kick NOTE- be careful relying on the macro if changing cabinet construction. - IF you just uncheck toe kick the macro will still subtract that amount. To get it to read the macro to read properly you need to set the toe height to 0. Plan attached No toe.zip 738.94 kB · 1 download wow thanks i will give it a whirl and thanks for posting a file also Link to comment Share on other sites More sharing options...
Frenchy1 Posted October 30 Author Share Posted October 30 22 hours ago, MarkMc said: MarcMc. thanks for the info. ill post a super quick video to help others or remind myself. there was a typo in the macro which should read %height-countertop_thickness-toekick_height% total height 900mm - 40mm countertop - 150mm kicker = 710mm (works a treat). Never really played with macros before but very interesting. Screen Recording 2024-10-30 204916.mp4 Link to comment Share on other sites More sharing options...
MarkMc Posted November 5 Share Posted November 5 On 10/30/2024 at 6:54 AM, Frenchy1 said: there was a typo in the macro which should read %height-countertop_thickness-toekick_height% IF there was a mistake in the macro the result would not show. The difference is I created a named macro in the Text Macro Management DBX. Typing there you do NOT use the % signs. BUT I just saw that the first "(" in my post does not belong, sorry. Still correct in the plan though. Creating a named macro allows it's use from the drop down, OR using % sign with just the name. as in %carcass_h%. Once you have a named macro you can also export it to a folder and import into a plan for later use. As macros get more robust/complicated you really want to have them named. Link to comment Share on other sites More sharing options...
Renerabbitt Posted November 5 Share Posted November 5 On 10/30/2024 at 3:54 AM, Frenchy1 said: MarcMc. thanks for the info. ill post a super quick video to help others or remind myself. there was a typo in the macro which should read %height-countertop_thickness-toekick_height% total height 900mm - 40mm countertop - 150mm kicker = 710mm (works a treat). Never really played with macros before but very interesting. Screen Recording 2024-10-30 204916.mp4 7.53 MB · 0 downloads Please keep in mind that this does not check for the presence of a toe kick or countertop so it will report the same dimension regardless of if it has a toe or countertop. Link to comment Share on other sites More sharing options...
Renerabbitt Posted November 5 Share Posted November 5 # Copyright Rabbitt Design 2024 # This script calculates the final height by conditionally subtracting countertop thickness and toekick height. # Define the initial variables. These should be publisher variables with types defined as Measurement class objects. # Assume `height`, `countertop_thickness`, and `toekick_height` are measurements in default units. # Variables and conditions for the calculation final_height = height # Start with the initial height # Check if the countertop should be subtracted based on the presence of countertop or custom countertop if has_countertop || has_custom_countertop final_height -= countertop_thickness # Subtract countertop thickness if has_countertop or has_custom_countertop is true end # Check if the toekick should be subtracted based on the presence of toekick if has_toekick final_height -= toekick_height # Subtract toekick height if has_toekick is true end # Output the calculated final height final_height Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now