FKA Posted October 2, 2023 Share Posted October 2, 2023 Hello, is there anyone who has thought about s script to convert a space object into a CC Layout room. My scripting is quite basic, so I can not build it by myself, but I think it could be done by the following steps (I am working on the German version, I hope I get the int. names of the functions correct): - select a space obj - duplicate the selected space at same place - safe name in a var - ungroup Space > result is a group (polygon + Loci) + maybe a datatag - ungroup the resulting group - select the Polygon (loci doesn't matter if selected) - create object from shape > Layoutroom rename Layoutroom with name of the space (in var) Is anyone able to put this into a script? Would be very helpful;) Thanks in advance! Flo Quote Link to comment
Pat Stanford Posted October 3, 2023 Share Posted October 3, 2023 You can't have two objects (the space and the layout room) with the same name. How would you like to differentiate them? Quote Link to comment
FKA Posted October 3, 2023 Author Share Posted October 3, 2023 Hey Pat, thanks for the quick response. Ok I see, lets say we add a „CC“ in the beginning. Or a dialog box appears and asks for an addon. Would that work? my usecase is, that I have architectual drawings with lots of spaces, and I need to do cc cable planing in these so i would like to speed up my workflow by dublicating and converting the existing spaces to get the benefit of layoutrooms in cc. i know about the ws function =roomnameofobj which could do most of what the layoutroom can do when it comes to worksheets, but i would prefer to have layoutrooms that talk with Droppoints and Equipment objects. thanks for your help! Quote Link to comment
Vectorworks, Inc Employee Nikolay Zhelyazkov Posted October 3, 2023 Vectorworks, Inc Employee Share Posted October 3, 2023 Hello @FKA, Here is a file with a script that does this with the selected space. The naming is not a problem because it is not about the actual object name but about the Name parameters of the objects. Best Regards, Nikolay ZhelyazkovRoomFromSpace.vwx 1 Quote Link to comment
Thomas K. Posted February 20 Share Posted February 20 Hi @Nikolay Zhelyazkov any change to get this working for imported ifc space objects? Thnx Quote Link to comment
Vectorworks, Inc Employee Nikolay Zhelyazkov Posted February 20 Vectorworks, Inc Employee Share Posted February 20 1 hour ago, Thomas K. said: Hi @Nikolay Zhelyazkov any change to get this working for imported ifc space objects? Thnx No change yet but we have this planned and will definitely work on it, so keep your eyes open. 1 Quote Link to comment
Thomas K. Posted March 12 Share Posted March 12 Hi @Nikolay Zhelyazkov I tried but failed to get this working for more than one space object. Could you please give me a hint? Or is it impossible? Thank you!! Quote Link to comment
Vectorworks, Inc Employee Nikolay Zhelyazkov Posted March 13 Vectorworks, Inc Employee Share Posted March 13 23 hours ago, Thomas K. said: Hi @Nikolay Zhelyazkov I tried but failed to get this working for more than one space object. Could you please give me a hint? Or is it impossible? Thank you!! - You mean to create a layout room from a space using the script from above? Quote Link to comment
Thomas K. Posted March 13 Share Posted March 13 Hi @Nikolay Zhelyazkov to be more precise: to convert all spaces living in the drawing to layout rooms. Quote Link to comment
Vectorworks, Inc Employee Nikolay Zhelyazkov Posted March 13 Vectorworks, Inc Employee Share Posted March 13 9 minutes ago, Thomas K. said: Hi @Nikolay Zhelyazkov to be more precise: to convert all spaces living in the drawing to layout rooms. The script attached here will work with the first selected space only. It can be modified to work for all spaces in the document using a foreach, but then the changes would be a bit invisible to the user that runs the script. Let me know if you need help modifying the script. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.