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

Set attributes to obyects in selected classes

Recommended Posts

Hi there


I hope I haven't overseen any similar topics in the forum, please give me a link if this has already been handled.


I'm new to marionette and I'm trying to do the following:


After importing a dxf in vectorworks I want certain objects to receive specific color and line weight attributes. The objects I want to modify are an a specific layer and are either red, green or blue - so far so good, I can use "Objs by Crit" for that.


But the objects are also in classes that contain the string "_ein" in their name. All other objects with the same attributes that are in other classes should not be affected by the script.


I created the network you can see in the picture, but it obviously isn't correct because the information about the class name has no effect on the outcome. Any suggestions?

(The "copy" node seems to be necessary because the "attribute" nodes don't allow selecting different transparency values for filling and line)



Share this post

Link to post

Hi @luk

Would you be able to send me this file either by attaching it here, or sending me a private message?

Also, you should not be using the copy node because it will effectively create 2 of each of those objects, which I would assume you don't want.

Share this post

Link to post

Hi Marissa


I've edited the network:

- Added the first two nodes you suggested. In an earlier try I had this:


Then as a part of the several attempts I made, I removed the first two nodes.


- The second edit I've done, is the adding of a second parallel part, which should give different, new attributes to objects that have the same starting attributes, but have a different class (the class name contains _aus , instead of _ein):


I hope it's clear...


Then 2 things about the node "Objs by Crit":

1- If I copy one from one drawing and paste it in another, it won't work. I have to edit the criteria because the primary color seems to change in different files... 

2- When I open the criteria configuration menu I have to set all criteria manually. The menu does not seem to remember which criteria had been set earlier.


Thank for helping me out




Import_Schleppkurven - Versand_181221.vwx


Edited by luk

Share this post

Link to post


I've attached a revised file with a network that I believe should keep you going in the right direction.

It makes a copy of the objects you're changing and groups them so that your original information stays the same and could be deleted later, mostly for debugging purposes on my end.

I will submit a bug to allow the Attributes node to have separate opacities for pen and fill, and I'll try to remember to post the node here once I've completed it so you won't have to wait until a service pack to use it. For now, I set the opacities using the Set Opacity node.

Feel free to ask any questions.

Screen Shot 2018-12-21 at 10.48.00 AM.png

Import_Schleppkurven - Versand_181221_MFarrell.vwx

Share this post

Link to post

wow, for the moment I'm just a bit to overwhelmed to be able to ask any questions...😄

Thanks for the moment, I'll take some time to study the network.

I'm about to shut down for this year so thanks a lot, I wish you happy holidays!



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.