Jump to content

Antonio Landsberger

Member
  • Posts

    99
  • Joined

  • Last visited

Reputation

38 Great

5 Followers

Personal Information

  • Occupation
    ComputerWorks employee
  • Location
    Germany

Recent Profile Visitors

1,222 profile views
  1. 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.
  2. 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.
  3. I just filed a bug report. Let's see. Maybe we'll get a new and shiny command for VW2022.
  4. 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.
  5. 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?
  6. 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
  7. 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.
  8. @Thomas Gillioz There is an even better way: use the node "function" and use the x[:2] in the OIP field f(x).
  9. 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
  10. 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?
  11. 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.
  12. @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
  13. @spries I was hoping for a fix in 2021 SP4, but alas we still have to wait.
  14. @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.
  15. 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.
×
×
  • Create New...