Jump to content
Developer Wiki and Function Reference Links ×

Get Layer Level Type from Wall - Wall Merger


KroVex

Recommended Posts

Hi All

 

I'm trying to build a Wall Merger Tool (separate Walls are combined to one Wallstyle).

Im almost done, but one last thing make me crazy:

With vs.GetObjStoryBound i can get the Layer Level Types.

It needs as input the component handler and the boundID. 

The boundID needs a 0 for the lower edge and a 1 for the upper edge.


So if I feed in a list of 1's, or a list of 0's, I get all top edges or all bottom edges extracted.

But when I shuffle the lists (no matter how), wrong values come out:
223648248_Bildschirmfoto2022-08-15um14_17_14.thumb.png.a2748855f9fe638442345af546cf9e26.png
GetLayerLevelType.vwx

Sure, I could use "Get Component Story Bound" twice, once with 0 lists and once with 1 lists.
But I'm interested in why it doesn't go together and it wouldn't be solved that nicely either.

Does anyone have an idea or explanation?

Greetings KroVex

Link to comment
  • 2 weeks later...
  • Marionette Maven

This has to do with the way Marionette runs - it will run as many times as the longest list, repeating the last value. It's lightly discussed on this page: https://developer.vectorworks.net/index.php/Marionette_Basics

In any case, I'm attaching a network that I think does what you'd like better, let me know if you need any more help!

GetLayerLevelType_MFarrell.vwx

  • Like 1
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...