CooksDesign Posted August 16, 2023 Share Posted August 16, 2023 I am working in X15 and love the dynamic cabinet labels but I would like to use my cabinet manufacturers nomenclatures instead of the defaults. For example the sink base cabinet by default says SB33 which I would like to it say BSC3334. I can remove SB and insert width BSC33" but I don't want the inch symbols after it. I would like my label to say BSC3334 (even though the height is 34 1/2") so when I run report or schedule my assistant can just enter what is called out on the print. Link to comment Share on other sites More sharing options...
CooksDesign Posted August 16, 2023 Author Share Posted August 16, 2023 You are amazing. I will figure out how to do the macros. Thank you so much. Link to comment Share on other sites More sharing options...
Renerabbitt Posted August 16, 2023 Share Posted August 16, 2023 1 hour ago, CooksDesign said: I am working in X15 and love the dynamic cabinet labels but I would like to use my cabinet manufacturers nomenclatures instead of the defaults. For example the sink base cabinet by default says SB33 which I would like to it say BSC3334. I can remove SB and insert width BSC33" but I don't want the inch symbols after it. I would like my label to say BSC3334 (even though the height is 34 1/2") so when I run report or schedule my assistant can just enter what is called out on the print. I have a cabinet label system in my pro plan template but honestly it took 10s of hours to create so I wouldnt just offer it up here...it takes into account a ton of cabinet labeling conditions such as filler labels, appliance labels, glass cabinet labels, Microwave labels, spice cabinets garba pullouts etc. For what you are asking, a simple replace script would work inline 35 minutes ago, solver said: This is a quick and surely not the best example of how this could be coded. Eric gives a great example..here is another: Link to comment Share on other sites More sharing options...
CooksDesign Posted August 17, 2023 Author Share Posted August 17, 2023 solver I think I am missing something or I have typed something incorrect. %automatic_label 'BSC' << (((height - countertop_thickness).to_f).to_i).to_s << width.to_f.to_i.to_s : automatic_label% Link to comment Share on other sites More sharing options...
CooksDesign Posted August 17, 2023 Author Share Posted August 17, 2023 Renerrabbbit, when I enter the code you gave me it comes back as B33. Here again, I think I either typed something wrong or am missing something. %automatic_label[0..1].include?("SB") && type[0] == 'B' ? ('BSC' << ((height - countertop_thickness).to_f.to_i.to_s) << width.to__f.to_i.to_s) : automatic_label% Link to comment Share on other sites More sharing options...
CooksDesign Posted August 17, 2023 Author Share Posted August 17, 2023 Thank you so much MarkMc for the thorough explanation. It's a bit more complicated than what I was looking for. We use one cabinet manufacturer so the codes are pretty consistent with the exception of the "custom cabinets" in which I would probably just replace the labels manually and add a code for that cabinet in the object information field that will cross reference the correct normenclature in the cabinet schedule and note the finished ends, etc in object information comment field. Perhaps I can make a library of those cabinets. I am using CA catalog cabinets as the manufacturer catalog do not change dynamically. At this point it's probably just easier to manually change them vs having them dynamically change. I appreciate all your help but it's above my education level of CA. Link to comment Share on other sites More sharing options...
MarkMc Posted August 17, 2023 Share Posted August 17, 2023 OK got rid of it. I was hesitant at first anyway. Link to comment Share on other sites More sharing options...
Renerabbitt Posted August 17, 2023 Share Posted August 17, 2023 4 hours ago, CooksDesign said: Renerrabbbit, when I enter the code you gave me it comes back as B33. Here again, I think I either typed something wrong or am missing something. %automatic_label[0..1].include?("SB") && type[0] == 'B' ? ('BSC' << ((height - countertop_thickness).to_f.to_i.to_s) << width.to__f.to_i.to_s) : automatic_label% Either quote me or at mention me(click on my name in drop down) or it wont notify me here: %automatic_label[0..1].include?("SB") && type[0] == 'B' ? ('BSC' << ((height - countertop_thickness).to_f.to_i.to_s) << width.to_f.to_i.to_s) : automatic_label% this checks for the condition that the automatic label sees this as a sink base..so bear that in mind your automatic label should be in place on your default base cabinet. If the condition isnt met that your cabinet automatically reports SB in the automatic label then it will put the default automatic_label 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