Jump to content

Hello Community! Our community board will be offline for maintenance as we perform an upgrade from June 8th at 8:30 am ET until June 9th. We appreciate your patience and understanding during this time.

Hippocode

Member
  • Posts

    801
  • Joined

  • Last visited

Posts posted by Hippocode

  1. I think the easiest way is to use criteria and the count function to find out if a class is being used.

    If that doesn't do it, traversing all the objects manually with one of the available functions yes.

    But it might get tricky for symbol definitions not used in the drawing. You could traverse each definition and search it's contents as well.

    Any way, it's important you do a deep search, including group contents and make the search recursive.

    http://www.vectorworks.net/support/custom/vscript/example

    Shows some recursive functions.

  2. Your current criteria is "LW = oldWeight". try adding AND SELECTED which will probably work.

    Honestly the easiest way is to create a custom selection into a script, which will create the criteria for you. Then copy it inside your script.

  3. I've been in on the marionette training as well tho Im struggling to see how it can be useful for our office in a specific application.

    Well in theory you can code this yourself as there are various ways of making this work. I'd choose a custom object based approach ( like the SymbolObject) because having to run a separate script each time you change something is just asking for errors.

  4. You can create your own (worksheet) script, that compares your object/symbol location with the space boundary and saves the space room name in the record you provide.

    If it's only symbols, try the SymbolObject which automatically registers the space it is in and saves the room building, room name and room number into a field.

    These fields can be used to create detailed worksheets as you require.

  5. Hippocode,

    did you create that with Marionette?

    Actual I'm working on something similar, but I'm struggling with the math (vector angle calculation).

    I used the SDK.

    Rotations on 3 axis are hard to work with, but there are libraries available that can help you with that.

    I ended up using the openGL library which is included in the Vectorworks SDK library. You should be able to do something similar with python.

    Depending on what you end up doing in 3D rotations, quaternions can help finding out the rotation required between 2 different directions in 3D.

    Hi,

    What I am after is this by Marionette.

    I never could get some of the available NURBS functions to work to find the direction of any point on the curve.

    Instead, I chopped it up in a lot of points and used the next - previous point to determine the direction of a point. Then you just need to rotate your object to match it.

  6. I can divide a NURBS curve up and I get points. What I want to do is to draw a shape that is perpendicular to a point on the line then extrude out perpendicular to the point on the NURBS curve.

    Will keep experimenting.

    Thanks

    If you can't get it to work with the EAP, you can also look at using a loft surface instead. It's more work as you will need to provide the shape at evenly spots spread out on the curve, matching the direction of each point along the curve.

    I ended up using quaternations, gave me some headache but the endresult is great. :)

  7. A symbol definition is unique and can be given default values.

    Each symbol you place in the drawing, will start as an exact copy of the current symbol definition but can be changed in terms of recorddata.

    Record changes to the symbol definition will not change the symbols already placed in the drawing.

  8. Yes, as mentioned, the defaults are saved into the symbol definition.

    Any change you make in the definition will only appear in future symbols.

    Any symbols that were already in the drawing need to be modified separately.

    The thing is, a worksheet would be much easier to find those symbols you need to correct data in.

    So you would edit the definition and then edit symbols in the worksheet.

  9. When you have the symbol(s) selected, the data pane shows the fields for those symbols. This way you can alter objects in your drawing without having to re-attach a record.

    Note that you still need to change the default value in the symbol definition if you want future objects to have the same modified value.

×
×
  • Create New...