Jump to content
Gregi

Set Record Field for several identical items

Recommended Posts

Hi Forum

 

I'm really new in Marionette, so I get struggle on some (maybe) easy points. I want to connect objects (Symbols OR Marionette-Objects like rectangle,...) to a record and if the Object is existing more than just once it should be set the same way every time. I tried it this way but its not working. Do you have any ideas?

image.thumb.png.e496d93331d5849c211b59b25cf91754.pngimage.thumb.png.b48884d2f781a57414954bff7fc37f2b.pngimage.thumb.png.e6e3b88fd2a486e920fc77e720b8a743.png 

Forum_Set Record x times.vwx

Share this post


Link to post

@Gregi

I would always assign one individual value in a database, in your case for example the position of the symbol. Alternatively, you can create one individual number (inventory number). Than keep this individual number as the first value (column) in the database.
In a similar project, I only succeeded with this simple change. 

If that's not the solution, I'll take a closer look at your file.

 

Share this post


Link to post

@Gregi,

 

entering the datafields as a repeat list is an interesting idea, but I don't think it works. Respectively I find no solution. List processing is somewhat difficult in marionette, here it would be very helpful to optimize marionette in the future.

Here my experiments and a simple variant that works at least. (the lower one)

Forum_Set Record-mg.vwx

Share this post


Link to post

@m.graf

Thank you very much for your help! So i have to insert a separate "set record field" node for every single field - that's it 🙂

Share this post


Link to post

I think you could try using a Mix2 node and choose the Cross Reference mode in the Object Info palette of the node. The important thing for list handling in this instance is that there are the same number of values flowing to each input. The Mix 2 node allows you to repeat values in the way that you want.

 

Mix2 Cross Reference Example.vwx

  • Like 1

Share this post


Link to post

Hello Sarah

Great, it even works!

The handling with lists remains my personal weak point. 😫

greatings M.Graf

 

@Gregi - take the example of Sarah it is much better

 

Share this post


Link to post

Hi Sarah

 

This is great an makes my network more clear!

Share this post


Link to post

I just realized a weird thing. 
If I connect an object with several record fields I got duplicates in the output. A Bug?

It's easy to fix with a "Remove Duplicates" Node

 

Wrong, If i want this object to move afterwards:

image.thumb.png.ecf5bfb68b13348d476d899ab6341bbd.png

 

And fixed:

image.thumb.png.3cc62e679827c7eb26e491afa2f5755f.png

  • Like 1

Share this post


Link to post

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.


 

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.

×
×
  • Create New...