Jump to content

Peter Vandewalle

  • Posts

  • Joined

  • Last visited


47 Great

Personal Information

  • Occupation
    Senior Product Specialist - Design Express
  • Homepage
  • Hobbies
    Architecture, Music, Bass, Mac
  • Location

Recent Profile Visitors

1,201 profile views
  1. You’ll need to start by creating a parametric object in the plug-in editor in the tools menu. You could create a rectangular object, that’s one of the options. In the same plug-in editor you can also add parameters and add the script. That can be Vectorscript or Python. you can also import an external file into that script. That external file can then hold the main part of the script.
  2. For Pats example ‘door’.’usrfield1’ use this line to get the value into an internal variable: var = vs.Pusrfield1 or: var = vs.GetRField(<handle to PIO instance>, “door”, “usrfield1”)
  3. You’ll find the plug-in editor in the tools menu. In the plug-in editor you can create an additional plug-in. I think the reducer would be a point object or a line object. You ‘ll need to add a few parameters to the plug-in object. This can be done in the plug-in editor. Last but certainly not least, you’ll need to write the script. This can be Vectorscript or Python. The script can be written in the plug-in editor or referenced to an external text file (.px for Vectorscript, .py for Python). Also, check the developer website for reference. developer.vectorworks.net Of course there are at least a thousand more things to tell about scripting in Vectorworks.
  4. The only solutio I'd see is to add a record to all the involved symbols and have a specific field indicate the desired layer upon insertion. So after inserting the symbol a script could read the record field value an move the object (symbol) to the correct layer. It could even create the layer if that one doesn't exist yet.
  5. @drelARCH: Very interesting nodes by @Takeshi_Kimura but unfortunately there's no 'materials popup' node in his list either.
  6. I'm building a simple hybrid object in Marionette. Now I'd like to use materials in the object. There seem to be no nodes for materials in Marionette. I'm missing 2 nodes: A 'materials popup' node to select a material from the available materials in the current document. A 'set material' node to attach a material by name to an object by handle. I've been able to create the latter. But when I create the 'materials popup' node, I'm running into an issue. When I create the node, it lists the materials in the document correctly, but when I add a material to the document, it doesn't update except when I save the current document... I'm attaching my custom nodes. Geëxporteerd bestand Marionette.vwx
  7. I think Pat is handing the best solutions. If your case doesn't act as expected, we need to see the actual drawing and selection you're using. Maybe we can find why it's not acting as you'd expect.
  8. Hello @Edgar RAMEL I solved the issue withe the units in the script, that's why it's working as it does. I just wanted to explain why the previous version was wrong. The fact that the command changes the selected object's settings to class settings was also a choice that I made because it seemed logic to me. You can always remove the class attributes by hand afterwards.
  9. Sorry, didn't find the time to sort it out earlier. There are some issues between reading and writing of the dropshadow values. By reading, they are always in mm, for writing they need to be document units... Finally, you can try this one. Object Attributes to Class_2021_03.zip
  10. New version, should be fixed now. Object Attributes to Class_2021_02.zip
  11. Thanks all, you rock! SetObjectVariableInt(hSymbol, 9743, 0) did it. We found an old post by @klinzey about this. @klinzey: Do you know where can we find this value?
  12. Hi Julian, I tried the editobjectspecial(h, 4) and got an error. Apparently it doesn’t work from within a PIO. And about the profilegroup, it doesn’t seem to be possible to get the content from that group in a point PIO.
  13. I have a PIO that does something similar to duplicate array, but parametric. I also have a command that starts from a selected 2D or 3D object and turns it into a Serial Duplicate PIO. The duplicated object source has to be a symbol because I can’t use the profile group in a point plugin. I’m trying to make a doubleclick on the object edit the symbol content. I tried the EditObjectSpecial, but that doesn’t seem to work...
  14. Worksheet scripts only run when the worksheet is recalculated. And only if the users allows it.
  • Create New...