Jump to content

Convert Space into Layout Room


FKA

Recommended Posts

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

 

Link to comment

 

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!

Link to comment
  • 4 months later...
  • 3 weeks later...
  • Vectorworks, Inc Employee
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.

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...