Jump to content

David Poiron

  • Posts

  • Joined

  • Last visited

Posts posted by David Poiron

  1. This is the code snippet


    IF Shift THEN
    			CreateDialog1 {full access}
    			CreateDialog2; {partial access}

     It does not seem to work - it just goes to CreateDialog2. I've tried Command and Option instead of Shift as well - not working. Is this required to be in a while..do statement to work?

  2. I am trying to direct a script to bring up a different dialog box depending on if the shift or option keys are pressed when the command is invoked. I've tried to use KeyDown but am not clear how it works. There is a Shift and Option function as well but the results are not as expected. I am trying to do this with an IF/THEN statement. Any suggestions are appreciated. Using 2022 for this.

  3. We've ended up using data tags and record formats, with a script that updates andy changes based on a fixed serial number for each product. The script updates symbols (instances and definitions) as well as other objects that the record format is attached to. So far in testing it is working well. We are about to try it on an actual project.

  4. I'm really struggling with escaping quotes properly. I want to perform some actions on symbols that have a certain record format field, but I cannot seem to get the criteria to work using ForEachObject.


    Im using selCriteria:=concat('CPA Products'.'Serial'=,RF1) as the criteria where selCriteria is the selection criteria and RF1 is a string variable for the record format field contents. Because of all the record format quotes, I cannot seem to get it to work no matter how I try to escape them. Any help would be appreciated.

  5. I would like to create a script that replaces the content of an attached record format field in symbol instances that match the currently selected symbol instance. My thought is that this could work in one of two ways:


    1. replace the record format field contents in other instances, or

    2. replace the symbol instances entirely with the currently selected symbol instance, all of which are based on the same symbol definition.


    Does anyone know of a similar script out there? I have used VS many years ago and am very rusty, but a similar script might get me to the goal faster.

  6. At present we use Filemaker to create all the records and organize them by section number for a particular project and then export that to 24"x36" PDF, which we then reference in Vectorworks. Vectorworks worksheets are not nearly as adaptable graphically as tables are in Filemaker. We do think there is benefit to link the two but there are a number of missing workflows in Vectorworks it seems to make this work for our needs.

  7. We've been using FileMaker Pro to create an in-house database of products but linking it directly to anything in VW is proving to be a challenge. Each of our products has a serial number that we would like to link to objects in VW but we are at a loss of how to do so reliably - we've tried ODBC before but as one VW staffer mentioned to us recently that can be a brittle connection. In addition to the serial number our system has a three letter code for each section of the North American MasterFormat System (as that is easier to read than a bunch of section numbers), followed by a number for the object in that section for that project: say DHW-01 for a door handle for a particular project. The number changes depending on the project but the serial number (a 6 digit number) does not. It would be great to use data tags to extract the information from an object but it is difficult to make links to the extent we would like; even for symbols there does not appear to be a way to assign a serial number to the symbol that is persistent across all instances of the symbol, which is needed to make a link to an outside database. I am curious about the use of VWs Database Manager for this. I would like more information on @shorter s exporting and importing routines if he is willing to share.

  8. I ask for a "survey points file" in CSV format, which is a commas separate value file of all the survey point in a text file. Then it is rather easy to use the "Import Survey File" command to import the points into VW, creating stake objects that can then be made into a site model using the "Site Model From Source Data.." command. You need to specify the type and order of the information for each point: I use ID, Northing, Easting, Elevation, Description/Note. Tell the surveyor what order you want the information. Be careful of survey points that are not at grade. They can be stripped out of the CSV file prior to import or removed after importing.

    • Like 2
  9. @bcd Thanks for the suggestion, but unfortunately I think this is even less automatic than our current workaround, which is to put the layer level as a negative amount in the definition for the data tag for each building floor level.

  10. We ended up creating a tag for each level and minusing the layer level from each definition in the data tag for levels 2 +. It worked, but there should be a definition for the height of the grid tool relative to the layer as opposed to the origin, so that one tag is sufficient.

  11. We are using the ceiling grid tool and are trying to tag the height of the ceiling grid. We are using the #IPZ# definition to get the height, which works well when the layer elevation (Z value) is zero. When the layer elevation (Z value) is say 10' (as it might be on the second level of the building), it adds 10' to the ceiling height value for the tag. Therefore, a ceiling grid object set to 8' on level 2 shows a tag value of 18' instead of the desired 8'. Is there any way to set up the tag with a different definition, or perhaps subtract the layer elevation to get the desired ceiling height value for each level of the building?

    • Like 1
  12. Strangely enough we have been using a data tag for space objects for reflected ceiling plans, as we need the space label location to change for these drawings. I had a thought that if I had multiline text, my room number which is above the text would need to move upwards automatically. I thought to use a coincident constraint between the two text objects, but this tool does not seem to work on the side, top or bottom centres of text objects, or the centre of the text objects. Do you have any suggestions on how to address this apparent shortcoming?

  • Create New...