Jump to content

Peter Vandewalle

Member
  • Content Count

    105
  • Joined

  • Last visited

Community Reputation

8 Neutral

About Peter Vandewalle

  • Rank
    Journeyman

Personal Information

  • Occupation
    Customer Support - Design Express
  • Homepage
    www.designexpress.eu
  • Hobbies
    Architecture, Music, Mac
  • Location
    Belgium

Recent Profile Visitors

559 profile views
  1. Thanks JBenghiat, I was afraid so. Then I'll have to enter the saved view name into a script parameter. I managed to use an external script and a worksheet so modifications can be done in one central place...
  2. Thanks Pat, But the script in the saved view (via the edit script button) doesn't know the name of the script it belongs to. That's what I'm after...
  3. I'm working on some saved views scripts. This is very powerful, but now I'd like to store some script parameters in a worksheet. But to do so I need to get the name of the currently running saved view. Any ideas on how to get that name?
  4. They are available for Vectorscript and Python. But only on action-driven PIO's. You also need to add the parameters in the order they need to appear and with the necessary indents: You'll need some extra lines in the event section of the script. I also run a procedure in that part: "object_info_palet". This one holds some extra procedures to create the parameters and separators with the needed indentation. Hope this helps: CASE theEvent OF kOnInitPropertiesEventID: BEGIN bTest := SetObjPropCharVS(kWidgetGroupMode, Chr(kWidgetGroupAutomatic)); object_info_palet; END; ... function insert_separator(liID: integer; lsPIOName, lsParameter: string; liIndent: integer): integer; var lbResult: boolean; lsTmp: string; begin lbResult := GetLocalizedPluginParameter(lsPIOName, lsParameter, lsTmp); if lbResult then begin lbResult := vsoAddWidget(liID, 100, lsTmp); lbResult := vsoAppendWidget(100, liID, lsTmp, 0); vsoWidgetSetIndLvl(liID, liIndent); end; insert_separator := liID+1; end; function insert_parameter(liID: integer; lsPIOName, lsParameter: string; liIndent: integer): integer; var lbResult: boolean; lsTmp: string; begin lbResult := GetLocalizedPluginParameter(lsPIOName, lsParameter, lsTmp); if lbResult then begin lbResult := vsoAddParamWidget(liID, lsParameter, ''); lbResult := vsoAppendParamWidget(liID, lsTmp, 0); vsoWidgetSetIndLvl(liID, liIndent); end; insert_parameter := liID+1; end; procedure object_info_palet; var liID: integer; begin liID := 100; liID := insert_separator(liID, sPIOName, 'chGlobal', 0); liID := insert_parameter(liID, sPIOName, 'ObjType', 1); liID := insert_separator(liID, sPIOName, 'ch3D', 0); liID := insert_parameter(liID, sPIOName, 'DivSymbol3D', 1); ... end;
  5. NameClass('classname'); will make that class active. http://developer.vectorworks.net/index.php/VS:NameClass You might want to add PushAttrs; at the beginning of the script and PopAttrs; at the end to avoid changing the active class. sClassName := GetClass(ObjH); Will get you the classname of the current object. http://developer.vectorworks.net/index.php/VS:GetClass
  6. Can you send a larger par tof the script? It's pretty hard to answer this.
  7. I know, I found them already 🙂 But thanks anyway!
  8. Does anyone know the resource-id's for Slab Styles and Roof Styles? I know the Wall Styles id is 127...
  9. Instead of =COUNT you can also just insert 1 into B2. No “=“ just the number 1.
  10. I see the value in A2 is summed. I suppose B2 has added values. You should also add values in D2. Otherwise you’ll get the unitary price. By the way you don’t even have to put a calculation in D2. Just the same formula as in C2 would do, just add the values. In a worksheet all rows are calculated and only after the row calculation sums and add values are calculated. This means that in B2 there will always be “1” so B2*C2 equals 1*C2 or just C2. After that calculation rows are summed and values added where this is asked. I hope this is clear.
  11. If you need more feedback or info about this, just call Design Express support and ask for Peter.
  12. What classing system would you like to use?
  13. Changing the classing system in Vectorworks can be a lot of work. Classes are indicated all over the place.

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...