Jump to content

Marissa Farrell

Marionette Maven
  • Posts

    1,473
  • Joined

  • Last visited

Posts posted by Marissa Farrell

  1. On 3/6/2024 at 4:42 AM, Stefan B. said:

    Does it have anything to do with my red text symbol and yours being white/black?

     

    This shouldn't matter, my first test was with a black symbol that I later converted to red.
    I'll make a note to look into this in a bit.

  2. You can remove Marionette menu commands by navigating to Marionette Command Library.vwx (Go to [Your User Folder]/Libraries/Defaults/Marionette) and delete the resources in the RM that correspond to the menu commands you'd like to delete. Then you'll likely need to restart VW to show the changes.

    • Like 2
  3. 12 minutes ago, tavbut said:

    At the time it is calling/getting the handle of the object through a name node, but I wonder if there is a way to get the handle of the selected object. Can anyone help me?

    Hi! You can use the Objects by Criteria node and set the Criteria to 

    ((SEL=TRUE))

    (You can also use the dialog that is presented using the "Criteria Configuration..." button in the OIP)

    Replace your Name node with the Obj by Crit node.

     

    Sometimes this is finicky, though, so please if you run into an issue send me a DM with the file so I can take a look and forward it to the engineers if it's something we may need to fix/account for 🙂

    • Like 1
  4. Hi Stefan!
     

    I'm attaching a simple file that I hope may help, but I also may be misunderstanding your question since you haven't provided a file to work from.

    Please let me know if this helps, or if I need to go in a different direction.

    In this file, there is a circle Marionette Object that attaches the record within the network to the circle using the Marionette Object node (which returns the handle to the Marionette object)
    Creating a symbol of this Marionette Object creates a Marionette Object Style (which can be found in the folder of the same name within the Resource Manager.
    The resource shows the attached record in the RM window.

    image.png

    MarionetteCircleSymWithRecord.vwx

  5. @Sibbi123

    I'm not sure this works even doing it manually. I tried ungrouping your geometry results and performing the Clip Surface command (which is what the planar boolean in subtract mode does) and it doesn't do anything either.

    Can you show me where you got this tutorial from?

  6. Handles are Vectorworks' identifiers for objects. You can use vs.GetObject(name of object) to get an object by name; sometimes functions to create objects will return the handle to an object (or you can use vs.LNewObj() to return the handle to the last created object); or there are some other functions that return handles to objects as well.

     

    Let me know if you want more examples of functions that return handles or if you have a specific way you'd like to determine the handle to an object. 

    • Like 1
  7. It appears this was a deliberate change. Here's some information I got from the engineer that worked on the task.

    "The new View Bar and Mode Bar only exist on the application window so turning the "Use Application Window" setting OFF didn't have much sense anymore. You can still undock documents after you've opened them and you can have undocked/floating palettes placed wherever you want on the screen."

     

    I've spoken with the Technical Publications team and they'll be updating the help to prevent user confusion.

    Thanks for bringing this up, @Marcelo Barujel

    • Like 2
  8. You don't need to get the name of the worksheet since you're already providing it. Also, GetName works on object handles, not strings. 
    Here's a short example of how you could use GetName.

     

    vs.NameObject('NewRect')	#set the name for the next created object
    vs.RectangleN(0,0,0,1,1,1)
    vs.AlrtDialog(str(vs.GetName(vs.LNewObj())))


    Note that vs.RectangleN doesn't return a handle to the created rectangle, so vs.LNewObj() is used to call to the last created object.
     

    • Like 1
×
×
  • Create New...