Jump to content
Developer Wiki and Function Reference Links Read more... ×
herbieherb

Planar Boolean from two lists of objects

Recommended Posts

I want to do a planar boolean intersect object operation with two lists of objects. I got two lists of objects:

A1  B1

A2  B2

A3  B3

...   ...

What i want to do is to intersect them like:

A1 with B1

A2 with B2

A3 with B3

...

 

When i just input list 1 and list into the hBlank and hTool inputs of planar boolean it seems to intersect them like:

A1 with B1, B2, B3, ...

A2 with B1, B2, B3, ...

A3 with B1, B2, B3, ...

...

Share this post


Link to post

This is what i did for now. Unfortunately the network does only work with a certain amount of inputs. So if you have any other suggestions, I'd be very grateful.

solution.thumb.jpg.e374626872bf6b399d8d326d32925f0e.jpg

 

Share this post


Link to post

I have created a version of the node that I think might work for you. I have added a dropdown menu that allows you to choose whether to cross reference or to compare lists. For brevity's sake, I only added the option of "shortest list" so if one list is longer than the other, the extra of the longer list will be ignored.

PlanarBoolean.vwx

 

  • Like 1
  • Love 1

Share this post


Link to post

@sbarrett, could this be reworked so that the "A" polygons were on one design layer named "A", and the "B" polygons were a second design layer named "B", and then the resultant geometry gets placed on a 3rd layer? I'm thinking about how this may be applicable to creating and defining exst/demo/new surface areas on a site plan.

Thanks,

Matt

Share this post


Link to post

From a scripting standpoint, I think you could easily put these objects in separate classes. Putting them in separate layers can be a little trickier, because the created geometry is always placed in a group and that group will be placed on the active layer, no matter what layer the objects INSIDE the group are on. The way around this would be to place your starting objects on the layers that you want them on, and then run your script with the active layer set to the layer that you want those objects placed on.

 

You can do this within the script with classes using the Set Class node from the attributes folder, or with layers using the Set Layer node from the Layers folder.

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.

×