Jump to content

Peter Vandewalle

Member
  • Content Count

    111
  • Joined

  • Last visited

Community Reputation

12 Good

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

610 profile views
  1. Using a workgroup folder could help rolling out the worksheet script on all office machines.
  2. You’re right about the delimiters when it comes to numbers. But for records/fields in Vectorworks worksheets the delimiter is always a period.
  3. I think “value” was available way before 2015. “Substring” most likely wasn’t.
  4. What you’re trying to do can’t be done. A spreadsheet reads objects in the drawing, not the other way round.
  5. Most of them aren’t even Python or Vectorscript but C++. And of course as Pat is saying, they are locked.
  6. In Python just use this form: par = vs.Pparametername where par is the value in your python script and parametername is the PIO parameter.
  7. 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...
  8. 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...
  9. 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?
  10. 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;
  11. 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
  12. Can you send a larger par tof the script? It's pretty hard to answer this.
  13. I know, I found them already 🙂 But thanks anyway!
  14. Does anyone know the resource-id's for Slab Styles and Roof Styles? I know the Wall Styles id is 127...

 

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...