Jump to content

pascalachermann

Member
  • Posts

    7
  • Joined

  • Last visited

Reputation

1 Neutral

Personal Information

  • Location
    Switzerland

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi @MullinRJ thanks for trying, just to make sure, my functions are only working of you ungroup the symbol. they should then work. However that is my problem, im not supposed to ungroup them, becuase it breaks some connection to the database, according to my client. Ideally would be if this script can be enhanced to traverse inside the symbol and walk over ther vertices without having them to ungroup and open. 🙂
  2. @MullinRJ Now this Version should work, my client exported the symbol with a float license. best Regards Testsymbole V_01.vwx
  3. Dear @MullinRJ Raymond we are using the internal Vectorworks Script Window, we use the native Code console where you make an inventory object aka the Script. I will post a symbol example in short. Thanks for your inputs and support! @Pat Stanford & @MullinRJ best regards Pascal
  4. Hi Everyone Becuase we encountered a problem where almost every Symbold that has been modelled in Vectorworks has chaotic Facenormal directions. This turns into a problem once you use CAD Data in realtime such as VR & AR where we have only enough drawcall time for one face side to be drawn. I made a little script that will help us fix Normals on Faces, however this works only if we completely ungroup Symbols, but we can't do that because we lose all our Database connections. This is the script that works only on a ungrouped mesh: import vs def uniform_surface_normals(): # Get the handle to the first selected object on the active layer h = vs.FSActLayer() # Check if an object is selected if h is None: vs.AlrtDialog('No object selected!') return num_faces = vs.GetNumFaces(h) for i in range(i, num_face + 1): normalX, normalY, normalZ = vs.GetPolyFaceNormal(h, 1) vs.GetPolyFaceNormal(h, i, 0, 0, 1) vs.ReDraw() # Run the function uniform_surface_normals() it Would be amazing if you could help me doing this on selected Symbols, i was unable to get into the symbols with phyton. best regards Pascal
×
×
  • Create New...