Jump to content

Pat Stanford

Moderator
  • Posts

    12,706
  • Joined

  • Last visited

Everything posted by Pat Stanford

  1. If enough people request it, I can write a Delete menu command, but it will not be part of the stock installation. You will need to add the command and edit your workspace. Who is interested?
  2. Well since I am in the US instead of Aus/NZ, I can't really help too much. I didn't recognize the VAA part until I could not find that Record in my installation. Sorry.
  3. It is likely that the PaintWidth and PaintHeight refer to some other object than the Bitmap you have the handle to. Have you tried getting them directly from the Shader instead of the bitmap? I was fighting a similar problem trying to get the record and field of a piece of linked text. Worked great once I found the right object. I will be happy to take a closer look, but please upload a file with the texture/shader already in it and preferably a larger chunk of code so I don't end up solving problems you already have.
  4. I wrote a script to rotate objects about their individual centers back in 2007-2010. Here is a link to the last version. Anytime you are looking for scripts it is a good idea to go to Archive:Resource Sharing: Resource Share - Vectorscript and see what is in the ancient history. Most of it still works.
  5. I have gotten to be able to get the record and field of a block of linked text, but I have not figured out how to create the link. There is certainly no easy way to do it in vanilla Vectorscript (or Python), but I am still playing.
  6. What is the formula you have in the Current Revision column of the worksheet. My guess is that the problem is in the worksheet formula, not in the Title Block data.
  7. The object behaves exactly the same for me in both 2016 and 2017. There is nothing in the code that would ever require the object to be a square. If you really wanted a square, the code should not allow you to input both the width and the height. To bind this to a square you could just ignore the height parameter and change all of the bb to aa in the script. Then you will always get a square regardless of how far you draw the second leg. Could there be a different version of the plug-in laying around that has the square capability instead of the ability to make rectangles? I don't have an easy way to run back to VW12, but I don't think there have been any major changes to the way 3 point PIOs work since then.
  8. You can use the Mac's built in Print to PDF function, so you are not completely stuck without PDF capabilities. I don't know if it still offers the capability or not, but Adobe Acrobat Pro used to come with a full PDF printer driver with more capabilities than the standard Mac driver. VW offers a 30 day money back guarantee, so if you really don't like it finish this project and send it back. VW will gladly sell you Architect (or landmark or spotlight or designer) for just the difference between what you paid and the regular price. I don't work for VW, but the previous have been my experience. If you are going to have to pay money to add the PDF support you want, I recommend you upgrade to one of the industry products They offer a lot of other added capabilities as well.
  9. I'm not seeing this on either VW2016 or VW2017. (Update: Sorry I missed the title that this is 2017, I was going from the 2016 in your signature. Have you tried restarting VW? What about restarting the computer? When did you start seeing this? What service pack are you running? I believe SP5 has been released. (Update: Sorry I missed the title that this is 2017, I was going from the 2016 in your signature. I think 2017 has SP1 already released) If none of these solve the problem I suggest you delete and let let VW recreate you preferences file.
  10. I can test here, but you will need to upload the files. I am not going to type the scripts in based on the screen shots.
  11. What happens if you open the resource file and try to place one of the symbols directly in that file?
  12. On Windows I don't think you can script this. All of the Vectorworks internal scripting is file based, so to export, import into a new file, purge and reexport is not something that is doable. I guess you could possible reimport into the same file, but I desperately hate the idea of importing into anything other than a blank file. To much chance to mess something up. On the Mac, this might be doable with a combination of VectorScript and Applescript for the multi-file portion.
  13. No. The Get/SetObjectVariableInt(H1,1350/1351) do not seem to work at all. The only return I get from these calls is 0. I am planning to submit a bug the next time I get a chance. I tried Int, LongInt, String, Handle, Point, Boolean. None of them return anything but zero for a text object in a symbol that is linked to a record or is not linked to a record. Apologies for typos. Too much scotch. Pat
  14. Yes, definitely more than I expected. It currently looks like either I am doing something wrong with Get/SetObjectVariables or there is a bug/problem with some of the object variables relating to linking text to record. At this time, what is wanted may not be possible, but I will keep pondering it.
  15. What version of VW are you working it. It may make a difference.
  16. No guarantees as I don't know if the Piping Run tool does anything else with the information (like check for valid sizes), but it appears you can edit the material choices in the pop-up by: Go to Tools:Plug-ins:Plug-in Manager Go to the Built-in Plug-ins tab and scroll to select the Piping Run tool. Click Customize Go to the Parameters tab. Select the Material field. Click Edit. From the Edit dialog box click the Choices button and edit the list as you see fit. You should definitely make a backup of your VW installation first and you should probably try it after the changes on a new blank document, not one that you have been working on for 6 months and have a major submittal this afternoon.
  17. What version of VW? In the Resource Browser are you certain you have it set to show Worksheet? One of the pop downs on the right allows you to set the types of objects that are displayed. If Worksheets are not there that could be the issue. I don't know why the image of the worksheet disappeared. Was it placed on a Design Layer or on a Sheet Layer?
  18. NameClass does not seem to set the overall active class in the document when it is used inside a PIO. It does change the class in the PIO and all the objects that are created after NameClass in the PIO are set to that class, but the PIO itself is placed in the class that was active when the PIO was created and the Active Class in the document remains unchanged.
  19. Are you going to write this one Michael or should I try to find some time?
  20. Thanks Josh. I knew there was a way, but I could not pull it up yesterday.
  21. So in a PIO the class MyClass is being created, but the object is not being assigned to that class. The Rectangle inside the "container object" that is the PIO is assigned to MyClass, but the PIO instance is not. Ungroup the PIO to see the rectangle and the class. Everything that happens inside the PIO is basically hidden from the rest of the drawing functions. It kind of runs in its own special space and then the result is drawn in the correct place in the VWX drawing. Since you are changing the class inside the PIO routine, this class change only effect objects drawn inside the PIO and not the PIO container or the active class after the conclusion of the PIO regeneration. I can't think of a work around right now, but I will sleep on it and see what I can come up with.
  22. You might want to consider reinstalling VW 2017. Your MyRect script runs fine for me under 2017 SP1 Beta.
  23. It works for me. I added constants for PH1, PH2, PL1, PL2. When I run the script for the first time it creates a class named MyObj, makes that the active class and creates the new object in that class. What are you seeing?
×
×
  • Create New...