Jump to content

Antonio Landsberger

  • Posts

  • Joined

  • Last visited

Everything posted by Antonio Landsberger

  1. Hi KingChaos, if you have a choice between a) extruding two circles with different diameters and then subtracting the small extrude from the big extrude or b) subtracting a small circle from a bigger circle and then extruding the ring you should try b). This should not only be easier, but also a lot faster to process.
  2. Hi _c_, I can confirm: vs.GetPt doesn't work running it via Marionette Node in 2020 SP6, 2021 SP5 or 2022 SP2. But there is no crash at least. When I run the Node, vs.GetPt seems to be ignored. If this would work, you could do interesting things for sure. Regards, Antonio
  3. Hi Tim, the feature "cropped perspective" is still available. It will only appear in the dialog for the document settings though after you activate the legacy features: https://app-help.vectorworks.net/2022/eng/VW2022_Guide/Basic2/Using_legacy_2D_features.htm?rhhlterm=cropped perspective&rhsearch=cropped perspective Regards, Antonio
  4. Hello @EmilyArch, Welcome to the Vectorworks forum! I'm not sure why using both an integer and a float shouldn't work with the Less Than node. Have a look at the screenshot and file here: Int&Float-v2021.vwx Still, in case you need a way to convert an integer into a float, right now the easiest way is to use the Function node and insert "float(x)" in the OIP as seen in the screenshot. Regards, Antonio
  5. Hi @Alex Talbot, Welcome to the Vectorworks forum! There is a node in the gallery, that might help with what you are planning: This though is for when you want to see a preview of the actual symbols, so it opens a dialog with the resource browser and lets you choose one symbol. It does not show a simple list of strings. Since you are not the first one to ask this, I will include it in this Marionette Gallery entry. But that will have to wait, because I'm busy with other things right now. If you want to have a crack at it, please have also a look at the default node called "Get Texture". This gives you the kind of dropdown you are looking for, but for another resource and not from a specific folder. So, you see: you would need to combine elements from the two: "Get Symbol from Folder" and "Get Texture". Regards, Antonio
  6. Thank you. That worked like a charm. Regards, Antonio
  7. Does anybody know, if there is a way to enable or disable this via script? The Function Reference either doesn't contain an appropiate command or does not list it here: https://developer.vectorworks.net/index.php/Category:VS_Function_Reference:Objects_-_Text A search for "tight fill" did not show any results. Is this maybe available in SDK, but not VS?
  8. Hi Sebastian, I have reported this behaviour already and I have verified the fix for Vectorworks 2022 SP0. Regards, Antonio
  9. Hi @George Lewis, welcome to the forum! From the two screenshots alone I doubt very much even the most veteran Marionette users will be able to extract what's going on or rather what's going wrong. Now, I can understand, that you don't want to share the entire network, but that might not be necessary. Please try and reduce the network to the point where you cannot reproduce the error anymore and then go one step back. That would solve two problems at once: 1) You don't share the whole network. But please do share your findings. 2) You can then most likely already see where the problem lies, which may or may not be Objs By Crit. Kind regards, Antonio
  10. When tagging an object using a data tag, a connection between the two is established. I'd like to find a way to get the handle of the objects that was tagged by a certain data tag. In my mind a command could look like this hTaggedObj = vs.DT_GetAssociatedObj( hDT ) The only commands about data tags I could find in the developer wiki are these two: https://developer.vectorworks.net/index.php/VS:DT_AssociateWithObj https://developer.vectorworks.net/index.php/VS:DT_UpdateTagsOfTagged The List View Ex dialog of the debug mode wasn't much help either.
  11. Well, there is a way to put a button in the OIP with Marionette (in form of a single node, a network, or a Marionette object). Then there's also the possibility to make a menu command. All these can trigger a dialog to open with a resource browser drop down. See this for example: It's not that cut and dry though, since you have to get down in the mud with the dialog builder, which can be a bit of a hassle.
  12. I just filed a bug report. Let's see. Maybe we'll get a new and shiny command for VW2022.
  13. CSV files can be imported as worksheets and then you just need to read the information using the Get Cell Value or Get Cell String node. In case of an external database, you'd simply have to read out the information from the corresponding fields using the Get Record Field node.
  14. I figured out what the issue is and why it doesn't happen while it's still a network and not a marionette object. The node Parent PIO doesn't do anything while in a normal Marionette network, simply because there is no Parent-PIO at the time. When this network is made into a Marionette object, Parent PIO puts out a new Handle - additionally to the four 3D boxes already present. After removing the node Parent PIO everything works just fine. Question is: what use is this node where it is positioned in the network? What is the goal?
  15. Hi @SimA, setting names is not recommended, especially when you plan on using this multiple times. If you want the names to be written into the record field, why not just connect the Ordered List node directly to the Set Record Field node? Like so: Seems easier than first assigning names to objects and then extracting the names again. Regards, Antonio
  16. Thank you @Judah Warshaw and @Pat Stanford, both answers are super helpful. I will probably try both of them! I already had thought about preparing a worksheet with everything in place in case I could not create the report through scripts.
  17. @Thomas Gillioz There is an even better way: use the node "function" and use the x[:2] in the OIP field f(x).
  18. Hi folks, I would like to be able to 1) create a worksheet (vs.CreateWS) 2) create a report (?) 3) set/edit the report criteria (?) using VectorScript or Python/Marionette For neither 2 or 3 was I able to find a corresponding VS command in the developer wiki: https://developer.vectorworks.net/index.php?title=Category:VS_Function_Reference:Worksheets&pageuntil=SetWSCellFormula VS%3ASetWSCellFormula#mw-pages Does anybody have an idea if there is a way to accomplish this? Kind regards, Antonio
  19. It works fine on my end. How do you create the menu command? - Bei mir funktioniert das Node einwandfrei. Wie erstellst du den Menübefehl?
  20. Hi there, I pretty much just moved the script part that was triggered by clicking the OIP button up to the part where nodes usually have their script part. To make things tidy I removed all unnecessary parts. pick-file-for-menu-command.vwx @DomC It might be nice, to include the menu command version with the regular version in one file.
  21. @ChadL Would you rather have a single dropdown to select both the horizontal and the vertical component of the reference point (in the OIP of the text node) or would you rather have two dropdowns: one for the horizontal, one for the vertical component of the reference point? I think I would prefer the latter and have: vRef: low - middle - high hRef: left - middle - right
  22. @spries I was hoping for a fix in 2021 SP4, but alas we still have to wait.
  23. @ChadL To answer your initial question: No, there's no node with which you can currently change the text document settings. But it's pretty easy using the command vs.SetPrefInt() See also https://developer.vectorworks.net/index.php/VS:SetPrefInt and here https://developer.vectorworks.net/index.php/VS:Function_Reference_Appendix#apppref search for TextJustification and you will find all the info you need. I am still not fully clear on what the issue is. The text alignment that is applied after creating the text object is independent from the document settings. Now, if you wanted to chose a reference point on the text object which is not the same as the text alignment, that would be a different story. For example let's say the created text object has "center" as a horizontal alignment, but you want the right edge of the text object to be at a certain x-value. If this is not what you mean and still have questions, please upload an image or a video explaining what is happening in your document.
  24. I see. I will think about this and see what a good solution might look like. Thank you for bringing this to our attention. Revised answer: see below.
  25. Hi @ChadL, is this what you're looking for? Text-align.vwx
  • Create New...